/* SN Pro is a variable font: one file covers weights 400–700 */
@font-face {
  font-family: 'SN Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/sn-pro-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'SN Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/sn-pro-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'SN Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/sn-pro-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Doto';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/doto-latin.woff2') format('woff2');
}

:root {
  --paper: #FBF9F4;
  --ink: #2A2622;
  --muted: #6F6860;
  --rule: #E8E3DA;
  --red: #B83A2B;
  --orange: #B05524;
  --moss: #5E6B2C;
  --yellow: #E8C547;
  --highlight: #F6E39A;
  --pad-x: clamp(56px, 9vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'SN Pro', ui-rounded, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--highlight); }
p { margin: 0; }
b { font-weight: 600; }

.page { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.wrap {
  flex: 1;
  width: 100%;
  max-width: calc(848px + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 88px var(--pad-x) 96px;
}

/* ---------- layout ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 80px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 44px; min-width: 0; }

.name { display: flex; align-items: center; gap: 10px; margin: 0; font: inherit; font-weight: 650; }
.dots { display: grid; grid-template-columns: repeat(2, 5px); gap: 2px; }
.dots span, .pill__dots span { width: 5px; height: 5px; border-radius: 50%; }

.bio { display: flex; flex-direction: column; gap: 24px; text-wrap: pretty; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.hl { background-image: linear-gradient(transparent 56%, var(--highlight) 56%); padding: 0 2px; }

/* ---------- links ---------- */
.lk {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(42, 38, 34, .25);
  transition: color .15s, text-decoration-color .15s;
}
.lk:hover { color: var(--hc); text-decoration-color: var(--hc); }

/* ---------- expandable pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; margin: 0 0 0 2px;
  vertical-align: 2px;
  border: 1px solid var(--pc); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: background-color .15s;
}
.pill[aria-expanded="true"] { background: var(--tint); }
.pill:focus-visible { outline: 2px solid var(--pc); outline-offset: 2px; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; }
.pill__dots { display: inline-flex; gap: 2px; }
.pill__sign { font-weight: 500; }

.panel {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px; line-height: 1.5;
}
.panel--tight { gap: 7px; }
.panel[hidden], .swatches[hidden] { display: none; }
.row { display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: 0 20px; }
.row--wide { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); }
.books { display: flex; flex-direction: column; gap: 6px; }
.cv { display: flex; gap: 8px; align-items: baseline; padding-top: 4px; }
.eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); padding-top: 10px;
}

/* ---------- swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.swatch {
  display: flex; flex-direction: column;
  background: #fff; padding: 6px 6px 10px; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(42, 38, 34, .08), 0 0 0 1px rgba(42, 38, 34, .06);
  transition: transform .25s;
}
.swatch:hover { transform: translateY(-3px) rotate(var(--tilt)); }
.swatch__chip { height: 96px; border-radius: 1px; }
.swatch__label { display: flex; flex-direction: column; padding: 9px 3px 0; line-height: 1.3; }
.swatch__label b { font-size: 13px; font-weight: 700; }
.swatch__label span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .03em; }

/* ---------- socials ---------- */
.socials {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
}
.socials a { color: var(--ink); text-decoration: none; transition: color .15s, background-color .15s; }
.socials a:hover { color: var(--hc); }
.socials .socials__gh { padding: 0 2px; margin: 0 -2px; }
.socials .socials__gh:hover { color: var(--ink); background: var(--highlight); }
.slash { color: #CFC8BD; }

/* ---------- film strips ---------- */
.frame { flex: none; border-radius: 2px; overflow: hidden; background: #3a3530; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sprockets { background-image: radial-gradient(circle, rgba(251, 249, 244, .82) 0 2.6px, transparent 3.2px); }
.sprockets--v { background-size: 10px 17px; background-repeat: repeat-y; background-position: center top; }
.sprockets--h { height: 10px; background-size: 17px 10px; background-repeat: repeat-x; background-position: left center; }

/* desktop: vertical strip beside the bio */
.film-col { position: relative; align-self: stretch; min-height: 600px; }
.film-v {
  position: absolute; top: -170px; bottom: -170px; left: 0; width: 196px;
  display: grid; grid-template-columns: 10px minmax(0, 1fr) 10px; gap: 6px;
  padding: 0 6px; overflow: hidden;
  background: var(--ink); border-radius: 6px;
  box-shadow: 0 18px 40px rgba(42, 38, 34, .18), 0 2px 6px rgba(42, 38, 34, .12);
  transform: rotate(2.5deg);
}
.film-v__track { display: flex; flex-direction: column; gap: 10px; will-change: transform; }

/* mobile: horizontal strip above the name */
.film-h { display: none; }

/* ---------- LED city banner ---------- */
@keyframes led-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.led {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  width: 100%; height: 72px; overflow: hidden;
  background: #211D1A;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .55);
  font-family: 'Doto', ui-monospace, Menlo, monospace;
  font-size: 30px; font-weight: 900; letter-spacing: .14em; line-height: 1;
}
.led__track { display: inline-flex; white-space: nowrap; animation: led-scroll 36s linear infinite; will-change: transform; }
.led__item { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; color: var(--c); text-shadow: 0 0 10px color-mix(in srgb, var(--c) 67%, transparent); }
.led__sep { color: #5A534C; text-shadow: none; }
.led__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, transparent 1.1px, rgba(33, 29, 26, .6) 1.7px);
  background-size: 4px 4px;
}

/* ---------- mobile (design 2b) ---------- */
@media (max-width: 820px) {
  body { font-size: 16.5px; line-height: 1.6; }
  .wrap { padding: 48px 24px 56px; }
  .grid { display: block; }
  .col { gap: 36px; }
  .film-col { display: none; }
  .pill { height: 30px; padding: 0 12px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .film-h { display: block; margin: -30px -24px -8px; padding: 14px 0; }
  .film-h__strip {
    display: flex; flex-direction: column; gap: 6px;
    margin: 0 -24px; padding: 6px 0;
    background: var(--ink);
    transform: rotate(-2deg);
    box-shadow: 0 14px 30px rgba(42, 38, 34, .18), 0 2px 6px rgba(42, 38, 34, .12);
  }
  .film-h__track {
    display: flex; gap: 10px; height: 124px; padding: 0 40px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .film-h__track::-webkit-scrollbar { display: none; }
  .film-h__track .frame { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .led__track { animation: none; }
  .swatch, .pill, .lk { transition: none; }
}
