/* =================================================================
   tylerwince.com — SLIPSTREAM
   Lane: motion-first. Constraints: oversized type (hero > 12vw),
   two colors + one accent (paper · ink · voltage lime).
   A fixed scroll-spine rail, scroll-velocity kinetic bands, and
   sections that arrive at speed. Light + dark.
   ================================================================= */

:root {
  --color-bg: #f2f0e8;
  --color-fg: #16150f;
  --color-accent: #c6f135;
  --color-muted: #7c7a6f;
  --color-border: #d8d4c6;
  --on-accent: #16150f;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', monospace;

  --spine-w: 88px;     /* width of the fixed left rail */
  --header-h: 0px;     /* top offset for the banner (mobile turns the rail into a top bar) */

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0e0e10;
    --color-fg: #f0eee6;
    --color-accent: #ccff33;
    --color-muted: #8d8b82;
    --color-border: #28272b;
    --on-accent: #0e0e10;
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-color: var(--color-accent) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: var(--color-accent); color: var(--on-accent); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  border-radius: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 1.5px var(--color-fg);
}

a { color: inherit; }

/* ---------------------------------------------------------------- spine */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 18px;
  background: var(--color-bg);
  border-right: 1.5px solid var(--color-fg);
  z-index: 60;
}

.site-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-fg);
}
.site-title-mark {
  width: 36px;
  height: 36px;
  background: var(--color-fg);
  -webkit-mask: url("/assets/images/monogram.svg") center / contain no-repeat;
  mask: url("/assets/images/monogram.svg") center / contain no-repeat;
  transition: background .25s;
}
.site-title:hover .site-title-mark { background: var(--color-accent); }
.site-title-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.site-nav { flex: 1; display: flex; align-items: center; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav-item { text-align: center; }
.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--color-fg);
}
.nav-index { font-family: var(--font-mono); font-size: 9px; color: var(--color-muted); }
.nav-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .01em;
  text-transform: lowercase;
  padding: 1px 5px;
  transition: background .2s, color .2s;
}
.nav-item a:hover .nav-text {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.nav-item a.active .nav-text { background: var(--color-accent); color: var(--on-accent); }
.nav-item a.active .nav-index { color: var(--color-fg); }

/* scroll-progress lives on the spine's right edge */
.spine-progress {
  position: absolute;
  top: 0;
  right: -1.5px;
  width: 3px;
  height: 100%;
  background: var(--color-border);
}
.spine-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--progress, 0) * 100%);
  background: var(--color-accent);
}

/* ---------------------------------------------------------------- page shell */
.page {
  margin-left: var(--spine-w);
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; }

/* ---------------------------------------------------------------- banner ticker */
.site-banner {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  height: 40px;
  background: var(--color-fg);
  color: var(--color-bg);
  overflow: hidden;
  border-bottom: 1.5px solid var(--color-fg);
}
.banner-text {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  font-family: var(--font-mono);
  font-size: 11px;
}
.banner-no {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--color-accent);
  color: var(--on-accent);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.banner-name {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-bg);
  white-space: nowrap;
}
.banner-ticker {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.banner-note {
  display: inline-block;
  white-space: nowrap;
  color: var(--color-bg);
  opacity: .72;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: slip-ticker 30s linear infinite;
}
.banner-link {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: var(--color-bg);
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  border-left: 1.5px solid var(--color-fg);
}
.banner-link:hover { background: var(--color-accent); color: var(--on-accent); }

@keyframes slip-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- content frame */
.content-area {
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 72px) clamp(60px, 8vw, 110px);
}

/* =================================================================
   HOME
   ================================================================= */
.home { display: block; }

/* ---- hero ---- */
.hero { padding: clamp(18px, 5vw, 56px) 0 clamp(24px, 4vw, 44px); }
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 4px 11px;
  background: var(--color-accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 13vw, 11rem);
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.hero-word { display: inline-block; margin-right: .26em; }
.hero-word:nth-child(3n) {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--color-fg);
}
.hero-rule {
  display: block;
  height: 11px;
  width: clamp(180px, 30vw, 340px);
  margin-top: clamp(20px, 3vw, 34px);
  background: var(--color-accent);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hero-meta span { position: relative; padding-left: 16px; }
.hero-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: translateY(-50%);
}

/* ---- scroll-velocity marquee band (signature) ---- */
.slip-marquee {
  margin: clamp(40px, 6vw, 72px) 0;
  border-top: 1.5px solid var(--color-fg);
  border-bottom: 1.5px solid var(--color-fg);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.slip-marquee-track { display: inline-flex; white-space: nowrap; will-change: transform; }
.slip-marquee-track span {
  display: inline-block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--color-fg);
}
.slip-marquee-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-fg);
}

/* ---- section header ---- */
.home-section { margin: 0 0 clamp(56px, 9vw, 104px); }
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--color-fg);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--on-accent);
  padding: 3px 9px;
}
.section-title {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}
.view-all {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-fg);
  white-space: nowrap;
}
.view-all:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* ---- apps: staggered slats on a rail ---- */
.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  align-items: stretch;
}
.slip-slat { flex: 1 1 0; min-width: 0; }
.slip-slat:nth-child(odd) { transform: translateY(20px); }
.slip-slat:nth-child(3n) { transform: translateY(38px); }
.app-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  height: 100%;
  padding: 16px 6px 14px;
  border-top: 4px solid var(--color-fg);
  text-decoration: none;
  color: var(--color-fg);
  transition: border-color .3s, transform .3s;
}
.app-card:hover { border-top-color: var(--color-accent); transform: translateY(-6px); }
.slat-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--color-muted);
}
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  object-fit: cover;
  border: 1.5px solid var(--color-fg);
}
.app-icon--glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  background: var(--color-accent);
  color: var(--on-accent);
}
.app-info { display: flex; flex-direction: column; gap: 5px; }
.app-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1;
  text-transform: uppercase;
}
.app-desc { font-size: 14px; color: var(--color-muted); line-height: 1.4; }
.slat-go { font-size: 20px; color: var(--color-fg); transition: transform .3s, color .3s; align-self: start; }
.app-card:hover .slat-go { color: var(--color-accent); transform: translate(4px, -4px); }

/* ---- writing: timeline rows ---- */
.post-list { max-width: 960px; }
.post-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 10px;
  border-bottom: 1.5px solid var(--color-border);
  text-decoration: none;
  color: var(--color-fg);
}
.post-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: color-mix(in srgb, var(--color-accent) 26%, transparent);
  z-index: -1;
  transition: width .35s cubic-bezier(.2, .7, .2, 1);
}
.post-row:hover .post-rail { width: 100%; }
.post-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--color-muted);
}
.post-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
}
.post-row:hover .post-num { -webkit-text-stroke-color: var(--color-fg); }
.post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ---- reading: auto-scroll cover reel ---- */
.reel {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 14px;
}
.book-grid {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: flex;
  gap: 20px;
  width: max-content;
}
.reel-item { flex: none; width: 150px; }
.book-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-fg);
}
.book-card-cover {
  display: block;
  width: 150px;
  height: 225px;
  object-fit: cover;
  background: var(--color-border);
  border: 1.5px solid var(--color-fg);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.book-card-cover--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.2rem;
  background: var(--color-fg);
  color: var(--color-bg);
}
.book-card:hover .book-card-cover { transform: translateY(-7px) rotate(-1.6deg); }
.book-card-plate { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px 0; }
.book-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card-author { font-family: var(--font-mono); font-size: 10px; color: var(--color-muted); }
.book-card-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 3px;
}

/* ---------------------------------------------------------------- reveal-on-scroll */
.slip-motion [data-reveal] {
  opacity: 0;
  transform: translateX(46px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.slip-motion [data-reveal].is-in { opacity: 1; transform: none; }
.slip-motion .hero[data-reveal] { transform: none; }            /* hero fades; words carry the motion */
.slip-motion .hero .hero-word { opacity: 0; }
.slip-motion .hero.is-in .hero-word {
  animation: slip-word .6s both;
  animation-delay: calc(var(--i) * 0.05s);
}
.slip-motion .hero[data-reveal] .hero-rule { width: 0; transition: width .8s .35s cubic-bezier(.2, .7, .2, 1); }
.slip-motion .hero.is-in .hero-rule { width: clamp(180px, 30vw, 340px); }
@keyframes slip-word {
  from { opacity: 0; transform: translateY(.5em) skewX(-7deg); }
  to   { opacity: 1; transform: none; }
}

/* =================================================================
   ARTICLES (post / book / page / app layouts)
   ================================================================= */
.article { max-width: 760px; margin: 0 auto; }
.article--ticket { position: relative; }
.article-header { margin-bottom: 34px; }
.ticket-rip {
  display: block;
  height: 9px;
  width: 130px;
  margin-bottom: 22px;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 11px, transparent 11px 19px);
}
.article-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--color-fg);
  color: var(--color-bg);
}
.article-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6.5vw, 4.6rem);
  line-height: .94;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.article-description {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-muted);
  line-height: 1.45;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.meta-item { position: relative; padding-left: 15px; }
.meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
}
.meta-item a { color: var(--color-fg); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 2px; }

.article-body { font-size: 1.08rem; line-height: 1.72; }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  margin-top: 1.8em;
}
.article-body h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.article-body h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
/* prose links only — NOT structural component anchors (post rows, book lines,
   showcase cards, archive cards) that also live inside .article-body */
.article-body :is(p, li, blockquote, h2, h3, h4, td, .page-footer-note) a {
  color: var(--color-fg);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.article-body :is(p, li, blockquote, h2, h3, h4, td, .page-footer-note) a:hover { background: var(--color-accent); color: var(--on-accent); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-top: .4em; }
.article-body img { border: 1.5px solid var(--color-fg); margin: 1.4em 0; }

.pull-quote {
  position: relative;
  margin: 36px 0;
  padding: 6px 0 6px 26px;
  border-left: 5px solid var(--color-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.12;
  text-transform: uppercase;
}
.pull-quote-mark { color: var(--color-accent); margin-right: .1em; }

/* ---------------------------------------------------------------- content elements */
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: color-mix(in srgb, var(--color-fg) 9%, var(--color-bg));
  padding: 1px 5px;
}
pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  background: color-mix(in srgb, var(--color-fg) 7%, var(--color-bg));
  border-left: 4px solid var(--color-accent);
  padding: 18px 20px;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }
blockquote {
  margin: 26px 0;
  padding: 6px 0 6px 20px;
  border-left: 4px solid var(--color-accent);
  color: var(--color-muted);
  font-style: italic;
}
hr {
  border: none;
  height: 3px;
  margin: 42px 0;
  background: repeating-linear-gradient(90deg, var(--color-fg) 0 12px, transparent 12px 22px);
}

/* =================================================================
   WRITING INDEX (writing.md)
   ================================================================= */
.post-index { max-width: 900px; margin: 0 auto; border-top: 3px solid var(--color-fg); }
.post-index-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.post-index-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1.5px solid var(--color-border);
  text-decoration: none;
  color: var(--color-fg);
  transition: background .25s;
}
.post-index-row:hover { background: color-mix(in srgb, var(--color-accent) 20%, transparent); }
.post-index-date { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.post-index-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
}
.post-index-desc { display: block; margin-top: 8px; color: var(--color-muted); max-width: 62ch; }
.post-index-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.post-index-topic {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
}

/* =================================================================
   READING (reading.md + book_item.html)
   ================================================================= */
.reading-stats {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 36px;
  border-top: 1.5px solid var(--color-fg);
  border-bottom: 1.5px solid var(--color-fg);
}
.stat-item {
  flex: 1 1 140px;
  padding: 20px 16px;
  border-right: 1px solid var(--color-border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.sort-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-muted);
}
.sort-link {
  text-decoration: none;
  color: var(--color-fg);
  padding: 3px 8px;
  border: 1px solid var(--color-border);
}
.sort-link:hover { border-color: var(--color-fg); }
.sort-link.active { background: var(--color-accent); color: var(--on-accent); border-color: var(--color-accent); }

.year-section { margin-bottom: 40px; }
.year-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--color-fg);
  margin: 0 0 12px;
}
.book-list { display: flex; flex-direction: column; }

.book-line {
  display: grid;
  grid-template-columns: 8px 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-fg);
  transition: background .2s, transform .2s;
}
.book-line:hover { background: color-mix(in srgb, var(--color-accent) 16%, transparent); transform: translateX(4px); }
.book-line-flag { width: 8px; height: 8px; background: transparent; }
.book-line[data-rating="5"] .book-line-flag { background: var(--color-accent); }
.book-line[data-rating="4"] .book-line-flag { background: var(--color-muted); }
.book-line-cover {
  width: 42px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-border);
  border: 1px solid var(--color-fg);
  display: block;
}
.book-line-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-line-main { min-width: 0; }
.book-line-title { display: block; font-weight: 600; line-height: 1.2; }
.book-line-author { display: block; font-size: .85em; color: var(--color-muted); }
.book-line-rating {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

/* =================================================================
   APPS PAGE (apps.md)
   ================================================================= */
.app-showcase { display: flex; flex-direction: column; border-top: 1.5px solid var(--color-fg); }
.app-showcase-card {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 8px;
  border-bottom: 1.5px solid var(--color-fg);
  text-decoration: none;
  color: var(--color-fg);
  overflow: hidden;
}
.app-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-101%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  z-index: 0;
}
.app-showcase-card:hover::before { transform: translateX(0); }
.app-showcase-card > * { position: relative; z-index: 1; }
.app-showcase-card:hover { color: var(--on-accent); }
.app-showcase-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}
.app-showcase-detail {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.app-showcase-card:hover .app-showcase-detail { color: var(--on-accent); }

.philosophy-section { margin-top: 64px; }
.philosophy-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.philosophy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.philosophy-item { background: var(--color-bg); padding: 22px 20px; }
.philosophy-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.philosophy-desc { color: var(--color-muted); font-size: .96em; }

/* ---- app layout features (inside app content) ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 26px 0; }
.feature { padding: 18px; border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
.stack-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-fg);
  transition: border-color .25s, background .25s;
}
.stack-card:hover { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 14%, transparent); }
.stack-card-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.stack-card-count { font-family: var(--font-mono); font-size: 11px; color: var(--color-muted); margin-top: 4px; }

/* =================================================================
   NOW (now.md)
   ================================================================= */
.currently-reading { display: flex; flex-direction: column; border-top: 1.5px solid var(--color-fg); margin: 18px 0; }
.reading-card {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-border);
}
.reading-card-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; line-height: 1; }
.reading-card-author { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.page-footer-note {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
}

/* =================================================================
   ARCHIVE (archive.md)
   ================================================================= */
.archive-today {
  position: relative;
  border: 1.5px solid var(--color-fg);
  padding: clamp(20px, 4vw, 40px);
  margin-bottom: 38px;
}
.archive-today-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); }
.archive-today-theme {
  display: block;
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  line-height: .92;
  text-transform: uppercase;
}
.archive-today-manifesto { margin: 0; max-width: 62ch; color: var(--color-fg); }
.archive-today-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.archive-meta-item { border: 1px solid var(--color-border); padding: 3px 9px; }
.archive-palette { display: inline-flex; }
.archive-palette i { width: 22px; height: 22px; display: block; }

.archive-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.archive-count { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }
.archive-surprise {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--color-fg);
  color: var(--color-bg);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.archive-surprise:hover { background: var(--color-accent); color: var(--on-accent); }

.archive-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.archive-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-fg);
  border: 1.5px solid var(--color-fg);
  background: var(--color-bg);
  transition: transform .25s, box-shadow .25s;
}
.archive-card:hover { transform: translateY(-4px); box-shadow: 7px 7px 0 var(--color-accent); }
.archive-card--lost { opacity: .58; }
.archive-thumb {
  display: block;
  aspect-ratio: 1200 / 800;
  overflow: hidden;
  background: var(--color-border);
  border-bottom: 1.5px solid var(--color-fg);
}
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}
.archive-card-info { padding: 14px 16px 18px; }
.archive-date { font-family: var(--font-mono); font-size: 11px; color: var(--color-muted); }
.archive-theme {
  display: block;
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
}
.archive-desc { display: block; font-size: .9em; color: var(--color-muted); }
.archive-card .archive-palette { margin-top: 12px; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { border-top: 1.5px solid var(--color-fg); margin-top: 80px; }
.footer-marquee { overflow: hidden; background: var(--color-fg); border-bottom: 1.5px solid var(--color-fg); }
.footer-marquee-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: slip-foot 32s linear infinite; }
.footer-marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--color-bg);
  padding: 11px 0;
}
@keyframes slip-foot { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  padding: 38px clamp(20px, 5vw, 60px) 52px;
}
.footer-col-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 12px; }
.footer-col a { display: block; padding: 3px 0; color: var(--color-fg); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.footer-col--studio { max-width: 42ch; }
.footer-monogram {
  width: 30px;
  height: 30px;
  background: var(--color-fg);
  -webkit-mask: url("/assets/images/monogram.svg") center / contain no-repeat;
  mask: url("/assets/images/monogram.svg") center / contain no-repeat;
  margin-bottom: 12px;
}
.footer-note { color: var(--color-muted); font-size: .9em; line-height: 1.5; margin: 4px 0 0; }
.social-list { list-style: none; margin: 0; padding: 0; }
.social-list a { display: block; padding: 3px 0; }

/* =================================================================
   404 (404.html)
   ================================================================= */
.error-page { max-width: 680px; margin: 0 auto; padding: clamp(40px, 9vw, 96px) 0; text-align: center; }
.error-code {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 28vw, 16rem);
  line-height: .82;
  text-transform: uppercase;
  color: var(--color-fg);
  text-shadow: 8px 8px 0 var(--color-accent);
}
.error-page h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; margin: 20px 0 8px; }
.error-message { font-family: var(--font-mono); font-size: 13px; color: var(--color-muted); }
.error-page a {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-fg);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* =================================================================
   RESPONSIVE — spine collapses to a top bar
   ================================================================= */
@media (max-width: 820px) {
  :root { --spine-w: 0px; --header-h: 52px; }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--header-h);
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    border-right: none;
    border-bottom: 1.5px solid var(--color-fg);
  }
  .site-title { flex-direction: row; gap: 9px; }
  .site-title-mark { width: 26px; height: 26px; }
  .site-title-text { writing-mode: horizontal-tb; transform: none; font-size: 9px; }

  .site-nav { flex: 1; overflow-x: auto; justify-content: flex-end; -webkit-overflow-scrolling: touch; }
  .nav-list { flex-direction: row; gap: 16px; align-items: center; padding-right: 2px; }
  .nav-item a { flex-direction: row; gap: 5px; align-items: baseline; }

  .spine-progress { top: auto; bottom: -1.5px; right: 0; left: 0; width: 100%; height: 3px; }
  .spine-progress-bar { top: 0; height: 100%; width: calc(var(--progress, 0) * 100%); }

  .app-list { flex-direction: column; gap: 0; }
  .slip-slat, .slip-slat:nth-child(odd), .slip-slat:nth-child(3n) { transform: none; }
  .app-card {
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 16px;
    padding: 18px 4px;
    border-top: 3px solid var(--color-fg);
  }
  .slat-index { font-size: 1.6rem; }
  .slat-go { align-self: center; }

  .post-index-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .banner-name { font-size: 13px; }
  .reel-item, .book-card-cover { width: 124px; }
  .book-card-cover { height: 186px; }
}

/* =================================================================
   REDUCED MOTION — quiet, fully revealed, no marquees
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  .banner-note,
  .footer-marquee-track { animation: none !important; }
  .slip-marquee-track,
  .footer-marquee-track { transform: none !important; }
  * { scroll-behavior: auto !important; }
}
