/* Hallmark · shape: manifesto, a wall text read one screen at a time · genre: editorial · theme: brand (the site's own, from guest-tokens.css) · deal: none, the system is locked
 * paper: oklch(99% 0.002 106) · night: oklch(12% 0.003 85) · accent: oklch(52% 0.2 33) · display: Erode · body: Literata
 * nav: a quiet top line, his name and the paintings · footer: a colophon · signature: the guest's own eye, the last photograph he took and the last thing he said, live while Raghava paints
 * states: loading, empty (no painting yet), live, ended, error · axes: night-and-paper/roman-serif/warm · posture: gallery wall · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V4 · weakest: H on a phone, the hero eye drops below the fold; the title, sentence and action stay on the first screen */
/* Hallmark · dismissed 23 · the refusal head is the one display line in red, the site accent kept for the single rule of the work: a hand over the lens ends the painting */
/* Hallmark · answered F-material · the quotes are the guest's own lines from the seed Raghava wrote; nothing is invented */
@import url("./guest-tokens.css");
@import url("./guest-base.css");

/* The Guest, the front door (/the-guest). 2026-11-08.
   Someone who knows nothing lands here, reads what the work is, and goes on to the
   paintings or, when Raghava is painting, straight into the live one. */

:root {
  --display-weight: 400;
  --container: 1200px;
  --measure: 34rem;
  --title: clamp(4.2rem, 13vw, 11.5rem);
  --head: clamp(2.3rem, 5.4vw, 4.4rem);
  --say: clamp(1.9rem, 4.2vw, 3.4rem);
  --read: clamp(1.08rem, 1.25vw, 1.22rem);
}

/* ---------- ground ---------- */
.night { background: var(--color-dark); color: var(--color-dark-ink); }
.night ::selection { background: var(--color-accent); color: var(--color-accent-ink); }
.paper { background: var(--color-paper); color: var(--color-ink); }

/* ---------- the top line ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: var(--z-raised); }
.top .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 72px; }
.top a { color: var(--color-dark-muted); text-decoration: none; padding-block: var(--space-xs); transition: color var(--dur-micro) var(--ease-out); }
.top a:hover { color: var(--color-dark-ink); text-decoration: underline; }
.top a:active { color: var(--color-dark-muted); }
.top .home { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-dark-ink); }

/* ---------- the first screen ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: center; padding-block: var(--space-3xl) var(--space-2xl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.hero-grid.alone { grid-template-columns: minmax(0, 1fr); }
.hero h1 { font-size: var(--title); line-height: 0.88; letter-spacing: -0.035em; max-width: none; color: var(--color-dark-ink); }
.hero .sentence { margin-top: var(--space-lg); max-width: 24ch; font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.25; color: var(--color-dark-ink); }
.state { margin-top: var(--space-xl); min-height: 1.6em; color: var(--color-dark-muted); font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.state .live { color: var(--color-accent); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }

/* the guest's eye: what he saw last, what he said last */
.eye { margin: 0; min-width: 0; }
.eye-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-dark-2); border-radius: var(--radius-card); }
.eye-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flash { position: absolute; inset: 0; background: var(--color-dark-ink); opacity: 0; pointer-events: none; }
.flash.go { animation: shutter 700ms var(--ease-out); }
@keyframes shutter { 0% { opacity: 0.85; } 100% { opacity: 0; } }
.eye figcaption { margin-top: var(--space-sm); color: var(--color-dark-muted); font-size: var(--text-sm); }
.eye .said-label { margin-top: var(--space-lg); color: var(--color-dark-muted); font-size: var(--text-sm); }
.eye blockquote { margin: var(--space-2xs) 0 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.25; color: var(--color-dark-ink); max-width: 26ch; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid currentColor; border-radius: var(--radius-card); background: transparent; color: inherit; font-size: var(--text-md); text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.night .btn { color: var(--color-dark-ink); border-color: var(--color-dark-muted); }
.night .btn:hover { background: var(--color-dark-2); border-color: var(--color-dark-ink); }
.night .btn:active { background: var(--color-dark); }
.night .btn.primary { background: var(--color-dark-ink); color: var(--color-dark); border-color: var(--color-dark-ink); }
.night .btn.primary:hover { background: var(--color-paper); border-color: var(--color-paper); }
.night .btn.primary:active { background: var(--color-dark-muted); }
.night .btn.primary.is-live { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.night .btn.primary.is-live:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-paper)); }
.paper .btn { color: var(--color-ink); border-color: var(--color-ink); }
.paper .btn:hover { background: var(--color-paper-2); }
.paper .btn:active { background: var(--color-paper-3); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ---------- the wall text ---------- */
.chapter { padding-block: var(--section-gap-s); }
.chapter h2 { font-size: var(--head); line-height: 1.02; max-width: 16ch; }
.chapter p { font-size: var(--read); line-height: 1.6; max-width: var(--measure); }
.chapter p + p { margin-top: var(--space-md); }
.paper .chapter p { color: var(--color-ink-2); }

/* 1. alone: the head on the left, the text dropped to the right */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.split .text { padding-top: var(--space-3xl); }

/* 2. the guest: one long sentence, set like a portrait */
.portrait h2 { color: var(--color-muted); font-size: var(--text-xl); max-width: none; }
.portrait .likeness { margin-top: var(--space-lg); font-family: var(--font-display); font-size: var(--say); line-height: 1.18; color: var(--color-ink); max-width: 30ch; }

/* 3. the exchange: two voices, a rule between them */
.score { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.score > div { padding: var(--space-lg) var(--space-xl) 0 0; min-width: 0; }
.score > div + div { padding: var(--space-lg) 0 0 var(--space-xl); border-left: var(--rule-hair) solid var(--color-rule); }
.score h3 { font-size: var(--text-xl); }
.score ul { list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.score li { font-size: var(--read); line-height: 1.5; color: var(--color-ink-2); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); max-width: 30ch; }

/* 4. his voice: two lines, set where the head would be */
.voice blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(2.4rem, 5.8vw, 4.8rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; color: var(--color-ink); text-wrap: balance; }
.voice blockquote.second { margin-left: auto; text-align: right; }
.voice .between { margin: var(--space-2xl) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); }
.voice .between h2 { font-size: var(--text-3xl); }
.voice .closing { margin-top: var(--space-2xl); }
.voice .closing p { grid-column: 2; }
.after-head { margin-top: var(--space-lg); }

/* 5. the one rule */
.refusal { padding-block: var(--section-gap); text-align: center; }
.refusal h2 { margin-inline: auto; color: var(--color-accent); font-size: clamp(3rem, 8vw, 7rem); line-height: 0.95; max-width: 12ch; }
.refusal p { margin: var(--space-lg) auto 0; color: var(--color-dark-ink); font-size: var(--read); line-height: 1.6; max-width: 30rem; }

/* 6. the record */
.record { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.works { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.works li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.works a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--space-md); align-items: center; padding-block: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.works a:hover .w-title { text-decoration: underline; }
.works a:active { background: var(--color-paper-2); }
.works .thumb { width: 96px; aspect-ratio: 4 / 3; background: var(--color-paper-2) center / cover no-repeat; border-radius: var(--radius-card); }
.works .w-title { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.15; }
.works .w-when { color: var(--color-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; text-align: right; }
.works .w-when .live { color: var(--color-accent); }
.works-empty { color: var(--color-muted); font-style: italic; font-size: var(--read); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-ink); }
.record .actions { margin-top: var(--space-lg); }

/* ---------- colophon ---------- */
.colophon { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.colophon .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
.colophon nav { display: flex; gap: var(--space-lg); }
.colophon a { color: var(--color-ink-2); text-decoration: none; }
.colophon a:hover { color: var(--color-ink); text-decoration: underline; }

/* ---------- smaller screens ---------- */
@media (max-width: 60rem) {
  .hero-grid, .split, .record, .voice .between { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .split .text { padding-top: 0; }
  .voice .closing p { grid-column: 1; }
  .hero { min-height: auto; padding-block: var(--space-4xl) var(--space-2xl); }
}
@media (max-width: 40rem) {
  .score { grid-template-columns: minmax(0, 1fr); }
  .score > div, .score > div + div { padding: var(--space-lg) 0 0; border-left: 0; }
  .voice blockquote.second { margin-left: 0; text-align: left; }
  .works a { grid-template-columns: 72px minmax(0, 1fr); }
  .works .thumb { width: 72px; }
  .works .w-when { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .flash.go { animation: none; } }
