/* =============================================================
   Manycast site shell — shared structure + Journal Photo defaults.
   Alternate designs load assets/css/themes/{id}.css and override tokens.
   ============================================================= */

/* ---------- Design tokens (journal-photo defaults) ---------- */
:root {
  --paper: #E8EEF1;
  --paper-tint: #DCE4EA;
  --raised: #FFFFFF;
  --ink: #141C24;
  --ink-soft: #4A5560;
  --ink-faint: #7A8794;
  --line: #D0D8E0;
  --line-strong: #B8C3CE;
  --clay: #2F6B5E;
  --clay-deep: #245248;
  --clay-wash: #DCECE7;
  --gold: #4A6578;
  /* Scrim ink stays dark even when --ink is light (e.g. midnight-reading). */
  --scrim-ink: #141C24;
  --hero-scrim: linear-gradient(
    180deg,
    color-mix(in srgb, var(--scrim-ink) 55%, transparent) 0%,
    color-mix(in srgb, var(--scrim-ink) 35%, transparent) 45%,
    color-mix(in srgb, var(--scrim-ink) 72%, transparent) 100%
  );
  --media-scrim: linear-gradient(transparent, color-mix(in srgb, var(--scrim-ink) 82%, transparent));
  --accent-wash-soft: color-mix(in srgb, var(--clay) 10%, transparent);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 46rem;
  --container: 68rem;
  --gutter: clamp(1.15rem, 3.5vw, 2rem);
  --radius: 14px;
  --radius-sm: 10px;
  --btn-radius: 999px;
  --header-h: 4.25rem;

  --shadow-sm: 0 1px 2px rgba(20, 28, 36, .05), 0 2px 6px rgba(20, 28, 36, .04);
  --shadow-md: 0 8px 22px rgba(20, 28, 36, .09), 0 2px 6px rgba(20, 28, 36, .04);
  --shadow-lg: 0 20px 50px rgba(20, 28, 36, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 10% -8%, color-mix(in srgb, var(--clay) 8%, transparent), transparent 48%),
    radial-gradient(ellipse at 94% 6%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--raised) 40%, transparent) 0%, transparent 30%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--safe-top);
}

@media (hover: hover) and (min-width: 768px) {
  body { background-attachment: fixed; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-deep); }

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

::selection { background: var(--clay-wash); color: var(--clay-deep); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

body:not(.is-home) .site-header .container {
  max-width: var(--measure);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: .6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 650;
  color: var(--clay);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .7rem 1.35rem;
  border-radius: var(--btn-radius);
  font-weight: 650;
  font-size: .95rem;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--ink);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--paper-tint); color: var(--ink); }
.btn-primary {
  background: var(--clay);
  color: #fff;
  border-color: var(--clay);
}
.btn-primary:hover {
  background: var(--clay-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 1px 0 rgba(20, 28, 36, .04);
}

/* Home page 1: float over the full-bleed hero until scroll */
body.has-photo-hero .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.has-photo-hero .site-header:not(.is-scrolled) .site-logo .site-logo-title,
body.has-photo-hero .site-header:not(.is-scrolled) .site-nav a {
  color: #fff;
}
body.has-photo-hero .site-header:not(.is-scrolled) .site-logo .site-logo-tag {
  color: rgba(255, 255, 255, .72);
}
body.has-photo-hero .site-header:not(.is-scrolled) .site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
body.has-photo-hero .site-header:not(.is-scrolled) .site-nav a[aria-current="page"] {
  color: #fff;
}
body.has-photo-hero .site-header:not(.is-scrolled) .site-nav .nav-socials {
  border-left-color: rgba(255, 255, 255, .28);
}
body.has-photo-hero .site-header:not(.is-scrolled) .site-nav .nav-social-icon {
  color: rgba(255, 255, 255, .88);
}
body.has-photo-hero .site-header:not(.is-scrolled) .site-nav .nav-social-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
body.has-photo-hero .site-header:not(.is-scrolled) .nav-toggle-btn {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

/* When the mobile menu is open over the hero, force a solid panel */
body.has-photo-hero .site-header:not(.is-scrolled):has(.nav-toggle:checked) {
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
body.has-photo-hero .site-header:not(.is-scrolled):has(.nav-toggle:checked) .site-logo .site-logo-title,
body.has-photo-hero .site-header:not(.is-scrolled):has(.nav-toggle:checked) .site-nav a {
  color: var(--ink);
}
body.has-photo-hero .site-header:not(.is-scrolled):has(.nav-toggle:checked) .site-logo .site-logo-tag {
  color: var(--ink-faint);
}
body.has-photo-hero .site-header:not(.is-scrolled):has(.nav-toggle:checked) .site-nav a[aria-current="page"] {
  color: var(--clay);
}
body.has-photo-hero .site-header:not(.is-scrolled):has(.nav-toggle:checked) .site-nav .nav-socials {
  border-left-color: var(--line);
}
body.has-photo-hero .site-header:not(.is-scrolled):has(.nav-toggle:checked) .site-nav .nav-social-icon {
  color: var(--ink-soft);
}
body.has-photo-hero .site-header:not(.is-scrolled):has(.nav-toggle:checked) .nav-toggle-btn {
  background: var(--clay-wash);
  border-color: var(--clay);
  color: var(--clay-deep);
}

.site-header-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: .75rem;
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  flex: 0 1 auto;
  min-width: 0;
  z-index: 2;
}
.site-logo:hover { color: inherit; }

.site-logo .site-logo-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.05;
}

.site-logo .site-logo-tag {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .32rem;
  font-weight: 600;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .45rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
}
.nav-toggle-close { display: none; }
.nav-toggle:checked ~ .nav-toggle-btn .nav-toggle-open { display: none; }
.nav-toggle:checked ~ .nav-toggle-btn .nav-toggle-close { display: inline; }

.site-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 550;
  font-size: .92rem;
  padding: .55rem .7rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--paper-tint); }
.site-nav a[aria-current="page"] { color: var(--clay); }

.site-nav .nav-socials {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  margin-left: .25rem;
  padding-left: .45rem;
  border-left: 1px solid var(--line);
}

.site-nav .nav-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--ink-soft);
  border-radius: 10px;
  background: transparent;
  border: none;
}
.site-nav .nav-social-icon:hover {
  color: var(--ink);
  background: var(--paper-tint);
}
.site-nav .nav-social-icon .social-icon { display: block; }

@media (max-width: 760px) {
  .nav-toggle-btn { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: .85rem var(--gutter) calc(.85rem + var(--safe-bottom));
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-btn { background: var(--clay-wash); border-color: var(--clay); color: var(--clay-deep); }

  .site-nav a {
    width: 100%;
    padding: .85rem 1rem;
    font-size: 1rem;
  }

  .site-nav .nav-socials {
    margin: .35rem 0 0;
    padding: .5rem 0 0;
    border-left: none;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }
}

/* =============================================================
   Home hero (full-bleed photo)
   ============================================================= */
.home-hero {
  position: relative;
  min-height: min(88vh, 42rem);
  min-height: min(88dvh, 42rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  margin-bottom: 0;
}

body.has-photo-hero .home-hero {
  margin-top: calc(-1 * (var(--header-h) + .5rem + var(--safe-top)));
  min-height: min(92vh, 46rem);
  min-height: min(92dvh, 46rem);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--scrim-ink);
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-ken 18s var(--ease) both;
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(5rem, 14vw, 7.5rem) var(--gutter) clamp(2.5rem, 6vw, 3.75rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
  margin: 0 0 .85rem;
  animation: hero-rise .75s var(--ease) both;
}

.home-hero .hero-headline {
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: -.015em;
  line-height: 1.25;
  max-width: 20ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, .94);
  animation: hero-rise .75s var(--ease) .08s both;
  text-wrap: pretty;
}

.home-hero .hero-lede {
  margin: .9rem auto 0;
  max-width: 38ch;
  color: rgba(255, 255, 255, .82);
  font-size: 1.02rem;
  animation: hero-rise .75s var(--ease) .14s both;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
  animation: hero-rise .75s var(--ease) .2s both;
}

.home-hero .btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.home-hero .btn-primary:hover {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.home-hero--plain,
.editorial-masthead--plain,
.minimal-hero--plain,
.hearth-hero--plain,
.chronicle-hero--plain,
.studio-hero--plain {
  min-height: auto;
  align-items: center;
  color: var(--ink);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--accent-wash-soft), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--raised) 25%, transparent) 0%, transparent 100%);
}
.home-hero--plain .hero-brand,
.studio-hero--plain .studio-brand { color: var(--ink); }
.home-hero--plain .hero-headline,
.editorial-masthead--plain .editorial-headline,
.minimal-hero--plain .minimal-headline,
.hearth-hero--plain .hearth-headline,
.chronicle-hero--plain .chronicle-headline,
.studio-hero--plain .studio-headline { color: var(--ink-soft); max-width: 28ch; }
.home-hero--plain .hero-lede,
.editorial-masthead--plain .editorial-lede,
.hearth-hero--plain .hearth-lede,
.studio-hero--plain .studio-lede { color: var(--ink-soft); }
.home-hero--plain .home-hero-inner { padding: 0 var(--gutter); }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-ken {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 2;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: .85;
}
.hero-scroll span {
  width: .7rem;
  height: .7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: hero-bounce 1.6s var(--ease) infinite;
}
@keyframes hero-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .55; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand,
  .home-hero .hero-headline,
  .home-hero .hero-lede,
  .hero-actions,
  .home-hero-media img,
  .hero-scroll span {
    animation: none;
  }
  .lead-post:hover,
  .post-card:hover,
  .help-card:hover,
  .path-card:hover,
  .photo-rail-item:hover,
  .social-follow:hover {
    transform: none;
  }
}

/* =============================================================
   Photo rail
   ============================================================= */
.photo-rail {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.5rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--scrim-ink) 3%, transparent), transparent 40%);
}
.photo-rail .section-head {
  margin-top: 0;
  margin-bottom: 1.35rem;
}
.photo-rail .section-head h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  max-width: 18ch;
}
.photo-rail-shell {
  position: relative;
}
.photo-rail-shell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1rem;
  width: 3rem;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--paper));
  z-index: 1;
}
.photo-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11.5rem, 16vw);
  gap: .75rem;
  overflow-x: auto;
  padding: .25rem var(--gutter) 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.photo-rail-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--paper-tint);
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.photo-rail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.photo-rail-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem .85rem .85rem;
  background: var(--media-scrim);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.photo-rail-meta time {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 650;
  opacity: .8;
}
.photo-rail-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 560;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (hover: hover) {
  .photo-rail-item:hover img { transform: scale(1.05); }
  .photo-rail-item:hover { box-shadow: var(--shadow-md); }
}

/* =============================================================
   Signal band / path band / about band
   ============================================================= */
.signal-band {
  border-block: 1px solid var(--line);
  background: var(--raised);
  padding: 1.35rem 0;
}
.signal-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.signal-item {
  text-align: center;
  padding: .35rem .5rem;
}
.signal-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.1;
}
.signal-label {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.path-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse at 10% 0%, var(--accent-wash-soft), transparent 50%),
    var(--paper);
}
.section-head--center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.section-head--center h2 { max-width: 18ch; }
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: .5rem;
}
.path-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 100%;
  padding: 1.6rem 1.5rem 1.45rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.path-card:hover {
  color: inherit;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.path-kicker {
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
}
.path-card h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}
.path-card p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  flex: 1;
}
.path-cta {
  margin-top: .5rem;
  font-weight: 650;
  color: var(--clay);
}

.about-band {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  background: var(--ink);
  color: #fff;
}
.about-band-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.about-band .eyebrow { color: rgba(255, 255, 255, .65); }
.about-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin: .35rem 0 1rem;
}
.about-band-copy p {
  color: rgba(255, 255, 255, .84);
  font-size: 1.12rem;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}
.about-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.about-band .btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.about-band .btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.about-band .btn-primary {
  /* Always dark text on white — about-band is a dark surface even in dark themes */
  background: #fff;
  color: #141C24;
  border-color: #fff;
}
.about-band .btn-primary:hover {
  background: rgba(255, 255, 255, .92);
  color: #141C24;
}
.about-band-panel {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}
.about-band-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-style: italic;
  line-height: 1.35;
  color: #fff;
}
.about-band-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  color: rgba(255, 255, 255, .78);
  font-size: .98rem;
}
.about-band-list li {
  padding-left: 1rem;
  position: relative;
}
.about-band-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--clay);
}

/* =============================================================
   Section heading + latest feed
   ============================================================= */
.latest-posts {
  scroll-margin-top: 5rem;
  padding: clamp(2rem, 4vw, 3rem) 0 1rem;
}
#frames { scroll-margin-top: 5rem; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1.35rem;
}
.section-head .eyebrow { margin-bottom: .35rem; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 1.85rem); }
.section-head .section-link {
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
  padding-bottom: .2rem;
}

/* Lead post */
.lead-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.25rem;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) {
  .lead-post:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
}

.lead-post:not(:has(.lead-post-media)) { grid-template-columns: 1fr; }
.lead-post:not(:has(.lead-post-media)) .lead-post-body { padding: 2.25rem 2.5rem; }

.lead-post-media { align-self: stretch; overflow: hidden; }
.lead-post-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 28rem;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
@media (hover: hover) {
  .lead-post:hover .lead-post-media img { transform: scale(1.03); }
}

.lead-post-body { padding: 2rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.lead-post-body .eyebrow { margin-bottom: .55rem; }
.lead-post-body .post-card-date { margin-bottom: .75rem; }
.lead-post-body h3 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-bottom: .75rem;
}
.lead-post-body h3 a { color: var(--ink); }
.lead-post-body h3 a:hover { color: var(--clay); }
.lead-post-body .post-excerpt {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
  -webkit-line-clamp: 5;
}
.lead-post-body .btn { align-self: flex-start; }

/* Post grid + cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.75rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (hover: hover) {
  .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}

.post-card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-tint);
}
.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
@media (hover: hover) {
  .post-card:hover .post-card-image { transform: scale(1.04); }
}

.post-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  padding: 1.25rem 1.3rem 1.4rem;
}

.post-card-date,
.post-card-content time {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 650;
}

.post-card-content h3 {
  margin: .5rem 0 .5rem;
  font-size: 1.28rem;
  line-height: 1.2;
}
.post-card-content h3 a { color: var(--ink); }
.post-card-content h3 a:hover { color: var(--clay); }

.post-excerpt {
  color: var(--ink-soft);
  font-size: .94rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-characters {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .85rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 650;
  font-size: .92rem;
  color: var(--clay);
}
.read-more::after { content: "→"; transition: transform .2s var(--ease); }
@media (hover: hover) {
  .post-card:hover .read-more::after,
  .read-more:hover::after { transform: translateX(3px); }
}

/* Character tags */
.character-tag,
.character-tag-small {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--clay-wash);
  color: var(--clay-deep);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .78rem;
  font-weight: 650;
  font-family: var(--font-body);
}
.character-tag-small {
  padding: .2rem .55rem;
  font-size: .72rem;
  letter-spacing: .02em;
}

/* =============================================================
   Single post
   ============================================================= */
.post {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 1.35rem;
}

.breadcrumbs {
  font-size: .82rem;
  color: var(--ink-faint);
  margin-bottom: 1.15rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumbs a { color: var(--ink-soft); font-weight: 550; }
.breadcrumbs a:hover { color: var(--clay); }
.breadcrumbs .sep { color: var(--line-strong); }

.post-header { margin-bottom: 1.85rem; }
.post-eyebrow { display: block; margin-bottom: .85rem; }

.post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 580;
  margin-bottom: 1.15rem;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-byline .byline-avatar {
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: .02em;
}
.post-byline .byline-text { display: flex; flex-direction: column; line-height: 1.35; }
.post-byline .byline-author { font-weight: 650; color: var(--ink); }
.post-byline .byline-meta { font-size: .85rem; color: var(--ink-faint); }
.post-byline .byline-meta time { white-space: nowrap; }

.post-characters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.post-featured-image { margin: 0 0 1.75rem; }
.post-featured-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--paper-tint);
}

.post-featured-image img[data-aspect="portrait"],
.post-content img[data-aspect="portrait"] {
  aspect-ratio: 3 / 4;
  max-width: min(32rem, 100%);
  margin-inline: auto;
  object-fit: cover;
}
.post-featured-image img[data-aspect="classic"],
.post-content img[data-aspect="classic"] {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  margin-inline: auto;
  object-fit: cover;
}
.post-featured-image img[data-aspect="square"],
.post-content img[data-aspect="square"] {
  aspect-ratio: 1 / 1;
  max-width: min(36rem, 100%);
  margin-inline: auto;
  object-fit: cover;
}
.post-featured-image img[data-aspect="landscape"],
.post-content img[data-aspect="landscape"] {
  aspect-ratio: 3 / 2;
  max-width: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 1.16rem;
  line-height: 1.8;
  color: var(--ink);
}
.post-content > p:first-of-type { font-size: 1.22rem; }
.post-content p { margin-bottom: 1.45rem; }

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2.4rem 0 .95rem;
  line-height: 1.2;
}
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.35rem; }

.post-content a {
  text-decoration: underline;
  text-decoration-color: var(--clay-wash);
  text-underline-offset: .18em;
}
.post-content a:hover { text-decoration-color: var(--clay); }

.post-content ul,
.post-content ol { margin: 0 0 1.45rem 1.35rem; }
.post-content li { margin-bottom: .5rem; }

.post-content blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.35rem;
  border-left: 3px solid var(--clay);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.45;
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--line-strong);
  margin: 2.4rem auto;
  width: 40%;
}

.post-content code {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1rem .4rem;
  font-size: .9em;
}

.post-content img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  margin: 2rem auto .75rem;
}
.post-content img + em {
  display: block;
  text-align: center;
  font-size: .9rem;
  font-style: italic;
  color: var(--ink-faint);
  margin: 0 auto 2rem;
  max-width: 100%;
}

.post-footer { margin-top: 3rem; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.post-tags .tag {
  font-size: .78rem;
  color: var(--ink-soft);
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-weight: 550;
}

.post-social-links {
  margin-bottom: 1.75rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.post-social-links a { font-weight: 650; }

.author-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.25rem;
}
.author-card .author-avatar {
  width: 3.1rem;
  height: 3.1rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
}
.author-card .author-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.author-card .author-bio {
  color: var(--ink-soft);
  font-size: .95rem;
  margin-top: .25rem;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.2rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--raised);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.post-nav a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.post-nav a .nav-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
  font-weight: 650;
}
.post-nav a .nav-title {
  font-family: var(--font-display);
  font-weight: 540;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.post-nav-next { text-align: right; }
.post-nav-only-next { grid-column: 2; }

.post-gallery {
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.post-gallery h3 {
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  background: var(--paper-tint);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.06); }
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--media-scrim);
  color: #fff;
  padding: .85rem .65rem .55rem;
  font-size: .8rem;
  text-align: center;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  gap: 1rem;
}
.pagination a {
  font-weight: 650;
  padding: .65rem 1.05rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raised);
  transition: background .2s var(--ease);
}
.pagination a:hover { background: var(--clay-wash); }
.page-number { color: var(--ink-faint); font-size: .9rem; }

/* Social CTA */
.social-cta,
.instagram-cta {
  text-align: center;
  margin: 3.25rem auto 0;
  width: calc(100% - (2 * var(--gutter)));
  max-width: var(--measure);
  padding: clamp(2rem, 4vw, 2.85rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--clay-deep) 0%, var(--clay) 55%, var(--gold) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.social-cta--home { max-width: 42rem; }
.social-cta--rich {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
}
.social-cta--article.social-cta--rich {
  margin-top: 3.25rem;
}
.social-cta-inner {
  max-width: 40rem;
  margin-inline: auto;
}
.social-cta-eyebrow {
  color: rgba(255, 255, 255, .7);
  margin-bottom: .65rem;
}
.social-follow--alt {
  background: rgba(255, 255, 255, .08);
}

.social-cta h2,
.instagram-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: .55rem;
}
.social-cta p,
.instagram-cta p {
  color: rgba(255, 255, 255, .9);
  margin-bottom: 1.4rem;
}
.social-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.social-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.75rem;
  color: #fff;
  font-weight: 650;
  font-size: .95rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.social-follow:hover {
  color: #fff;
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .45);
  transform: translateY(-1px);
}
.social-follow .social-icon { flex-shrink: 0; }

.social-button,
.instagram-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 650;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
}
.social-button-alt { background: rgba(255, 255, 255, .08); }
.social-button:hover,
.instagram-button:hover,
.social-button-alt:hover {
  color: #fff;
  background: rgba(255, 255, 255, .2);
}

/* =============================================================
   About / archive / help / static pages
   ============================================================= */
.page {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 1.5rem;
}
.page-hero { text-align: center; margin-bottom: 2.4rem; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.1rem); }
.page-hero .lede {
  color: var(--ink-soft);
  font-size: 1.12rem;
  margin-top: .9rem;
  max-width: 40ch;
  margin-inline: auto;
}

.about .prose p,
.help-prose p {
  margin-bottom: 1.35rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.help-prose h2 {
  margin: 2.1rem 0 .7rem;
  font-size: 1.3rem;
}
.help-prose ul {
  margin: 0 0 1.35rem 1.2rem;
  color: var(--ink);
}
.help-prose li { margin-bottom: .55rem; }
.help-prose .help-back { margin-top: 2.4rem; font-size: 1rem; }
.help-feed-link {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  padding: .6rem .9rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  word-break: break-all;
}

.help-toc {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.4rem;
}
@media (min-width: 640px) {
  .help-toc { grid-template-columns: repeat(3, 1fr); }
}
.help-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.2rem 1.25rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  min-height: 2.75rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) {
  .help-card:hover {
    color: inherit;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}
.help-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
  color: var(--ink);
}
.help-card-desc {
  font-size: .94rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.faq-list { margin: 0 0 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: .1rem 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 540;
  padding: 1.05rem 1.75rem 1.05rem 0;
  position: relative;
  color: var(--ink);
  min-height: 2.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 650;
  color: var(--clay);
  font-size: 1.25rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.faq-body p { margin-bottom: .75rem; }
.faq-body p:last-child { margin-bottom: 0; }

.journey-timeline {
  list-style: none;
  margin: 2.4rem 0 2.6rem;
  padding: 0;
  border-left: 2px solid var(--line-strong);
}
.journey-timeline li {
  position: relative;
  padding: 0 0 1.55rem 1.4rem;
}
.journey-timeline li:last-child { padding-bottom: 0; }
.journey-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: .45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-wash);
}
.journey-timeline .jt-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--clay);
  margin-bottom: .25rem;
}
.journey-timeline .jt-text {
  display: block;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.archive-jump {
  display: flex;
  flex-wrap: nowrap;
  gap: .45rem;
  justify-content: flex-start;
  margin: -1rem 0 2.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .35rem;
  scrollbar-width: thin;
}
@media (min-width: 720px) {
  .archive-jump {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
}
.archive-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 650;
}
.archive-jump a:hover {
  color: var(--clay-deep);
  border-color: var(--clay);
  background: var(--clay-wash);
}

.archive-year {
  margin: 2.4rem 0 1rem;
  font-size: 1.55rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: .6rem;
  scroll-margin-top: 5.5rem;
}
.page-hero + .archive-jump + .archive-year,
.page-hero + .archive-year { margin-top: 1.15rem; }
.archive-year .count {
  font-family: var(--font-body);
  font-size: .78rem;
  color: var(--ink-faint);
  font-weight: 650;
}
.archive-list { list-style: none; }
.archive-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: .72rem 0;
  border-bottom: 1px solid var(--line);
}
.archive-list li time {
  flex: none;
  width: 5.5rem;
  font-size: .82rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.archive-list li a {
  color: var(--ink);
  font-weight: 550;
  overflow-wrap: anywhere;
}
.archive-list li a:hover { color: var(--clay); }

/* 404 */
.error-page {
  text-align: center;
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding: 4rem var(--gutter) 5rem;
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 8rem);
  color: var(--clay);
  line-height: 1;
}
.error-page h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: .5rem 0 1rem; }
.error-page p { color: var(--ink-soft); margin-bottom: 1.5rem; }

.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

body.nav-open {
  overflow: hidden;
}
.error-actions {
  display: inline-flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: 0;
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}
.site-footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  text-align: left;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.site-footer .footer-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}
.site-footer-note { color: var(--ink-soft); max-width: 28ch; line-height: 1.5; }
.site-footer-col-title {
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .75rem;
}
.site-footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}
.site-footer-social .footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.5rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.site-footer-social .footer-social-link:hover { color: var(--clay); }
.site-footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .65rem 1.25rem;
  font-size: .82rem;
  color: var(--ink-faint);
  margin-top: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.site-footer-copy { margin: 0; }
.manycast-credit { margin: 0; }
.manycast-credit-link {
  color: var(--ink-faint);
  font-weight: 550;
  letter-spacing: .01em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.manycast-credit-link:hover {
  color: var(--clay);
  border-bottom-color: color-mix(in srgb, var(--clay) 45%, transparent);
}
.site-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
}
.site-footer-links a {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 550;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
}
.site-footer-links a:hover { color: var(--clay); }
@media (max-width: 760px) {
  .site-footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .site-footer .footer-brand,
  .site-footer-social,
  .site-footer-links {
    align-items: center;
  }
  .site-footer-note { margin-inline: auto; }
  .site-footer-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Family member pages (scaffold) */
.family-member {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 1.5rem;
}
.family-member-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.family-member-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin-bottom: .5rem;
}
.family-member-role {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.family-member-content {
  font-size: 1.12rem;
  line-height: 1.75;
}
.family-member-content p { margin-bottom: 1.4rem; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
  .lead-post {
    grid-template-columns: 1fr 1fr;
  }
  .lead-post-body { padding: 1.6rem 1.4rem; }
  .lead-post-media img { min-height: 240px; max-height: 22rem; }
}

@media (max-width: 860px) {
  .lead-post { grid-template-columns: 1fr; }
  .lead-post-media img {
    min-height: 220px;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
  .lead-post-body,
  .lead-post:not(:has(.lead-post-media)) .lead-post-body {
    padding: 1.4rem 1.4rem 1.6rem;
  }
  .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1.4rem;
  }
}

@media (max-width: 860px) {
  .signal-band-grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .path-grid { grid-template-columns: 1fr; }
  .about-band-grid { grid-template-columns: 1fr; }
  .photo-rail-track { grid-auto-columns: minmax(10.5rem, 42vw); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .site-header-content { padding-block: .65rem; }
  .site-logo .site-logo-title { font-size: 1.28rem; }

  .home-hero {
    min-height: min(78vh, 34rem);
    min-height: min(78dvh, 34rem);
  }
  .home-hero-inner {
    padding-bottom: clamp(2.75rem, 10vw, 3.5rem);
  }
  .hero-brand { font-size: clamp(2.35rem, 12vw, 3.1rem); }
  .home-hero .hero-headline { max-width: 20ch; }
  .home-hero .hero-lede { font-size: .98rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }

  .signal-band-grid { gap: .85rem; }
  .signal-item { text-align: left; padding: .2rem 0; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    margin: 1.5rem 0 1.1rem;
  }
  .section-head--center { align-items: center; text-align: center; }
  .section-head h2 { font-size: 1.45rem; }
  .photo-rail .section-head h2 { max-width: none; }

  .lead-post { margin-bottom: 1.6rem; }
  .post-card-image-link { aspect-ratio: 3 / 2; }

  .post,
  .page,
  .family-member { padding-top: 1.1rem; }
  .post-title { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .post-content { font-size: 1.08rem; }
  .post-content > p:first-of-type { font-size: 1.12rem; }
  .post-byline {
    gap: .7rem;
    align-items: flex-start;
  }
  .post-byline .byline-meta { line-height: 1.45; }

  .author-card {
    gap: .9rem;
    padding: 1.15rem;
  }
  .author-card .author-avatar {
    width: 2.75rem;
    height: 2.75rem;
    font-size: .95rem;
  }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-nav-only-next { grid-column: 1; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }

  .social-cta-actions { flex-direction: column; align-items: stretch; }
  .social-follow,
  .social-button,
  .instagram-button { justify-content: center; }

  .archive-list li { gap: .75rem; }
  .archive-list li time { width: 4.5rem; }

  .error-actions { flex-direction: column; align-items: stretch; }
  .error-actions .btn { text-align: center; width: 100%; }
}

@media (max-width: 400px) {
  .post-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .help-toc { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
  .lead-post-body { padding: 2.4rem 2.5rem; }
  .post-grid { gap: 2rem; }
}

@media (min-width: 1400px) {
  :root { --container: 72rem; }
  .lead-post-media img {
    min-height: 300px;
    max-height: 26rem;
  }
  .home-hero {
    min-height: min(86vh, 46rem);
    min-height: min(86dvh, 46rem);
  }
}

.empty-feed {
  color: var(--ink-soft);
  padding: 2rem 0 1rem;
  max-width: 36ch;
}

/* =============================================================
   Home compositions (theme packs pick one via includes)
   ============================================================= */

/* --- Editorial lead --- */
.editorial-masthead {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.editorial-masthead-inner { max-width: 42rem; }
.editorial-headline {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  margin: .4rem 0 .85rem;
  max-width: 16ch;
}
.editorial-lede {
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 38ch;
}
.editorial-feature {
  padding: 1rem 0 3rem;
}
.editorial-feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.editorial-feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.editorial-feature-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.editorial-feature-body time {
  display: block;
  color: var(--ink-faint);
  font-size: .9rem;
  margin: .35rem 0 .75rem;
}
.editorial-feature-body h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: .85rem;
}
.editorial-feature-body h2 a { color: inherit; }
.editorial-feature-body h2 a:hover { color: var(--clay); }
.editorial-feature-body .post-excerpt {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
@media (max-width: 820px) {
  .editorial-feature-grid { grid-template-columns: 1fr; }
}

/* --- Minimal stack --- */
.minimal-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.minimal-hero-inner { max-width: 36rem; }
.minimal-brand {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 650;
  margin-bottom: 1rem;
}
.minimal-headline {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  margin-bottom: 1rem;
  max-width: 14ch;
}
.minimal-lede {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 36ch;
}
.post-grid--minimal {
  grid-template-columns: 1fr;
  max-width: var(--measure);
  margin-inline: auto;
}
.post-grid--minimal .post-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.25rem 0;
}
.post-grid--minimal .post-card:not(:has(.post-card-image-link)) {
  grid-template-columns: 1fr;
}
.post-grid--minimal .post-card-image {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}
@media (max-width: 560px) {
  .post-grid--minimal .post-card { grid-template-columns: 1fr; }
}

/* --- Hearth --- */
.hearth-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.hearth-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hearth-headline {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin: .45rem 0 .9rem;
  max-width: 14ch;
}
.hearth-lede {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 36ch;
}
.hearth-hero-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hearth-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (max-width: 820px) {
  .hearth-hero-grid { grid-template-columns: 1fr; }
  .hearth-hero-media { max-width: 22rem; }
}

/* --- Chronicle --- */
.chronicle-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2.5rem;
}
.chronicle-hero-inner { max-width: 44rem; }
.chronicle-headline {
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
  margin: .4rem 0 .9rem;
  max-width: 16ch;
}
.chronicle-lede {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 40ch;
}
.chronicle-spine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.chronicle-spine::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1.35rem;
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}
.chronicle-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .45rem;
  padding: .5rem;
  color: inherit;
}
.chronicle-node:hover { color: var(--clay); }
.chronicle-node-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  min-height: 2.5rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.chronicle-node-label {
  font-size: .82rem;
  color: var(--ink-faint);
  max-width: 12ch;
}
@media (max-width: 640px) {
  .chronicle-spine { grid-template-columns: 1fr; }
  .chronicle-spine::before { display: none; }
  .chronicle-node { flex-direction: row; justify-content: flex-start; text-align: left; gap: .85rem; }
  .chronicle-node-label { max-width: none; }
}

/* --- Studio grid --- */
.studio-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 1.5rem;
}
.studio-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.studio-headline {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  letter-spacing: -.04em;
  margin-bottom: .85rem;
  max-width: 12ch;
}
.studio-lede {
  color: var(--ink-soft);
  max-width: 38ch;
  font-size: 1.1rem;
}
.studio-wall { padding: 1.5rem 0 3rem; }
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.studio-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--paper-tint);
  color: #fff;
}
.studio-tile img,
.studio-tile-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.studio-tile-fallback {
  display: block;
  background: linear-gradient(145deg, var(--clay-wash), var(--paper-tint));
}
.studio-tile-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem 1rem;
  background: var(--media-scrim);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.studio-tile-meta time {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
}
.studio-tile-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.2;
}
@media (hover: hover) {
  .studio-tile:hover img { transform: scale(1.04); }
}
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .studio-grid { grid-template-columns: 1fr; }
}
