:root {
  color-scheme: dark;
  --ink: #11131b;
  --nav: #151821;
  --rule: #303440;
  --white: #f5f1da;
  --muted: #c4c6cf;
  --lime: #ceff34;
  --plum: #442978;
  --paper: #f0ecdb;
  --shell: 88rem;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--white); }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible, button:focus-visible { outline: 3px solid #8354e3; outline-offset: 5px; }

.shell { width: min(calc(100% - 6.5rem), var(--shell)); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; transform: translateY(-5rem); padding: .8rem 1rem; background: var(--lime); color: var(--ink); z-index: 2; }
.skip:focus { transform: none; }

.bar { border-bottom: 1px solid var(--rule); background: var(--nav); }
.bar-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.studio { display: inline-flex; align-items: center; font-size: 1.35rem; font-weight: 760; letter-spacing: -.055em; text-decoration: none; }
.studio-mark { width: .72rem; height: .72rem; margin-right: .65rem; background: var(--lime); box-shadow: .26rem .26rem 0 var(--plum); }
.studio-period { color: var(--lime); }
nav { display: flex; gap: clamp(.9rem, 2.6vw, 2.25rem); align-items: center; color: var(--muted); font-size: .92rem; }
nav a { padding-block: .55rem; text-decoration: none; }
nav a:hover { color: var(--lime); }

.hero { padding-block: clamp(2.9rem, 6vw, 6rem); }
.hero-inner { display: grid; grid-template-columns: minmax(21.5rem, 1fr) minmax(0, 1.37fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.network { color: var(--lime); font: 700 .88rem/1.25 ui-monospace, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin-top: 1rem; }
h1 img { width: min(100%, 37.5rem); aspect-ratio: 400 / 79; image-rendering: pixelated; }
.credit { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 720; letter-spacing: -.021em; }
.credit span { color: var(--lime); }
.intro { margin-top: 1.15rem; max-width: 25ch; color: var(--muted); font-size: clamp(1.14rem, 2.4vw, 1.65rem); line-height: 1.43; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.7rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1rem; border: 1px solid transparent; font-weight: 740; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.primary { background: var(--lime); color: var(--ink); }
.primary:hover { background: #e4ff95; }
.secondary { border-color: #5c606e; }
.secondary:hover { border-color: var(--white); }

.hero-art { display: grid; grid-template-columns: 1fr 1fr; align-self: center; border: 1px solid #73785e; background: #202231; }
.hero-art img { object-fit: cover; aspect-ratio: 1; image-rendering: pixelated; }
.hero-art img:first-child { border-right: 1px solid #73785e; }
.hero-art figcaption { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; border-top: 1px solid #73785e; font: 600 .82rem/1.2 ui-monospace, Consolas, monospace; color: var(--muted); }
.hero-art figcaption span { padding: .7rem .85rem; }
.hero-art figcaption span:first-child { border-right: 1px solid #73785e; }

.artwork { padding-block: clamp(2.8rem, 6vw, 5.2rem); border-top: .42rem solid var(--lime); background: var(--paper); color: var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.7rem; }
.section-head h2, .collection h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -.072em; }
.section-head p { max-width: 35ch; font-size: 1.03rem; line-height: 1.45; color: #444038; }
.gallery { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(.65rem, 1.5vw, 1.4rem); }
.art-link { display: block; background: #241e36; }
.art-link img { aspect-ratio: 1; image-rendering: pixelated; transition: opacity 150ms ease; }
.art-link:hover img { opacity: .88; }
.gallery figcaption { display: grid; gap: .12rem; padding-block: .75rem .3rem; line-height: 1.3; }
.gallery figcaption strong { font-size: .97rem; }
.gallery figcaption span { font-size: .875rem; color: #4c463e; }

.collection { padding-block: clamp(2.8rem, 6vw, 5.2rem); }
.collection-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 6vw, 8rem); align-items: start; }
.collection-copy { margin-top: 1.2rem; color: var(--muted); max-width: 37ch; font-size: 1.125rem; line-height: 1.65; }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.facts > div:first-child { border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 650; }
.facts .contract { flex-wrap: wrap; gap: .38rem 1rem; }
.contract a { color: var(--lime); font: 500 .89rem/1.35 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; font-size: .92rem; color: var(--muted); }

dialog { position: fixed; padding: .85rem; width: min(35rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid #656975; background: var(--nav); color: var(--white); }
dialog::backdrop { background: #0c0a13da; }
dialog form { display: flex; justify-content: end; margin-bottom: .8rem; }
dialog button { font: inherit; font-weight: 650; color: var(--ink); background: var(--lime); padding: .5rem .85rem; border: none; cursor: pointer; }
dialog img { max-height: calc(100dvh - 10rem); object-fit: contain; image-rendering: pixelated; }
.viewer-caption { padding-top: .65rem; }
.viewer-caption h2 { font-size: 1.15rem; }
.viewer-caption p { color: var(--muted); margin-top: .2rem; }

[hidden] { display: none !important; }
.hub-grid, .mint-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.hub-grid { max-width: 72rem; }
.hub-intro h1 { margin: 0; font-size: clamp(4.4rem, 9vw, 9rem); line-height: .92; letter-spacing: -.09em; }
.hub-cover { display: block; border: 1px solid var(--rule); max-width: 32rem; }
.hub-cover img { image-rendering: pixelated; }
.mint-layout { align-items: start; max-width: 75rem; }
.mint-heading { padding-top: 1.5rem; }
.mint-card { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--rule); border-top: 4px solid var(--lime); background: var(--nav); }
.mint-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 1rem; }
.mint-title-row h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; letter-spacing: -.057em; }
.mint-state { color: var(--muted); font: 650 .85rem/1.2 ui-monospace, Consolas, monospace; }
.mint-state[data-state="open"] { color: var(--lime); }
.mint-message, .wallet-account { margin-top: .9rem; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.mint-message:empty { display: none; }
.mint-facts { margin-top: 1.25rem; }
.mint-field { display: grid; gap: .35rem; margin-top: 1.25rem; }
.mint-field input, .mint-field select { min-height: 2.7rem; padding: .35rem .65rem; border: 1px solid #676b78; background: var(--ink); color: var(--white); font: inherit; }
.mint-quantity input { width: 7rem; }
.mint-card .button { font-family: inherit; cursor: pointer; }
.mint-card .button:disabled { opacity: .58; cursor: default; }
.mint-actions:empty { display: none; }
#claim-form > .button, .refresh-mint { margin-top: 1rem; }
.transaction-link { display: inline-block; margin-top: .4rem; color: var(--lime); }

@media (max-width: 70rem) {
  .shell { width: calc(100% - 4rem); }
  .hero-inner { gap: clamp(1.35rem, 4vw, 3rem); }
}
@media (max-width: 56rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hub-grid, .mint-layout { grid-template-columns: 1fr; max-width: 37rem; }
  .mint-heading { padding-top: 0; }
  .hero-copy { max-width: 38rem; }
  h1 img { width: min(100%, 31rem); }
  .gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .bar-inner { min-height: 3.75rem; }
  .studio { font-size: 1.15rem; }
  nav { font-size: .88rem; gap: .8rem; }
  .collection-inner { grid-template-columns: 1fr; }
  .section-head { display: grid; align-items: start; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
}
@media (max-width: 25rem) {
  .hero-art figcaption { font-size: .75rem; }
  .hero-art figcaption span { padding-inline: .55rem; }
  .actions { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .art-link img { transition: none; }
}
