/* Spare Room–style tokens adapted for jasonthenerd.com scaffold */
/* Design tokens + .site-header live in ../shared/site-chrome.css */
@import "../shared/site-chrome.css?v=20261009b";

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip {
  position: absolute;
  top: 1rem; left: 1rem; z-index: 50;
  background: var(--surface);
  border: var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
}

/* Shared bits */
.tape-label {
  display: inline-block;
  background: var(--tape);
  color: var(--fg);
  box-shadow: var(--tape-shadow);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  transform: rotate(-1deg);
}
.pop {
  border: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.pop-clip {
  background: var(--surface);
  border-radius: calc(var(--radius) - 3px);
  overflow: hidden;
}
.chunky {
  box-shadow: var(--shadow-sm);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: var(--border);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:active { transform: scale(0.96); }
.btn-paper {
  background: var(--paper);
  color: var(--on-paper);
}
.btn-surface {
  background: var(--surface);
  color: var(--fg);
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.display { font-family: var(--font-display); }

.section {
  scroll-margin-top: 5rem;
  border-top: var(--border);
}
.section-pad { padding-block: 3rem; }
.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.25rem);
  line-height: 1;
  font-weight: 700;
}

/* Hero */
.hero { padding-block: 2rem; }
.hero-banner {
  margin-bottom: 2rem;
}
.hero-banner img,
.hero-banner .cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 640px) {
  .hero-banner img,
  .hero-banner .cover { aspect-ratio: 2 / 1; }
}
.hero-banner .pop { position: relative; }
.hero-banner .tape-float {
  position: absolute;
  top: 1rem; left: 1rem;
  transform: rotate(-2deg);
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); }
  .hero-copy { grid-column: span 7; }
  .hero-feature { grid-column: span 5; }
}

.hero-copy h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  line-height: 1;
  font-weight: 700;
}
.hero-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.feature-card { text-align: left; width: 100%; padding: 0; cursor: pointer; font: inherit; color: inherit; background: transparent; }
.feature-card img,
.feature-card .cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}
.feature-body h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
}
.feature-body p { margin: 0; color: var(--muted); }

/* The pile */
.pile-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .pile-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.pile-head p { margin: 0.5rem 0 0; color: var(--muted); }
.search-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .search-label { max-width: 20rem; }
}
.search-label input,
.letter-form input {
  height: 2.75rem;
  border-radius: 999px;
  border: var(--border);
  background: var(--surface);
  padding: 0 0.75rem;
  font: inherit;
  font-weight: 700;
  color: var(--fg);
}
.search-label input::placeholder,
.letter-form input::placeholder { color: var(--faint); font-weight: 500; }

.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
}
.filter-btn {
  flex-shrink: 0;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: var(--border);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.filter-btn:active { transform: scale(0.96); }
.filter-btn[aria-pressed="true"] {
  background: var(--tape);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.filter-btn .count {
  margin-left: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.pile-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .pile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pile-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card .pop-clip {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.card-link:active { transform: scale(0.96); }
.card-link:hover { text-decoration: none; }
.card-link img,
.card-link .cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  flex: 1;
}
.card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.375;
  font-weight: 700;
}
.card-body p { margin: 0; color: var(--muted); }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1rem;
}
.card-foot .read { font-size: 0.875rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.save-btn {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  color: var(--fg);
  cursor: pointer;
}
.save-btn[aria-pressed="true"] svg { fill: var(--fg); }

.card[hidden],
.card.is-hidden { display: none; }

.empty-pile {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* This week */
.week-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .week-grid { grid-template-columns: repeat(12, 1fr); }
  .week-intro { grid-column: span 4; }
  .week-items { grid-column: span 8; }
}
.week-intro p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.625;
}
.week-items {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .week-items { grid-template-columns: repeat(2, 1fr); }
}
.week-item {
  padding: 1.25rem;
}
.week-item dt { margin: 0; }
.week-item dd {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.375;
  font-weight: 700;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); }
  .about-grid .about-img { grid-column: span 5; }
  .about-grid .about-copy { grid-column: span 7; }
}
.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-copy h2 { margin: 0 0 1rem; }
.about-copy p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.625;
}
.about-copy .sign {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Letter */
.letter-section { background: var(--raised); }
.letter-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .letter-grid { grid-template-columns: repeat(12, 1fr); }
  .letter-copy { grid-column: span 5; }
  .letter-form-wrap { grid-column: span 7; }
}
.letter-copy p {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted);
}
.letter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.letter-fields {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .letter-fields { grid-template-columns: repeat(2, 1fr); }
}
.letter-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.letter-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--faint);
}
.letter-form .ok {
  margin: 0;
  font-weight: 700;
  color: var(--fg);
}

/* Footer */
.site-footer {
  border-top: var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 2rem;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.footer-note { margin: 0; font-size: 0.875rem; color: var(--faint); }
.footer-note p { margin: 0 0 0.5rem; }
.footer-note p:last-child { margin: 0; }

/* Post page */
.post-page { padding-block: 2rem; max-width: 42rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.post-header h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}
.prose {
  margin-top: 1.5rem;
  font-size: 1.08rem;
  line-height: 1.7;
}
.prose p { margin: 0 0 1.1rem; }
.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
}
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: var(--raised);
  border-radius: 4px;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: var(--border);
  box-shadow: var(--shadow-sm);
}
.prose-figure {
  margin: 1.35rem 0;
}
.prose-figure img {
  width: 100%;
  display: block;
}
.prose p img {
  display: inline-block;
  vertical-align: middle;
  margin: 0.35rem 0;
}


/* Blog post image lightbox (separate from the gallery lightbox). */
.blog-lightbox-trigger {
  cursor: zoom-in;
}
.blog-lightbox-trigger:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}
body.is-blog-lightbox-open { overflow: hidden; }
.blog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgb(42 33 24 / 88%);
  cursor: zoom-out;
  overscroll-behavior: contain;
}
.blog-lightbox[hidden] { display: none; }
.blog-lightbox-image {
  display: block;
  max-width: min(94vw, 90rem);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: var(--border);
  border-color: var(--surface);
  border-radius: 0.75rem;
  box-shadow: 6px 6px 0 0 rgb(0 0 0 / 45%);
  cursor: zoom-out;
}
.blog-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  font: 700 1.7rem/1 var(--font-sans);
  cursor: pointer;
}
.blog-lightbox-close:hover { background: var(--tape); }
.blog-lightbox-close:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

/* —— Blog admin affordances (visible only when body.is-blog-admin) —— */
.blog-admin-shortcut,
.blog-admin-bar {
  display: none;
  margin: 0 0 1rem;
}
body.is-blog-admin .blog-admin-shortcut,
body.is-blog-admin .blog-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.55rem;
}
.blog-admin-pill,
.blog-admin-shortcut a,
.blog-admin-bar a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: static;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--tape, #f4d35e);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  margin: 0;
  white-space: nowrap;
}
.blog-admin-pill:hover,
.blog-admin-shortcut a:hover,
.blog-admin-bar a:hover {
  transform: translateY(-1px);
}
.card-admin {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.5rem 1.25rem;
  margin: 0;
}
body.is-blog-admin .card-admin {
  display: flex;
}
.card-admin a,
.card-admin button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.3rem 0.75rem;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.card-admin a { background: var(--tape, #f4d35e); }
.card-admin button { background: #3a0a10; color: #ffb3b6; }
.card-admin a:hover,
.card-admin a:focus-visible,
.card-admin button:hover,
.card-admin button:focus-visible {
  transform: translateY(-1px);
}
.card-admin a:hover,
.card-admin a:focus-visible { background: var(--red2); }
.card-admin button:hover,
.card-admin button:focus-visible { background: #5a0f17; }
.card-admin button:disabled {
  cursor: wait;
  opacity: 0.65;
}


/* ==========================================================================
   Red theme (2026-10-09) — matches /test-home/: dark crimson, Montserrat,
   pill buttons, sticky blurred topbar, scrollable vertical feed.
   ========================================================================== */
body { font-family: var(--font-sans); color: var(--fg); line-height: 1.55; }
a:hover { color: #fff; }
h1, h2, h3, .section-title, .card-body h3, .feature-body h2, .footer-brand { font-family: var(--font-sans); }
.section-title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.tape-label {
  background: transparent;
  box-shadow: none;
  transform: none;
  padding: 0;
  border-radius: 0;
  color: #ff6b70;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tape-label time { color: var(--mute); font-weight: 600; }
.pop { border: 2px solid var(--red); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,60,60,.08) inset; background: linear-gradient(180deg,#1d070b,#120407); }
.pop-clip { background: transparent; border-radius: 6px; }
.chunky { box-shadow: 0 4px 14px rgba(200, 20, 30, 0.35); }
.btn {
  height: auto;
  padding: 11px 20px;
  border: 0;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn-paper { background: linear-gradient(180deg, var(--red2), #9c0d15); color: #fff; box-shadow: 0 4px 14px rgba(200, 20, 30, 0.35); }
.btn-surface { background: transparent; color: #fff; border: 1.5px solid var(--red2); box-shadow: none; }
.section { border-top: 2px solid var(--line); }
.skip { background: var(--red); color: #fff; border: 0; }
.danger, button.danger { background: #3a0a10 !important; color: #ffb3b6 !important; border-color: var(--red) !important; }
input, select, textarea { color-scheme: dark; }
.search-label input, .letter-form input { border: 1.5px solid var(--line); background: #12050a; font-weight: 600; }
.search-label input:focus { outline: 2px solid var(--red2); outline-offset: 1px; }

/* Blog admin pills */
.blog-admin-pill, .blog-admin-shortcut a, .blog-admin-bar a {
  background: linear-gradient(180deg, var(--red2), #9c0d15);
  color: #fff;
  border: 0;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(200, 20, 30, 0.35);
}
.card-admin a { background: var(--red); color: #fff; border: 0; }
.card-admin button { border: 1px solid var(--red); }

/* Film Finder: keep the Kevin Bacon tile readable (bacon art stays on Bacon results only) */
.lookup-bacon.is-bacon-tile h2,
.lookup-bacon.is-bacon-tile .lookup-bacon-note { color: #2a2118; }

/* Footer */
.site-footer { border-top: 2px solid var(--line); }
.footer-brand { color: var(--red2); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; }
.th-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.th-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #2a080c, #4a0b12);
  border-radius: 999px; padding: 5px 14px 5px 5px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; color: var(--ink);
}
.th-chip:hover { text-decoration: none; filter: brightness(1.15); }
.th-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 13px; color: #fff; }

/* Post pages */
.post-page { max-width: 46rem; padding-block: 1.5rem 3rem; }
.back-link { color: var(--mute); text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.back-link:hover { color: #fff; text-decoration: none; }
.post-header h1 { font-weight: 800; line-height: 1.1; font-size: clamp(1.8rem, 6vw, 2.6rem); }
.post-page .pop { border-radius: 8px; }
.prose { color: #e3d2d3; }
.prose a { color: #ff7a80; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose h2, .prose h3 { color: var(--ink); font-weight: 800; }
.prose img { border: 2px solid var(--red); border-radius: 6px; }
.prose blockquote { margin: 1.2rem 0; padding: 0.4rem 1rem; border-left: 3px solid var(--red); color: var(--mute); }
.prose code { background: #2a070b; color: #ffd0d2; }

/* ---------- Homepage (body.home-red) ---------- */
.home-red main { display: block; }
.th-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  border-bottom: 2px solid var(--line);
}
.th-hero .th-hero-bg, .th-hero .th-hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; max-width: none;
}
.th-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,3,6,.25) 0%, rgba(11,3,6,.5) 45%, rgba(11,3,6,.94) 100%),
    linear-gradient(90deg, rgba(58,7,12,.55), rgba(11,3,6,0) 70%);
}
.th-hero .hero-copy { position: relative; z-index: 1; padding: 28px 18px 30px; max-width: 680px; }
.th-hero .tape-label { color: #e7c6c8; font-size: 12px; margin: 0 0 6px; display: block; }
.th-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 8vw, 56px); line-height: 1.05; font-weight: 800; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.th-hero .hero-lead { margin: 0 0 18px; font-size: 15px; color: #ead9da; max-width: 52ch; }
.th-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

.th-tabs.filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 16px 18px 10px; margin: 0;
  scrollbar-width: none;
}
.th-tabs.filters::-webkit-scrollbar { display: none; }
.th-tabs .filter-btn {
  flex: none; height: auto; background: none; border: 0; box-shadow: none; color: var(--ink);
  font: 600 13px var(--font-sans); text-transform: uppercase; letter-spacing: 0.03em;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.th-tabs .filter-btn:hover { background: rgba(200, 20, 30, 0.18); }
.th-tabs .filter-btn[aria-pressed="true"] { background: var(--red); color: #fff; font-weight: 700; box-shadow: 0 3px 12px rgba(200, 20, 30, 0.4); }
.th-tabs .filter-btn .count { margin-left: 6px; font-size: 11px; opacity: .75; }
.th-rule { border: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--line) 8%, var(--red) 50%, var(--line) 92%, transparent); margin: 6px 18px 18px; border-radius: 2px; }

.th-layout { display: grid; gap: 26px; padding: 0 18px 30px; max-width: 1180px; margin: 0 auto; }
.th-sec-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.th-sec-head h2, .th-sec-head .section-title { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.3; }
.th-marker { display: inline-block; width: 28px; height: 14px; border-radius: 999px; background: var(--red); flex: none; }
.th-feed-wrap { scroll-margin-top: 5rem; min-width: 0; }
.th-feed-head { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; }
.th-feed-head .th-sec-head { margin: 0; align-items: flex-start; }
.th-feed-head .th-sec-head .th-marker { margin-top: 3px; }
.th-feed-head p { margin: 4px 0 0; color: var(--mute); font-size: 13px; }
.th-feed-head .search-label { max-width: none; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--mute); }
.th-feed-head .search-label input { text-transform: none; letter-spacing: 0; height: 2.6rem; }

.pile-grid.th-feed {
  display: flex; flex-direction: column; gap: 16px;
  grid-template-columns: none;
  max-height: 78vh; overflow-y: auto;
  padding: 4px 8px 24px 2px;
  scroll-snap-type: y proximity; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--red) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent); mask-image: linear-gradient(180deg, #000 92%, transparent);
}
.th-feed::-webkit-scrollbar { width: 6px; }
.th-feed::-webkit-scrollbar-thumb { background: var(--red); border-radius: 6px; }
.th-feed .card { flex: none; height: auto; scroll-snap-align: start; transition: transform .2s; }
.th-feed .card:hover { transform: translateY(-2px); }
.th-feed .card[hidden], .th-feed .card.is-hidden { display: none; }
.th-feed .card-link:active { transform: none; }
.th-feed .card-link .cover { aspect-ratio: 16 / 9; border-bottom: 2px solid var(--line); }
.th-feed .card-body { gap: 6px; padding: 14px 16px 6px; }
.th-feed .card-body h3 { font-size: 19px; line-height: 1.2; font-weight: 800; margin: 2px 0 2px; }
.th-feed .card-body p:not(.tape-label) { color: #dccbcc; font-size: 14px; }
.th-feed .card-foot { padding: 4px 16px 12px; }
.th-feed .card-foot .read { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.th-feed .save-btn { color: var(--red2); }
.th-feed .save-btn[aria-pressed="true"] svg { fill: var(--red2); }
.th-feed .card-admin { padding: 0 16px 14px; }
.th-feed .empty-pile { border: 1.5px dashed var(--line); background: transparent; color: var(--mute); }
.th-scroll-hint { text-align: center; font-size: 11px; color: var(--mute); margin: 8px 0 0; text-transform: uppercase; letter-spacing: 0.1em; }

.th-side { min-width: 0; }
.th-featured .hero-feature { border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.45); background: linear-gradient(135deg, #4a0a10, #1c0508); border-radius: 8px; overflow: hidden; }
.th-featured .feature-card { display: block; text-decoration: none; color: inherit; }
.th-featured .feature-card:hover { text-decoration: none; }
.th-featured .feature-card .cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--red); }
.th-featured .feature-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.th-featured .feature-body h2 { margin: 2px 0; font-size: 22px; line-height: 1.15; font-weight: 800; text-transform: uppercase; }
.th-featured .feature-body p:not(.tape-label) { color: #e8d6d7; font-size: 14px; margin: 0; }
.th-featured .feature-body::after { content: "Read more"; justify-self: start; margin-top: 8px; display: inline-block; background: linear-gradient(180deg, var(--red2), #9c0d15); color: #fff; border-radius: 999px; padding: 8px 14px; font: 700 11.5px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 4px 14px rgba(200,20,30,.35); }
.th-featured .empty-featured { background: linear-gradient(135deg, #4a0a10, #1c0508); border-radius: 8px; padding: 18px; color: #e8d6d7; }
.th-featured .empty-featured p { margin: 0 0 6px; }

.th-side #desk { border-top: 0; scroll-margin-top: 5rem; }
.th-side #desk .wrap { padding: 0; max-width: none; }
.th-side #desk .section-pad { padding-block: 0; }
.th-side #desk .week-grid { display: block; }
.th-side #desk .week-intro { display: flex; flex-direction: column; margin: 0 0 12px; padding-left: 38px; position: relative; }
.th-side #desk .week-intro::before { content: ""; position: absolute; left: 0; top: 3px; width: 28px; height: 14px; border-radius: 999px; background: var(--red); }
.th-side #desk .week-intro .section-title { font-size: 14px; letter-spacing: 0.04em; line-height: 1.3; }
.th-side #desk .week-intro p { margin: 4px 0 0; color: var(--mute); font-size: 13px; }
.th-side #desk .week-items { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 0; }
.th-side #desk .week-item { padding: 12px 14px; border-width: 1.5px; border-color: var(--line); }
.th-side #desk .week-item dt { margin: 0 0 4px; }
.th-side #desk .week-item dd { margin: 0; color: #e3d2d3; font-size: 14px; }

.th-about { scroll-margin-top: 5rem; }
.th-about .about-img { border: 2px solid var(--red); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.th-about .about-copy p { color: #e3d2d3; }
.th-about .about-copy .sign { color: var(--red2); font-weight: 800; }

@media (min-width: 640px) {
  .th-feed-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .th-feed-head .search-label { width: 15rem; }
}
@media (min-width: 900px) {
  .th-hero { min-height: 540px; align-items: center; }
  .th-hero .hero-copy { padding: 40px; }
  .th-tabs.filters { justify-content: center; gap: 20px; }
  .th-rule { margin: 6px 40px 26px; }
  .th-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding: 0 40px 40px; }
  .pile-grid.th-feed { max-height: 1050px; }
  .th-side { position: sticky; top: 90px; align-self: start; }
}

/* 2026-10-09b: hero image (red NERD sign + taped glasses) — keep the glasses centered on phones */
.th-hero .th-hero-bg picture { position: absolute; inset: 0; display: block; }
.th-hero .th-hero-bg img { object-position: center center; }

/* 2026-10-09c: hero image shown in full (16:9, uncropped, no overlay) as its own block above the hero text */
.th-hero { display: block; min-height: 0; overflow: visible; padding: 18px 18px 0; }
.th-hero::after { content: none; display: none; }
.th-hero .th-hero-bg,
.th-hero .th-hero-bg picture {
  position: static; inset: auto; display: block;
  width: 100%; max-width: 1200px; height: auto; margin: 0 auto;
}
.th-hero .th-hero-bg img {
  position: static; inset: auto; display: block;
  width: 100%; height: auto; max-width: 100%;
  aspect-ratio: 16 / 9; object-fit: contain;
  border: 2px solid var(--red); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.th-hero .hero-copy { padding: 20px 0 28px; max-width: 1200px; margin: 0 auto; }
.th-hero .hero-copy > * { max-width: 680px; }
.th-hero h1 { text-shadow: none; }
@media (min-width: 900px) {
  .th-hero { min-height: 0; padding: 26px 40px 0; }
  .th-hero .hero-copy { padding: 26px 0 34px; }
}

/* 2026-10-09d: picture wrappers for the About image and post covers */
.about-pic { display: block; }
.about-pic img { width: 100%; height: auto; }
.card-link picture, .feature-card picture, .post-page picture { display: block; }

/* About image: the grid item is the <picture>, so it gets the column (was 1 of 12 → tiny thumbnail) */
.about-grid > .about-pic { width: 100%; min-width: 0; }
.th-about .about-pic img.about-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 2.5rem; }
  .about-grid > .about-pic { grid-column: auto; max-width: 520px; justify-self: start; }
  .about-grid > .about-copy { grid-column: auto; }
}
@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > .about-pic { max-width: none; }
}
