:root {
  color-scheme: light;
  --ink: #171615;
  --muted: #69645d;
  --line: #ded8cf;
  --paper: #f7f3ec;
  --panel: #fffaf2;
  --rose: #ef476f;
  --aqua: #118ab2;
  --gold: #f3a712;
  --green: #297373;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ctext y='36' font-size='34'%3E%F0%9F%90%88%3C/text%3E%3C/svg%3E") 8 8, auto;
  background:
    linear-gradient(120deg, rgba(239, 71, 111, 0.13), transparent 34%),
    linear-gradient(245deg, rgba(17, 138, 178, 0.13), transparent 38%),
    var(--paper);
}

a,
button,
input,
select {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ctext y='36' font-size='34'%3E%F0%9F%90%BE%3C/text%3E%3C/svg%3E") 8 8, pointer;
}

button,
input,
select,
.button-link {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 950;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 34%, var(--gold) 0 7%, transparent 8%),
    radial-gradient(circle at 68% 34%, var(--rose) 0 7%, transparent 8%),
    linear-gradient(135deg, #151412 0 62%, var(--aqua) 63% 100%);
  color: white;
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(38, 33, 27, 0.12);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
}

.logo-text {
  font-size: 1.05rem;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fffdf8;
  font-weight: 900;
  cursor: inherit;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary::after {
  content: " v";
  color: var(--muted);
}

.menu[open] summary::after {
  content: " ^";
}

.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 6px;
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 50px rgba(38, 33, 27, 0.14);
}

.menu nav a {
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.menu nav a:hover {
  background: var(--paper);
}

.welcome {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 38px 0 30px;
}

.welcome-copy {
  min-width: 0;
}

.lore {
  width: min(660px, 100%);
  margin: 22px 0;
  color: #332f2a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.primary-link {
  background: var(--ink);
  color: white;
}

.ghost-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.8);
}

.welcome-photos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 92px;
  gap: 10px;
  align-items: stretch;
}

.welcome-cat {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(38, 33, 27, 0.12);
}

.welcome-cat:nth-child(1),
.welcome-cat:nth-child(6) {
  grid-column: span 3;
  grid-row: span 3;
}

.welcome-cat:nth-child(2),
.welcome-cat:nth-child(5) {
  grid-column: span 3;
  grid-row: span 2;
}

.welcome-cat:nth-child(3),
.welcome-cat:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: end;
  padding: 48px 0 28px;
}

.hero-copy {
  padding-bottom: 24px;
}

.eyebrow,
.label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4.8rem, 14vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  width: min(620px, 100%);
  margin: 22px 0 18px;
  color: #3b3732;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.contract-line {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 800;
}

.contract-line span {
  color: var(--muted);
}

a {
  color: var(--aqua);
}

.mint-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 20px 60px rgba(38, 33, 27, 0.12);
}

.status-row,
.price-grid,
.collection-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-row > div,
.price-grid > div,
.collection-bar > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
}

.status-row strong,
.price-grid strong,
.collection-bar strong {
  display: block;
  overflow-wrap: anywhere;
}

.price-grid {
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fffdf8;
  color: var(--ink);
}

.help-text,
.message {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.primary,
.secondary,
.ghost-button {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.primary {
  background: var(--ink);
}

.secondary {
  background: var(--rose);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
}

.secondary:disabled {
  cursor: not-allowed;
  background: #b9afa4;
}

.primary:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.last-minted-card {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
}

.last-minted-card strong {
  font-size: 1.25rem;
}

.last-minted-card small {
  color: var(--muted);
  font-weight: 800;
}

.last-minted-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(240px, 360px);
  gap: 18px;
  align-items: end;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.78);
}

.last-minted-feature strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.last-minted-feature p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.last-minted-asset {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.last-minted-asset img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.wallet-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
  margin: 20px 0 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
}

.admin-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
  margin: 70px 0 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
}

.wallet-copy strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.wallet-copy p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.5;
}

.wallet-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fffdf8;
}

.wallet-list-wrap {
  grid-column: 1 / -1;
}

.wallet-list {
  display: grid;
  gap: 8px;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf8;
  font-weight: 800;
}

.wallet-row span {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(41, 115, 115, 0.12);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.wallet-row code {
  overflow-wrap: anywhere;
}

.wallet-row button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.collection-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 22px;
}

.mini-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mini-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-meta code {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.last-minted {
  margin-top: 22px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading strong {
  display: block;
  font-size: 1.35rem;
}

.last-minted-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.cat-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cat-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cat-card figcaption {
  padding: 9px 10px 10px;
  font-size: 0.85rem;
  font-weight: 900;
}

@media (max-width: 860px) {
  .welcome,
  .hero,
  .last-minted-feature,
  .admin-page,
  .wallet-page,
  .collection-bar {
    grid-template-columns: 1fr;
  }

  .welcome {
    min-height: auto;
  }

  .welcome-photos {
    grid-auto-rows: 72px;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

}
