/* Hallmark · shape: Index-First (draw 937fb1 dealt Narrative Workflow; swapped, the lab has no process to narrate) · genre: atmospheric · theme: brand · redesign: full
 * paper: oklch(15.7% 0.008 125) · accent: oklch(94% 0.21 121) · display: Space Grotesk · body: JetBrains Mono · hero: Index · nav: banner over a retracting bar · footer: mast · signature: the experiments listed like ls output, the live one lit in volt, then pia opened on its real captures
 * axes: dark/grotesk/volt · posture: Restrained · contrast: pass · fold: pass · job: hire · imagery: screenshots 2 (capture.mjs) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: P, a lab index argues little on its own; the house rules carry the argument at section scale instead of in footnote boxes */
/* Hallmark · dismissed 19 · "supercharged" is the page's own name, which gate 19 never counts */
/* Hallmark · answered F1 · every quote and apostrophe in the copy is typographic */
/* Hallmark · waive 44c · Index posture, the experiments rows are the hero's visual and run to y 790 · the linter ends the hero at the hidden Experiments heading */
/* Hallmark · waive 79 · Index posture, the pia and next rows fill the first screen to within 110px of the fold · measured from the hidden heading, not the rows */
/* Hallmark · dismissed 25 · the house rules are two-sentence captions under display titles, which may sit from 28ch */
@import url("./tokens.css");
@import url("./base.css");

:root { --bar-h: 72px; --banner-h: 40px; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* Banner: the shell prompt, scrolls away; the bar below it sticks */
.banner { height: var(--banner-h); display: flex; align-items: center; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.banner b { color: var(--color-accent); font-weight: 500; }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; margin-left: var(--space-2xs); background: var(--color-accent); vertical-align: -0.2em; animation: blink 1.1s steps(1) 5; }
@keyframes blink { 50% { opacity: 0; } }

.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); height: var(--bar-h); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.mark { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; font: 700 var(--text-lg)/1 var(--font-display); letter-spacing: -0.02em; }
.mark svg { width: 22px; height: 22px; flex-shrink: 0; }
.mark-name span, .mast span { color: var(--color-accent); }
.links { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.links a { text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-short) var(--ease-out); }
.links a:hover { color: var(--color-ink); }
.links a:active { color: var(--color-accent); }

/* Controls */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); border-color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-3); border-color: var(--color-muted); }
.links .btn--quiet { min-height: 44px; color: var(--color-ink); }

/* Hero: the index is the visual */
.hero { min-height: calc(100dvh - var(--bar-h) - var(--banner-h)); display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-2xl); }
.hero-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.hero h1 { grid-column: 1 / 8; font-size: var(--text-display); max-width: 14ch; line-height: 0.98; }
.hero-side { grid-column: 9 / 13; display: grid; gap: var(--space-lg); justify-items: start; }
.hero-side .lead { color: var(--color-ink-2); }

.index { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); text-decoration: none; color: inherit; }
.row h3 { grid-column: 1 / 4; font-size: var(--text-section); line-height: 1; }
.row .addr { grid-column: 4 / 7; color: var(--color-muted); font-size: var(--text-sm); }
.row .addr--live { color: var(--color-accent); }
.row p { grid-column: 7 / 11; color: var(--color-ink-2); }
.row .status { grid-column: 11 / 13; justify-self: end; }
a.row h3 { transition: color var(--dur-short) var(--ease-out); }
a.row:hover h3 { color: var(--color-accent); }
a.row:active h3 { color: var(--color-ink-2); }
a.row:focus-visible { outline-offset: -2px; }
.row--dim h3 { color: var(--color-muted); }
.status { padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; }
.status--live { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.index-note { margin-top: var(--space-lg); color: var(--color-ink-2); }

/* pia, opened up */
.case { padding-block: var(--section-gap) var(--section-gap-l); }
.case-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; margin-bottom: var(--space-2xl); }
.case-text { grid-column: 1 / 8; display: grid; gap: var(--space-2xl); }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-sm) var(--space-lg); padding-top: var(--space-xs); }
.facts dt { color: var(--color-muted); }
.facts dd { margin: 0; color: var(--color-ink-2); }
.shot { margin: 0; border-radius: var(--radius-card); }
.shot--desktop { aspect-ratio: 2880 / 1300; }
.shot--phone { grid-column: 9 / 13; aspect-ratio: 780 / 1180; }
.shot > img { outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; border-radius: var(--radius-card); object-position: 50% 0; }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-md); }
.caption { color: var(--color-muted); font-size: var(--text-sm); max-width: 60ch; }

/* Built to order: a change of paper */
.band { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--section-gap-s); }
.band .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.band-text { grid-column: 1 / 6; display: grid; gap: var(--space-lg); justify-items: start; }
.band-text p { color: var(--color-ink-2); }
.tools { grid-column: 7 / 13; margin: 0; }
.tools pre { margin: 0; padding: var(--space-2xl) var(--space-xl); min-height: 360px; background: var(--color-paper-3); border-radius: var(--radius-card); color: var(--color-ink-2); font: 400 var(--text-md)/2 var(--font-body); overflow-x: auto; }
.tools pre b { color: var(--color-ink); font-weight: 500; }
.tools pre i { color: var(--color-muted); font-style: normal; }
.tools figcaption { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.prompt { color: var(--color-accent); }

/* House rules */
.rules { padding-block: var(--section-gap-l) var(--section-gap); }
.rules h2 { margin-bottom: var(--space-2xl); }
.rules ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.rules li { display: grid; gap: var(--space-md); align-content: start; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink); }
.rules h3 { font-size: var(--text-display-s); line-height: 1; }
.rules li p { color: var(--color-ink-2); max-width: 32ch; }

/* Mast footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl) var(--space-xl); }
.mast { margin: 0 0 var(--space-xl); font: 700 clamp(2rem, 10.5vw, 10rem)/0.9 var(--font-display); letter-spacing: -0.05em; overflow-wrap: break-word; min-width: 0; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
.foot-row ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot-row a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.foot-row a:hover { color: var(--color-ink); text-decoration: underline; }
.foot-row a:active { color: var(--color-accent); }

@media (max-width: 60rem) {
  .links li:not(:last-child) { display: none; }
  .hero-head, .case-head, .band .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero h1, .hero-side, .case-text, .shot--phone, .band-text, .tools { grid-column: 1 / -1; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-md); }
  .row h3 { grid-column: 1; } .row .status { grid-column: 2; grid-row: 1; align-self: center; }
  .row .addr, .row p { grid-column: 1 / -1; }
  .shot--phone { display: none; }
  .rules ul { grid-template-columns: minmax(0, 1fr); }
  .rules li { min-height: 0; padding-bottom: var(--space-lg); }
}
@media (max-width: 40rem) { .links { display: none; } .tools pre { padding: var(--space-lg); font-size: var(--text-xs); } }
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .btn, .links a, a.row h3, .foot-row a { transition: none; }
}
