/* notfoundium.com: MolKraft's look (cobalt, ink and white; IBM Plex), one page. Light and dark from the system. */
@font-face { font-family: 'Plex Sans'; src: url(/fonts/IBMPlexSans-Regular-Latin1.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url(/fonts/IBMPlexSans-Medium-Latin1.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(/fonts/IBMPlexMono-Regular-Latin1.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --page: #F2F3FA; --raised: #FFFFFF; --ink: #161618; --text: #1A1B22; --muted: #5C5F6E; --hair: #D8DAE4;
  --accent: #0B33D6; --accent-soft: #E9EDFF; --stage: #14162A; --stage-text: #F2F3F7; --stage-muted: #A6A9BD;
  --stage-accent: #6B84FF; --o: #E5484D;
  --sans: 'Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #121216; --raised: #23242E; --ink: #F2F3F7; --text: #F2F3F7; --muted: #A3A6B5; --hair: #2E3039; --accent: #6B84FF; --accent-soft: #171D40; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.pad { padding-left: max(16px, 4vw, env(safe-area-inset-left)); padding-right: max(16px, 4vw, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--raised); color: var(--ink); border-radius: 8px; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; height: 72px; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 7px; font-weight: 500; font-size: 14px; color: var(--accent); letter-spacing: -0.02em; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--page); text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 860px) { .top nav { display: none; } .pill { margin-left: auto; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; min-height: calc(100svh - 72px); padding-top: 24px; padding-bottom: 48px; }
.eyebrow { margin: 0 0 18px; font: 400 13px/1.4 var(--mono); color: var(--muted); }
h1 { margin: 0 0 22px; font-weight: 400; font-size: clamp(44px, 6.4vw, 104px); line-height: 0.98; letter-spacing: -0.045em; color: var(--ink); }
h1 span { color: var(--accent); }
.lede { margin: 0 0 16px; max-width: 34rem; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; color: var(--ink); }
.hint { margin: 0; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.stage { position: relative; margin: 0; aspect-ratio: 1 / 0.82; border-radius: 22px; background: radial-gradient(120% 90% at 30% 20%, #24285A 0%, var(--stage) 60%); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.stage figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; font: 400 12px/1.4 var(--mono); color: var(--stage-muted); pointer-events: none; }
.fallback { position: absolute; inset: 12% 8% 18%; width: 84%; height: 70%; }
.stage.live .fallback { display: none; }
.fb-bond line { stroke: #9AA0B8; stroke-width: 3; opacity: 0.6; }
.fb-nf circle { fill: rgba(107, 132, 255, 0.35); stroke: var(--stage-accent); stroke-width: 2; stroke-dasharray: 4 3; }
.fb-o { fill: var(--o); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; } .stage { aspect-ratio: 1 / 0.9; } }

/* Bands */
.band { padding-top: 9vh; padding-bottom: 9vh; border-top: 1px solid var(--hair); }
h2 { margin: 0 0 14px; font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.note { margin: 0; font-size: 15px; color: var(--muted); max-width: 34rem; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; max-width: 1240px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose p { margin: 0 0 1em; max-width: 44rem; font-size: 18px; line-height: 1.65; }
.prose .note { font-size: 15px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 44rem; }
.facts li { padding: 14px 18px; border: 1px solid var(--hair); border-radius: 12px; background: var(--raised); font-size: 17px; }
.facts b { font-weight: 500; color: var(--ink); }

/* The tile */
.tile { position: relative; display: grid; place-content: center; text-align: center; width: 210px; aspect-ratio: 1; margin-top: 32px; border: 2px solid var(--ink); border-radius: 14px; background: var(--raised); transform: rotate(-4deg); transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover { transform: rotate(0deg) scale(1.03); }
.t-z { position: absolute; top: 12px; left: 14px; font: 400 14px/1 var(--mono); color: var(--muted); }
.t-sym { font-weight: 500; font-size: 92px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.t-name { margin-top: 4px; font-size: 15px; color: var(--ink); }
.t-life { position: absolute; left: 0; right: 0; bottom: 12px; font: 400 11px/1 var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover { transform: none; transition: none; } }

/* Data sheet */
.sheet { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; border-top: 1px solid var(--hair); }
.sheet dt, .sheet dd { margin: 0; padding: 12px 24px 12px 0; border-bottom: 1px solid var(--hair); }
.sheet dt { font: 400 12px/2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sheet dd { font-size: 17px; color: var(--ink); }
@media (max-width: 560px) { .sheet { grid-template-columns: minmax(0, 1fr); } .sheet dt { border-bottom: 0; padding-bottom: 0; } }

/* Dark band */
.band.dark { background: var(--stage); color: var(--stage-text); border-top: 0; }
.band.dark h2 { color: var(--stage-text); }
.band.dark .eyebrow, .band.dark .note { color: var(--stage-muted); }
.band.dark .prose p { color: var(--stage-text); }

/* Merchandise */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; max-width: 1240px; margin-bottom: 28px; }
.merch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; max-width: 1240px; }
.merch li { margin: 0; }
.merch figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--raised); border: 1px solid var(--hair); }
.merch img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.merch figure:hover img { transform: scale(1.04); }
.merch figcaption { padding: 12px 16px 14px; font-size: 15px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .merch img, .merch figure:hover img { transition: none; transform: none; } }

/* Footer */
.foot { background: var(--stage); color: var(--stage-text); padding-top: 10vh; padding-bottom: 28px; border-radius: 24px 24px 0 0; }
.big { margin: 0 0 6vh; font-weight: 400; font-size: clamp(120px, 24vw, 380px); line-height: 0.82; letter-spacing: -0.06em; }
.big span { color: var(--stage-accent); }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--stage-muted); }
.fine a { color: var(--stage-text); }

/* 404 (the same page as molkraft.com's) */
.nf404 { padding-top: 64px; padding-bottom: 10vh; max-width: 1240px; }
.nf404-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: start; margin-bottom: 7vh; }
.nf404-head .tile { margin-top: 8px; width: clamp(180px, 20vw, 260px); }
.nf404-head .t-sym { font-size: clamp(72px, 8vw, 112px); }
.nf404 h1 { font-size: clamp(40px, 5.4vw, 84px); }
.nf404 .lede { max-width: 46rem; }
.nf404-stable { padding-top: 5vh; border-top: 1px solid var(--hair); }
.nf-links { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nf-links li { margin: 0; }
.nf-links a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--raised); transition: border-color 0.2s ease; }
.nf-links a:hover, .nf-links a:focus-visible { border-color: var(--accent); }
.nf-links b { font-weight: 500; font-size: 18px; color: var(--ink); }
.nf-links span { font-size: 15px; color: var(--muted); }
.fine-print { margin: 6vh 0 0; font: 400 13px/1.4 var(--mono); color: var(--muted); }
@media (max-width: 760px) { .nf404-head { grid-template-columns: minmax(0, 1fr); } .nf404-head .tile { order: -1; width: 172px; } .nf404-head .t-sym { font-size: 60px; } }

/* The molecule, observed: the message where it was */
.stage:focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 4px; }
.stage canvas { cursor: crosshair; }
.gone-msg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(1.6em); margin: 0; padding: 0 20px; text-align: center; font-size: clamp(16px, 1.6vw, 20px); color: var(--stage-text); opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
.gone-msg b { display: block; font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; color: var(--stage-accent); }
.gone-msg span { color: var(--stage-muted); font-size: 0.85em; }
.gone-msg.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gone-msg { transition: none; } }
.top > .pill:last-child { margin-left: auto; }
