/* Hallmark · genre: atmospheric (the UMBRA family) · macrostructure: Split Studio (hero: copy beside a lit building) -> Two Doors -> Rooms (three ways to run UMBRA) -> Section Diagram (which one is right, as floors) · theme: studied-DNA (source: perennos.com/umbra/ and css/tokens.css night ground: void, bone light as the only warm colour, Anybody 300 display, CourierPrime tags)
 * enrichment: CSS 3D building at night (perspective wall, recessed windows, one lit window with light spilling onto the ground); anchor in Argon's copy: "its own room", "your back room"; the room glyphs in "Three ways to run UMBRA" are the same rooms drawn as a diagram (a). no JS, no canvas
 * pre-emit critique: P4 H4 E4 S5 R4 V5 · nav: N9 (wordmark only, as /umbra/) · footer: wordmark link, no columns
 * states: links and buttons default/hover/focus-visible/active; no disabled controls on the page
 * v2 changes from the desk's read of v1: the tile grid became a lit 3D facade with a light spill; the six "You get" labels are quiet inline lead-ins; the allowance bar and the empty room square were removed */

@font-face { font-family: "Anybody"; src: url("/fonts/anybody-latin-100-900.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "CourierPrime"; src: url("/fonts/courier-prime-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --c-void: oklch(5% 0.005 90);
  --c-light: oklch(94% 0.02 85);                 /* the page's only warm colour */
  --c-glow: oklch(94% 0.02 85 / 0.26);
  --c-bloom: oklch(94% 0.02 85 / 0.30);
  --c-spill: oklch(94% 0.02 85 / 0.46);
  --c-sill: oklch(94% 0.02 85 / 0.10);
  --c-shade: oklch(0% 0 0 / 0.85);
  --c-wall-hi: oklch(13% 0.005 90);
  --c-wall-lo: oklch(7% 0.005 90);
  --c-pane: oklch(3% 0.004 90);
  --c-faint: oklch(94% 0.02 85 / 0.07);
  --c-fall-1: oklch(94% 0.02 85 / 0.55);   /* the lit window's light falling down its own column */
  --c-fall-2: oklch(94% 0.02 85 / 0.36);
  --c-fall-3: oklch(94% 0.02 85 / 0.2);
  --c-soft: oklch(82% 0.006 90);
  --c-dim: oklch(64% 0.006 90);
  --c-rule: oklch(36% 0.006 90);
  --c-mask: oklch(0% 0 0);
  --c-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --c-text-h1: clamp(2.5rem, 1rem + 4.4vw, 5.5rem);
  --c-text-h2: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  --c-text-h3: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  --c-text-close: clamp(2.25rem, 1rem + 4.6vw, 5.25rem);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--c-void); color: var(--color-ink); font: 400 var(--text-base) / var(--lh-body) var(--font-display); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-style: normal; overflow-wrap: anywhere; min-inline-size: 0; text-wrap: balance; }

.c-skip { position: absolute; inset-inline-start: var(--space-4); inset-block-start: var(--space-4); z-index: 10; padding: var(--space-3) var(--space-4); background: var(--c-light); color: var(--c-void); transform: translateY(-200%); text-decoration: none; }
.c-skip:focus-visible { transform: none; outline: var(--focus-w) solid var(--c-light); outline-offset: 4px; }

/* N9: the mast is only the wordmark, pinned to the edge, as on /umbra/ */
.c-mast { position: absolute; inset: 0 0 auto 0; z-index: 3; padding: var(--space-6) var(--c-gutter); pointer-events: none; }
.c-home { display: inline-block; pointer-events: auto; }
.c-home img { inline-size: clamp(9rem, 14vw, 14rem); block-size: auto; }
.c-home:focus-visible { outline: var(--focus-w) solid var(--c-light); outline-offset: 8px; }

/* Hero */
.c-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); padding: var(--space-20) var(--c-gutter) calc(var(--space-20) + var(--space-8)); background: var(--c-void); }
.c-hero-text { min-inline-size: 0; }
.c-tag { font: 700 var(--text-xs) / 1.5 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-dim); max-inline-size: 48ch; }
.c-hero h1 { margin: var(--space-6) 0 var(--space-8); font: 300 var(--c-text-h1) / 1.02 var(--font-display); letter-spacing: -0.02em; max-inline-size: 15ch; }
.c-sub { font-size: var(--text-lg); line-height: 1.5; color: var(--c-soft); max-inline-size: 52ch; }
.c-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); margin-block-start: var(--space-10); }

.c-btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: var(--space-12); padding: var(--space-3) var(--space-8); background: var(--c-light); color: var(--c-void); font: 500 var(--text-base) / 1 var(--font-display); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out); }
.c-btn:hover { background: var(--c-soft); }
.c-btn:focus-visible { outline: var(--focus-w) solid var(--c-light); outline-offset: 4px; }
.c-btn:active { opacity: 0.85; }
.c-link { display: inline-flex; align-items: center; min-block-size: var(--space-12); font: 500 var(--text-base) / 1 var(--font-display); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: var(--c-dim); white-space: nowrap; transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.c-link:hover { text-decoration-color: var(--c-light); text-decoration-thickness: 2px; }
.c-link:focus-visible { outline: var(--focus-w) solid var(--c-light); outline-offset: 4px; text-decoration: none; }
.c-link:active { opacity: 0.8; }

/* The building at night: a wall turned away from us in perspective, windows recessed into it, one window lit, its light falling on the ground in front. */
.c-scene { position: relative; isolation: isolate; overflow: clip; perspective: 1000px; perspective-origin: 18% 40%; aspect-ratio: 6 / 5; align-self: center; -webkit-mask-image: radial-gradient(ellipse 62% 58% at 56% 44%, var(--c-mask) 42%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 56% 44%, var(--c-mask) 42%, transparent 100%); }
.c-wall { position: absolute; inset: 0 3% 16% 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.5rem, 1.1vw, 0.9rem); padding: clamp(0.75rem, 1.8vw, 1.5rem); transform-origin: 100% 50%; transform: rotateY(-30deg); transform-style: preserve-3d; }
.c-wall::after { content: ""; position: absolute; inset: -10%; background: radial-gradient(circle at 66% 28%, var(--c-bloom), transparent 52%); pointer-events: none; }
.c-wall i { display: block; background: var(--c-pane); border: 1px solid var(--c-rule); box-shadow: inset 0 0.4rem 0.6rem var(--c-shade), 0 1px 0 var(--c-sill); }
.c-wall i:nth-child(n + 25) { display: none; }
.c-wall i:nth-child(5), .c-wall i:nth-child(20) { background: var(--c-faint); }
.c-wall i:nth-child(16) { border-color: var(--c-fall-1); box-shadow: inset 0 0.4rem 0.6rem var(--c-shade), 0 1px 0 var(--c-fall-1); }
.c-wall i:nth-child(22) { border-color: var(--c-fall-2); }
.c-wall i:nth-child(28) { border-color: var(--c-fall-3); }
.c-wall i:nth-child(10) { background: var(--c-light); border-color: var(--c-light); box-shadow: 0 0 3rem 0.75rem var(--c-glow); animation: c-breathe 7s var(--ease-in-out) infinite alternate; z-index: 1; }
.c-spill { position: absolute; inset: auto auto 3% 22%; inline-size: 58%; block-size: 14%; background: radial-gradient(ellipse 50% 100% at 50% 0%, var(--c-spill), transparent 75%); filter: blur(6px); z-index: 0; }
@keyframes c-breathe { from { opacity: 0.82; } to { opacity: 1; } }

/* Sections */
.c-h2 { font: 300 var(--c-text-h2) / 1.1 var(--font-display); letter-spacing: -0.01em; }
.c-ways, .c-yours, .c-three, .c-which { padding: var(--space-24) var(--c-gutter) var(--space-16); border-block-start: var(--rule-hair) solid var(--c-rule); background: var(--color-paper); }
.c-doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-16); margin-block-start: var(--space-12); }
.c-door { min-inline-size: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.c-h3 { font: 300 var(--c-text-h3) / 1.12 var(--font-display); letter-spacing: -0.01em; }
.c-h3-rest { color: var(--c-dim); }
.c-door > p { color: var(--c-soft); max-inline-size: var(--measure); }
.c-gets { display: grid; gap: 0; max-inline-size: var(--measure); }
.c-gets li { padding-block: var(--space-4); border-block-start: var(--rule-hair) solid var(--c-rule); color: var(--c-soft); }
.c-gets b { font-weight: 500; color: var(--c-dim); }   /* "You get" is a quiet lead-in, not a label */

.c-rows { display: grid; gap: 0; margin-block-start: var(--space-12); max-inline-size: 64rem; }
.c-rows li { padding-block: var(--space-6); border-block-start: var(--rule-hair) solid var(--c-rule); color: var(--c-soft); max-inline-size: var(--measure); }
.c-rows li:last-child { border-block-end: var(--rule-hair) solid var(--c-rule); }
.c-rows b, .c-stairs b { display: block; margin-block-end: var(--space-2); font: 300 var(--text-xl) / 1.2 var(--font-display); color: var(--color-ink); }
.c-stairs { display: grid; gap: 0; margin-block-start: var(--space-12); }
.c-stairs li { padding-block: var(--space-6); border-block-start: var(--rule-hair) solid var(--c-rule); color: var(--c-soft); max-inline-size: var(--measure); }
.c-stairs li:last-child { border-block-end: var(--rule-hair) solid var(--c-rule); }

/* Three ways to run UMBRA: the same rooms, drawn small. (a) your own room, (b) a room in the cloud, (c) both joined. */
.c-run { display: grid; gap: 0; margin-block-start: var(--space-12); max-inline-size: 64rem; }
.c-run li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-8); border-block-start: var(--rule-hair) solid var(--c-rule); }
.c-run li:last-child { border-block-end: var(--rule-hair) solid var(--c-rule); }
.c-run h3 { margin-block-end: var(--space-3); }
.c-run p { color: var(--c-soft); max-inline-size: var(--measure); }
.c-dash { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* the dash stays in the text for readers; it is not drawn */
.c-glyph { display: flex; align-items: center; gap: var(--space-2); inline-size: 8rem; block-size: 4rem; }
.c-glyph i { display: block; border: 1px solid var(--c-rule); }
.c-g-a i { inline-size: 3.5rem; block-size: 3.5rem; border-color: var(--c-dim); background: radial-gradient(circle at 70% 70%, var(--c-glow), transparent 55%); }
.c-g-b { flex-wrap: wrap; align-content: center; inline-size: 3.5rem; }
.c-g-b i { inline-size: 1.5rem; block-size: 1.5rem; }
.c-g-b i:nth-child(2), .c-g-c i:nth-child(3) { background: var(--c-light); border-color: var(--c-light); box-shadow: 0 0 1rem 0.2rem var(--c-glow); }
.c-g-c i:nth-child(1) { inline-size: 2.5rem; block-size: 2.5rem; border-color: var(--c-dim); }
.c-g-c i:nth-child(3) { inline-size: 1.5rem; block-size: 1.5rem; }
.c-g-c b { display: block; inline-size: 1.5rem; block-size: 1px; background: var(--c-dim); }

.c-close { padding: var(--space-24) var(--c-gutter) var(--space-32); border-block-start: var(--rule-heavy) solid var(--c-light); background: var(--c-void); }
.c-close-line { font: 300 var(--c-text-close) / 1.04 var(--font-display); letter-spacing: -0.02em; max-inline-size: 16ch; margin-block-end: var(--space-10); text-wrap: balance; overflow-wrap: anywhere; }
.c-foot { padding: var(--space-6) var(--c-gutter) var(--space-12); border-block-start: var(--rule-hair) solid var(--c-rule); font: 700 var(--text-xs) / 1.5 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.c-foot a { display: inline-flex; align-items: center; min-block-size: var(--space-11); text-decoration: none; white-space: nowrap; }
.c-foot a:hover { color: var(--c-soft); }
.c-foot a:focus-visible { outline: var(--focus-w) solid var(--c-light); outline-offset: 4px; }

@media (min-width: 1000px) {
  .c-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-16); align-items: center; padding-block: var(--space-20) var(--space-32); }
  .c-scene { aspect-ratio: 6 / 7; }
  .c-wall i:nth-child(n + 25) { display: block; }
  .c-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-20); }
  .c-yours, .c-which { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-16); }
  .c-rows, .c-stairs { margin-block-start: 0; }
  .c-stairs li:nth-child(2) { margin-inline-start: 12%; }
  .c-stairs li:nth-child(3) { margin-inline-start: 24%; }
  .c-run li { grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-12); align-items: start; }
}
@media (max-width: 600px) {
  .c-hero { gap: var(--space-10); }
  .c-ways, .c-yours, .c-three, .c-which { padding-block: var(--space-16) var(--space-12); }
  .c-close { padding-block: var(--space-16) var(--space-24); }
  .c-cta-row { gap: var(--space-2) var(--space-8); }
}
@media (prefers-reduced-motion: reduce) {
  .c-wall i:nth-child(10) { animation: none; }
  .c-btn, .c-link { transition: none; }
}
