/* Hallmark · shape: Index-First (kept) · genre: editorial · theme: Atelier (by request), night variant · redesign: full
 * hero: Settled, the wall head left, the card on the bench right · nav: wordmark + contact · footer: one line · imagery: none (the room is CSS material) · signature: the Fillmore card on cotton stock, propped on a wood bench under a desk lamp at night
 * axes: dark/roman-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: E, one app on the bench so far; the card is set large under the lamp so the room reads as a workshop, not an empty page */
/* Hallmark · waive 81 · .lamp sits behind the Fillmore card and lights it · the lamp is the scene's light source on a real object, not an empty wash */
/* Hallmark · night: Atelier's limewash paper becomes the umber room after dark; card stock, Sentient light, hairlines and the slate signal are kept */

/* Self-hosted: Sentient (Indian Type Foundry, Fontshare free licence) and Hanken Grotesk (SIL OFL 1.1), downloaded 2026-12-04. */
@font-face { font-family: "Sentient"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/sentient-300.woff2") format("woff2"); }
@font-face { font-family: "Sentient"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/sentient-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/hanken-grotesk-400.woff2") format("woff2"); }

:root {
  /* the room at night */
  --color-paper: oklch(16.5% 0.016 55); --color-paper-2: oklch(20% 0.018 56); --color-paper-3: oklch(24% 0.022 58);
  --color-ink: oklch(93% 0.014 78); --color-ink-2: oklch(80% 0.016 72); --color-muted: oklch(66% 0.016 66);
  --color-rule: oklch(33% 0.02 58);
  --color-accent: oklch(74% 0.06 248); --color-accent-ink: oklch(16.5% 0.016 55); --color-focus: oklch(76% 0.08 248);
  --color-bench: oklch(30% 0.04 60); --color-bench-edge: oklch(55% 0.06 70);
  --lamp: oklch(82% 0.085 78 / 0.34); --lamp-2: oklch(70% 0.07 70 / 0.12);
  /* cotton card stock (Atelier, unchanged) */
  --color-card: oklch(97.6% 0.007 82); --color-card-edge: oklch(86% 0.012 72); --color-pencil: oklch(52% 0.010 62);
  --card-lit: oklch(98.4% 0.006 84); --card-shade: oklch(93% 0.012 76); --lit: oklch(99.6% 0.004 85 / 0.9);
  --card-ink: oklch(19% 0.024 52); --card-ink-2: oklch(31% 0.018 54); --card-muted: oklch(47% 0.014 60); --card-accent: oklch(41% 0.075 248);
  --stain: oklch(66% 0.055 150); --shadow-icon: 0 1px 2px oklch(20% 0.02 55 / 0.25);
  --shadow-card: 0 0 0 1px oklch(10% 0.02 55 / 0.3), 0.5px 1px 1px oklch(10% 0.02 55 / 0.3), 6px 14px 20px -8px oklch(8% 0.02 55 / 0.55), 24px 48px 70px -24px oklch(6% 0.02 55 / 0.7);
  --font-display: "Sentient", Georgia, serif; --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --radius-pill: 3px; --rule-hair: 1px;
  --tracking-display: -0.022em; --display-weight: 300; --serif-small: 400;
  --container: 1200px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='260'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0025 0.09' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0 0.02 1.6 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}

html { scrollbar-color: var(--color-muted) var(--color-paper); }
body { display: flex; flex-direction: column; min-height: 100svh; color: var(--color-ink-2); font-size: 1.0625rem; line-height: 1.6; }
h1, h2 { color: var(--color-ink); }
a { transition: text-decoration-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); color: var(--color-ink); }

/* nav */
.top { position: relative; z-index: var(--z-raised); border-bottom: var(--rule-hair) solid var(--color-rule); }
.top .container { display: flex; align-items: center; min-height: 68px; gap: var(--space-lg); }
.top .name { font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-lg); color: var(--color-ink); text-decoration: none; }
.top .contact { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); color: var(--color-ink); font-size: var(--text-sm); text-decoration: none; }
.top .contact:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.top .contact:active { opacity: 0.8; }

/* the room, the lamp, the bench */
.room { position: relative; flex: 1; display: flex; flex-direction: column; isolation: isolate; }
.room::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: var(--grain); background-size: 180px; opacity: 0.05; mix-blend-mode: overlay; }
.lamp { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 42% 58% at 72% 46%, var(--lamp), transparent 72%), radial-gradient(ellipse 80% 70% at 70% 60%, var(--lamp-2), transparent 80%);
  animation: lamp 9s var(--ease-in-out) infinite alternate; }
@keyframes lamp { from { opacity: 0.88; } to { opacity: 1; } }
.bench { position: relative; z-index: 1; height: var(--space-4xl); margin-top: calc(-1 * var(--space-2xl));
  background: var(--wood) 0 0 / 900px 260px, linear-gradient(180deg, var(--color-bench), var(--color-paper-2));
  border-top: var(--rule-hair) solid var(--color-bench-edge); box-shadow: inset 0 1px 0 var(--lamp); }

.desk { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; padding-block: var(--space-3xl) 0; }
.wall { align-self: center; padding-bottom: var(--space-2xl); container-type: inline-size; }
.wall h1 { font-size: min(7.5rem, 19cqi); line-height: 1; max-width: none; white-space: nowrap; overflow-wrap: normal; text-wrap: balance; letter-spacing: var(--tracking-display); }
.wall .lead { margin-top: var(--space-lg); max-width: 32ch; color: var(--color-ink-2); }

/* the card on the bench */
.spot { position: relative; display: flex; justify-content: center; padding-bottom: var(--space-xl); }
.shelf { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; width: min(100%, 440px); }
.stock { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-lg); padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-radius: 2px; color: var(--card-ink-2);
  background: var(--fibre) 0 0 / 220px, linear-gradient(160deg, var(--card-lit), var(--color-card) 55%, var(--card-shade));
  box-shadow: var(--shadow-card), inset 1px 1px 0 var(--lit); text-shadow: 0 1px 0 var(--lit);
  transform: rotate(-1.5deg); transform-origin: 50% 100%;
  animation: settle var(--dur-long) var(--ease-out) both; }
@keyframes settle { from { opacity: 0; transform: translateY(10px) rotate(-1.5deg); } }
.stock::before { content: ""; position: absolute; inset: 0.875rem; border: var(--rule-hair) solid var(--color-card-edge); pointer-events: none; }
.stock img { position: relative; width: 64px; height: 64px; border-radius: 14px; box-shadow: var(--shadow-icon); }
.stock .body { display: grid; gap: var(--space-sm); }
.stock h2 { font-size: var(--text-xl); font-weight: var(--serif-small); line-height: 1.2; letter-spacing: -0.01em; color: var(--card-ink); }
.stock h2 a { color: inherit; text-decoration: none; }
.stock h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stock h2 a:focus-visible { outline: none; }
.stock:has(h2 a:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.stock:has(h2 a:hover) h2 a { text-decoration: underline; text-decoration-color: var(--card-accent); }
.stock p { font-size: var(--text-md); }
.stock .label { position: relative; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-card-edge); font-size: var(--text-sm); }
.edition { font-family: var(--font-display); color: var(--color-pencil); }
.tag { padding: 2px var(--space-sm); border: var(--rule-hair) solid var(--card-accent); border-radius: var(--radius-pill); color: var(--card-accent); background: color-mix(in oklab, var(--card-accent) 8%, transparent); }

/* a blotter strip tucked behind the card */
.strip { position: absolute; z-index: 0; top: calc(-1 * var(--space-xl)); right: calc(50% - 228px); width: 30px; height: 200px; transform: rotate(11deg); transform-origin: 50% 100%;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  background: linear-gradient(180deg, transparent 0 55%, color-mix(in oklab, var(--stain) 55%, transparent) 80%, var(--stain)), var(--fibre) 0 0 / 220px, var(--color-card);
  box-shadow: var(--shadow-card); display: flex; justify-content: center; padding-top: var(--space-sm); text-decoration: none; cursor: pointer;
  transition: transform var(--dur-short) var(--ease-out); }
.strip:hover { transform: translateY(calc(-1 * var(--space-xs))) rotate(15deg); }
.strip:active { transform: translateY(calc(-1 * var(--space-2xs))) rotate(13deg); }
.strip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.strip span { writing-mode: vertical-rl; font-family: var(--font-display); font-size: var(--text-xs); color: var(--card-ink-2); }

/* footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); background: var(--color-paper-2); }
.foot a { color: var(--color-ink-2); text-decoration-color: var(--color-accent); }
.foot a:hover { color: var(--color-ink); }

@media (max-width: 60rem) {
  .desk { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-2xl); gap: var(--space-xl); }
  .wall { padding-bottom: 0; }
  .lamp { background: radial-gradient(ellipse 70% 40% at 50% 70%, var(--lamp), transparent 72%); }
  .strip { right: var(--space-lg); top: calc(-1 * var(--space-2xl)); }
}
@media (max-width: 40rem) {
  .stock { grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-md); padding: var(--space-lg); transform: rotate(-1deg); }
  @keyframes settle { from { opacity: 0; transform: translateY(10px) rotate(-1deg); } }
  .stock img { width: 48px; height: 48px; border-radius: 11px; }
  .shelf { width: calc(100% - var(--space-xs)); }
}
@media (prefers-reduced-motion: reduce) { .lamp, .stock { animation: none; } }
