/* studmap: dark ground, the art is the only colour. One accent (LEGO Bright Yellow), one pixel display face
   at whole-pixel sizes, Inter for reading, JetBrains Mono for numbers. */
:root {
  --ground: #0c0d0f;
  --surface: #131518;
  --raised: #1a1d21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #eceeed;
  --muted: #8d949a;
  --accent: #f2cd37;
  --accent-ink: #1b1600;
  --error: #ff7a6b;
  --display: 'Silkscreen', ui-monospace, monospace;
  --text: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 16px;
  --max: 1200px;
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--fg); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
strong { font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
.pixel, canvas { image-rendering: pixelated; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.note { color: var(--muted); font-size: 15px; }
.eyebrow { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 16px; }
.eyebrow a { text-decoration: none; }
.lede { font-size: 18px; color: #c5cacd; max-width: 56ch; margin: 0 0 32px; }
.link { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 0.2s; }
.link:hover { border-color: var(--accent); }

/* Silkscreen only renders crisp at multiples of 8px */
.display { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: 0; margin: 0; }
h1.display { font-size: 48px; }
h2.display { font-size: 32px; }
h3.display { font-size: 24px; }
@media (min-width: 720px) { h1.display { font-size: 64px; } h2.display { font-size: 40px; } }
@media (min-width: 1080px) { .hero h1.display { font-size: 88px; } }
h3 { font-size: 16px; font-weight: 600; margin: 32px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 8px; }
li::marker { color: var(--muted); }

/* Header / footer */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); background: rgba(12, 13, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 16px/1 var(--display); text-decoration: none; }
.mark-stud { width: 16px; height: 16px; border-radius: 3px; background: var(--accent); box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.25); position: relative; }
.mark-stud::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4b8, var(--accent) 60%); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3); }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a, .foot nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.bar nav a:hover, .bar nav a[aria-current], .foot nav a:hover { color: var(--fg); }
@media (max-width: 520px) { .bar nav { gap: 16px; } .bar .btn.small { display: none; } }
.foot { display: grid; gap: 16px; padding: 48px var(--gutter) 40px; border-top: 1px solid var(--line); max-width: var(--max); margin: 120px auto 0; }
.foot nav { display: flex; gap: 22px; }
.foot .note { font-size: 13px; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--text); color: var(--fg); background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 20px; cursor: pointer; text-decoration: none; transition: transform 0.15s var(--e-out), background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn:hover { border-color: rgba(255, 255, 255, 0.32); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.btn.primary:hover { background: #ffd94a; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.btn:disabled { opacity: 0.35; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; top: 0; left: 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(12, 13, 15, 0.94) 0%, rgba(12, 13, 15, 0.8) 34%, rgba(12, 13, 15, 0) 62%), linear-gradient(0deg, rgba(12, 13, 15, 0.6), rgba(12, 13, 15, 0) 30%); }
.hero-copy { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { margin-bottom: 24px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.hero .lede { max-width: 30em; }
.hero-credit { position: absolute; z-index: 2; right: var(--gutter); bottom: 16px; margin: 0; font-size: 12px; color: var(--muted); }
.hero-credit a { text-decoration: none; }
@media (max-width: 820px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 13, 15, 0.94) 0%, rgba(12, 13, 15, 0.86) 52%, rgba(12, 13, 15, 0.1) 80%); }
  .hero-copy { padding-top: 48px; padding-bottom: 320px; }
}

/* How it works */
section { margin-top: 120px; }
.hero { margin-top: 0; }
.steps3 { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }
.steps3 li { margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.steps3 h3 { font: 24px/1 var(--display); margin: 8px 0 10px; }
.steps3 p { color: var(--muted); margin: 0; font-size: 15px; }
.steps3 .mono { font-size: 12px; color: var(--accent); }
.tile { display: grid; place-items: center; aspect-ratio: 1; background: #0f1113; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }

/* Cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.artist-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .artist-row { grid-template-columns: 1fr; gap: 20px; } }
.artist-id h3 { margin: 0 0 8px; }
.artist-id a { text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cards.wide { margin-top: 40px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color 0.25s, transform 0.35s var(--e-out); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-art { background: #f4f4f4; border-radius: 10px; padding: 8px; margin-bottom: 12px; }
.card-art img { width: 100%; image-rendering: pixelated; }
.card-artist { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.card-title { font: 24px/1.1 var(--display); }
.card-meta { font-size: 12px; color: var(--muted); }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }

/* Inner pages */
.page { padding-top: 64px; }
.page > h1 { margin-bottom: 16px; }
.links { display: flex; gap: 20px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0; }
.stats div { background: var(--surface); padding: 14px 16px; }
.stats dt { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stats dd { margin: 10px 0 0; font: 500 18px/1.1 var(--mono); }
.stats.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Plan */
.plan section { margin-top: 88px; }
.plan h2.display { margin-bottom: 16px; }
.plan p, .plan li { color: #c5cacd; }
.plan strong { color: var(--fg); }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 24px 0 16px; }
#overview { display: block; width: 100%; border-radius: 6px; }

.table { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 24px 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--line-2); }
.num { text-align: right; font-family: var(--mono); }

.sw { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 6px; background: var(--c); color: #fff; font: 500 13px/1 var(--mono); text-shadow: 0 0 3px rgba(0, 0, 0, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); vertical-align: middle; }

.stepbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.stepbar input, .field input { font: 500 15px var(--mono); color: var(--fg); padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raised); }
.stepbar input { width: 72px; text-align: center; margin: 0 6px; }
.where { margin-bottom: 0; }

.studs { table-layout: fixed; min-width: 400px; font: 500 13px/1 var(--mono); background: #f4f4f4; color: #05131d; }
.studs th, .studs td { padding: 0; height: 32px; text-align: center; border: 1px solid #dfe2e4; white-space: normal; }
.studs thead th { font-size: 11px; letter-spacing: 0; background: var(--surface); color: var(--muted); border-color: var(--line); }
.studs tbody th { background: var(--surface); color: var(--muted); font-size: 11px; border-color: var(--line); }
.studs th:first-child { width: 32px; }
.studs td.bare { color: #a9b0b5; }

.need { list-style: none; padding: 0; }
.need li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.need .mono { margin-left: auto; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; margin: 16px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* Make */
.source { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.field { display: flex; gap: 8px; flex: 1 1 360px; }
.field input { flex: 1; min-width: 0; }
.file { position: relative; }
.status { min-height: 24px; margin: 16px 0; font-size: 13px; color: var(--muted); }
.status.error { color: var(--error); }
.nfts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.nft { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 12px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color 0.2s, transform 0.3s var(--e-out); }
.nft:hover { border-color: var(--line-2); transform: translateY(-2px); }
.nft.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.nft img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--raised); image-rendering: pixelated; margin-bottom: 6px; }
.nft span { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nft small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.work { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 32px; margin-top: 56px; align-items: start; scroll-margin-top: 90px; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }
.work[hidden] { display: none; }
.work-art { display: grid; place-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-height: 240px; }
.work-art canvas { max-width: 100%; border-radius: 4px; }
.work-panel { position: sticky; top: 88px; display: grid; gap: 20px; }
.work-panel h2 { font-size: 24px; overflow-wrap: anywhere; }
.slider { display: grid; gap: 10px; }
.slider span { display: flex; justify-content: space-between; font-weight: 500; }
.slider output { font-size: 13px; color: var(--muted); }
input[type='range'] { width: 100%; accent-color: var(--accent); }
.make .check { margin: 0; }
#plan:empty { display: none; }
#plan { scroll-margin-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .nft, .btn { transition: none; }
}

/* Shop */
.edition { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
@media (max-width: 880px) { .edition { grid-template-columns: 1fr; gap: 32px; } }
.edition-art { background: #f4f4f4; border-radius: 16px; padding: 16px; position: sticky; top: 88px; }
@media (max-width: 880px) { .edition-art { position: static; } }
.edition-art img { width: 100%; image-rendering: pixelated; }
.edition-info h1 { margin-bottom: 20px; }
.price { font-size: 28px; font-weight: 500; margin: 0 0 4px; }
.edition-info #buy { margin: 24px 0 8px; }
.box { list-style: none; padding: 0; margin: 0 0 24px; }
.box li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; color: #c5cacd; }
.edition .stats { margin-bottom: 24px; }
.ship, .form { display: grid; gap: 10px; margin-top: 16px; }
.ship input, .form input, .form textarea { width: 100%; font: 15px var(--text); color: var(--fg); padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raised); }
.form textarea { resize: vertical; }
.form label { display: grid; gap: 8px; font-weight: 500; font-size: 15px; }
.form .btn { justify-self: start; margin-top: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 72px 110px; gap: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.narrow { max-width: 640px; }
