/* Paper, ink and one hot dot. The hero is a swarm of ink dots on paper (swarm.js) over a faint
   looping film; everything below it is quiet type on the same paper. Nothing here reads or
   follows the scroll position (owner ruling 2026-09-07). Light only: dark is never the default. */
/* Both faces are served from this site (public/fonts, SIL OFL), so no page load reaches a third party. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("public/fonts/sora-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("public/fonts/jetbrains-mono-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fbfaf6;
  --ink: #14151b;
  --soft: #5b5d68;
  --hot: #ff5a36;
  --hot-deep: #c93b17;
  --line: rgba(20, 21, 27, 0.16);
  --gut: clamp(18px, 3.2vw, 44px);
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; font-size: 13px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1320px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.eyebrow { margin: 0; font: 500 12px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
h2 { margin: 12px 0 0; font-weight: 600; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; }
h3 { margin: 0; font-weight: 600; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.02em; }

/* The pill: ink on paper, and a deeper orange on hover that still reads (4.9:1). */
.cta { display: inline-flex; align-items: center; padding: 12px 18px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; transition: background 0.3s; }
.cta:hover { background: var(--hot-deep); }
.cta-big { padding: 18px 30px; font-size: 13px; }
button.cta { border: 0; font-family: inherit; cursor: pointer; }
.ghost { font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid rgba(20, 21, 27, 0.3); border-radius: 999px; padding: 12px 18px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.ghost:hover { background: var(--ink); color: var(--paper); }

/* The contact card: a native modal dialog holding the contact form (site.js posts it to /api/contact). */
.card { border: 0; padding: clamp(22px, 4vw, 34px); border-radius: 18px; background: var(--paper); color: var(--ink); width: min(460px, calc(100vw - 32px)); box-shadow: 0 0 0 1px rgba(20, 21, 27, 0.22); }
.card::backdrop { background: rgba(251, 250, 246, 0.8); }
.card[open] { animation: rise 0.28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card h2 { margin: 0; font-size: clamp(30px, 5vw, 40px); }
.card-note { margin: 10px 0 0; color: var(--soft); }
.card-form { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field span { font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
/* 16px text: iOS Safari zooms the page into any smaller field. */
.field input, .field textarea { width: 100%; font: 400 16px/1.45 var(--sans); color: var(--ink); background: #fff; border: 1px solid rgba(20, 21, 27, 0.3); border-radius: 10px; padding: 11px 13px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
/* The bot trap: off-screen for people, still in the form for a script that fills every field. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.card-check:empty { display: none; }
.card-form .card-row { margin-top: 2px; }
button.cta { border: 0; cursor: pointer; font-family: var(--sans); }
button.cta:disabled { opacity: 0.55; cursor: progress; }
.card-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.card-x { position: absolute; top: 14px; right: 14px; padding: 8px 12px; font-size: 11px; }
.card-status { min-height: 1.4em; margin: 0; font: 500 12px/1.4 var(--mono); color: var(--soft); }
.card-status.bad { color: var(--hot-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100svh, 560px); overflow: hidden; isolation: isolate; }
/* The film is a faint wash behind the page, fading out into the paper below the hero. */
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.12; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0, #000 62%, transparent 100%); mask-image: linear-gradient(#000 0, #000 62%, transparent 100%); }
/* On a wide screen the print sits at the right of the hero, placed by swarm.js (--cx --cy --cw --ch).
   On a phone it is part of the flow, under the name, so nothing can land on the text below it. */
.swarm { position: absolute; left: var(--cx, 0); top: var(--cy, 0); width: var(--cw, 0); height: var(--ch, 0); display: block; touch-action: pan-y; pointer-events: auto; }
.hero-ui { position: relative; z-index: 2; min-height: max(100svh, 560px); display: grid; grid-template-rows: auto 1fr auto; padding: 22px var(--gut) 26px; pointer-events: none; }
.hero-ui a, .hero-ui button, .portrait { pointer-events: auto; }

.bar { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.bar p { margin: 0; }
.bar .eyebrow { color: var(--ink); font: inherit; letter-spacing: inherit; }
/* The motion button is the script's; without it the bar is the name line and the pill. */
.bar .cta { margin-left: auto; }
.js .bar .motion { margin-left: auto; }
.js .bar .cta { margin-left: 0; }
.motion { display: none; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: rgba(251, 250, 246, 0.88); border: 1px solid rgba(20, 21, 27, 0.3); border-radius: 999px; padding: 9px 12px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.js .motion { display: inline-flex; }
.motion .m { margin-left: 0.4em; }
.motion:hover { background: var(--ink); color: var(--paper); }

.name { margin: 7vh 0 0; font-weight: 300; font-size: clamp(52px, 7.6vw, 124px); line-height: 0.92; letter-spacing: -0.05em; text-shadow: 0 0 18px var(--paper), 0 0 6px var(--paper); }
.name b { font-weight: 700; display: block; }

.low { display: grid; grid-template-columns: minmax(0, 30rem) 1fr auto; gap: 20px 40px; align-items: end; }
.head { margin: 0 0 8px; font-weight: 600; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -0.03em; }
.lede { margin: 0; color: var(--soft); max-width: 28rem; }
.head, .low .lede { text-shadow: 0 0 14px var(--paper), 0 0 4px var(--paper); }
.loves-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.loves { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
/* A chip has three looks: resting, hover (a darker edge only), and picked (ink fill and the hot dot). */
.loves button { position: relative; font: 400 12.5px/1 var(--sans); color: var(--ink); background: rgba(251, 250, 246, 0.9); border: 1px solid rgba(20, 21, 27, 0.28); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s; }
.loves button:hover { border-color: var(--ink); }
.loves button:active { transform: scale(0.95); }
.loves button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.loves button[aria-pressed="true"]::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--hot); }
.loves button.pop { animation: pop 0.4s ease; }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(0.92); } 100% { transform: scale(1); } }
.see { margin: 0; }
.see[hidden] { display: none; }
.see a { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; text-shadow: 0 0 10px var(--paper), 0 0 3px var(--paper); }
.see a:hover { color: var(--hot-deep); border-color: var(--hot-deep); }
.portrait { width: 110px; height: 138px; border-radius: 14px; overflow: hidden; background: #f0efe9; box-shadow: 0 0 0 1px rgba(20, 21, 27, 0.12); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

@media (max-width: 1100px) { .low { grid-template-columns: 1fr auto; } .loves-wrap { grid-column: 1 / -1; grid-row: 2; align-items: flex-start; } .loves { justify-content: flex-start; } }
@media (max-width: 760px) {
  .swarm { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: var(--ar, 4 / 3); margin-top: 14px; }
  .name { font-size: 14vw; margin-top: 1vh; }
  .name b { display: inline; }
  .portrait { width: 76px; height: 96px; }
  .bar .eyebrow { display: none; }
  .head { font-size: 21px; }
  .low { margin-top: 22px; } /* a gap under the print even when the hero is taller than the screen */
  .low .lede { font-size: 14px; }
}
@media (max-width: 520px) {
  .motion .m { display: none; }
  .bar { gap: 8px; font-size: 11px; }
  .bar > * { white-space: nowrap; }
  .motion { padding: 8px 10px; }
  .bar .cta { padding: 10px 14px; font-size: 11px; letter-spacing: 0.08em; }
}
@media (pointer: coarse) { .loves button { padding: 11px 16px; } }

/* ---------- Below the hero ---------- */
.hours, .into, .loved { padding-block: clamp(56px, 9vw, 120px) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: clamp(20px, 3vw, 40px); }
.split article { border-top: 1px solid var(--ink); padding-top: clamp(14px, 2vw, 24px); }
/* "By day" and "After hours" speak in the name's two speeds: light, then bold. */
.when { font-size: clamp(46px, 6.6vw, 104px); font-weight: 300; line-height: 0.95; letter-spacing: -0.055em; }
.when b { font-weight: 700; }
/* The subject of each half is the highlight, so it reads larger than the list under it. */
.split .sub { margin: 16px 0 16px; font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.split .lead { margin: 0; max-width: 34rem; }
.split .sub.also { margin: 26px 0 0; font: 500 12px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.done { list-style: none; margin: 22px 0 0; padding: 0; max-width: 34rem; }
.done li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 500; letter-spacing: -0.01em; }
.done li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform: translateY(-2px); }

/* Each interest leads with an ink-dot picture, the same print language as the hero (make-media.py into). */
.into-grid { list-style: none; margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.into-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 14px; }
.into-grid .num { display: block; margin-bottom: 8px; font: 500 12px/1 var(--mono); color: var(--soft); }
.into-grid p { margin: 8px 0 0; color: var(--soft); }

.love-groups { display: grid; gap: clamp(36px, 5vw, 72px); margin-top: clamp(28px, 4vw, 56px); }
.love-group h3 { margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--ink); font: 500 12px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.love-group { scroll-margin-top: 28px; }
.love-group .cap { margin: -4px 0 16px; color: var(--soft); font-size: 14px; }
.love-grid { list-style: none; margin: 0; padding: 0; column-count: 5; column-gap: 12px; }
.love-grid li { break-inside: avoid; margin: 0 0 12px; }
.more { margin-top: 14px; }
.more summary { display: inline-flex; list-style: none; cursor: pointer; padding: 9px 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid rgba(20, 21, 27, 0.3); border-radius: 999px; transition: background 0.25s, color 0.25s; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: var(--ink); color: var(--paper); }
.more[open] .a, .more:not([open]) .b { display: none; }
.more[open] .love-grid { margin-top: 14px; }
.love-grid picture { display: block; }
.love-grid img { display: block; width: 100%; height: auto; border-radius: 6px; background: #ecebe5; }
@media (max-width: 800px) { .love-grid { column-count: 3; } }
@media (max-width: 560px) { .love-grid { column-count: 2; column-gap: 8px; } .love-grid li { margin-bottom: 8px; } }

.contact { margin-top: clamp(64px, 10vw, 140px); padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(44px, 8vw, 120px); line-height: 0.95; }
.contact .lede { margin: 22px 0 32px; max-width: 34rem; font-size: clamp(16px, 1.4vw, 19px); }
.lost { padding-block: clamp(80px, 16vh, 200px); }
.lost h1 { margin: 12px 0 0; font-weight: 600; font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -0.045em; }
.lost .lede { margin: 20px 0 28px; }
.fine { margin: 36px 0 0; color: var(--soft); font-size: 13px; }

@media (max-width: 1000px) { .into-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 520px) {
  .into-grid { grid-template-columns: 1fr; gap: 0; }
  .into-grid li { display: grid; grid-template-columns: 42% 1fr; column-gap: 14px; align-content: start; padding: 14px 0; border-top: 1px solid var(--line); }
  .into-grid img { grid-row: 1 / span 3; align-self: start; margin: 0; }
  .into-grid li > :not(img) { grid-column: 2; }
  .into-grid p { font-size: 15px; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) { .cta, .ghost, .loves button, .motion, .more summary { transition: none; } .loves button.pop, .card[open] { animation: none; } }
