/* ==========================================================================
   jessewilson.us — site styles

   The palette tokens below are the single source of truth (PRD §14).
   Nothing in the templates or partials uses a raw hex value; every colour
   reference goes through one of these custom properties.
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #262922;
  --cream:      #FAF6EC;
  --parchment:  #F2ECDD;
  --sage:       #7E8C6C;
  --olive:      #4E5A3E;
  --dusty-gold: #C4A25F;
  --terracotta: #B97455;
  --stone:      #6B6558;
  --mist:       #E4E7DE;

  /* Derived tokens, so downstream code never reaches for a raw value.
     Each is contrast-checked against the ground it sits on:
       --on-ink        13.7:1 on --ink
       --on-ink-muted   7.3:1 on --ink
       --link (olive)   6.8:1 on --cream  (sage as text is only 3.3:1 — see PRD §14) */
  --on-ink:          var(--cream);
  --on-ink-muted:    #B9B7A9;
  --on-ink-hairline: #3B3F35;
  --nav-inset:       #3B4032;
  --hairline-warm:   #DDD5C1;
  --link:            var(--olive);
  --scrim-strong:    rgba(38, 41, 34, .55);
  --scrim-none:      rgba(38, 41, 34, 0);
  --focus-ring:      rgba(78, 90, 62, .18);
  --shadow-soft:     0 1px 2px rgba(38, 41, 34, .04), 0 12px 32px rgba(38, 41, 34, .06);
  --shadow-lift:     0 2px 4px rgba(38, 41, 34, .05), 0 20px 48px rgba(38, 41, 34, .10);

  /* Rhythm */
  --radius-block: 24px;
  --radius-card:  16px;
  --radius-pill:  999px;
  --gutter:       24px;
  --section-y:    clamp(64px, 8vw, 120px);
  --page-inset:   clamp(8px, 1.2vw, 18px);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ink); }

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

hr { border: 0; border-top: 1px solid var(--mist); margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--on-ink);
  padding: 12px 20px; border-radius: 0 0 var(--radius-card) 0;
}
.skip-link:focus { left: 0; color: var(--on-ink); }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.t-display { font-size: clamp(2.35rem, 5.2vw, 4.1rem); line-height: 1.06; }
.t-h1      { font-size: clamp(2.05rem, 4.2vw, 3.2rem); }
.t-h2      { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.t-h3      { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.25; }
.t-h4      { font-size: 1.125rem; line-height: 1.35; }

.t-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--stone);
}

.t-body-lg { font-size: 1.125rem; line-height: 1.78; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--dusty-gold);
  flex: none;
}

.meta { font-size: 0.875rem; line-height: 1.6; color: var(--stone); letter-spacing: 0.01em; }
.muted { color: var(--stone); }

/* One deliberate terracotta accent per page, no more (PRD §14). */
.accent-underline {
  background-image: linear-gradient(var(--terracotta), var(--terracotta));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 0.06em;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }
.wrap--mid    { max-width: 1000px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 5vw, 76px); }

.section--parchment { background: var(--parchment); }
.section--ink       { background: var(--ink); color: var(--on-ink); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-ink); }
.section--ink .muted, .section--ink .meta, .section--ink .t-lead { color: var(--on-ink-muted); }
.section--ink .eyebrow { color: var(--on-ink-muted); }

/* The template's inset rounded page-block rhythm, restyled.
   No overflow clipping here — the mobile nav panel drops out of the page
   hero, so only children that actually need it (images) clip themselves. */
.block-inset {
  margin-inline: var(--page-inset);
  border-radius: var(--radius-block);
}

/* Column layout comes from Bootstrap's grid (.row / .col-*); everything
   below is the identity layer on top of it. */

.stack > * + * { margin-top: 1.25rem; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--centered { margin-inline: auto; text-align: center; }
.section-head--centered .eyebrow { justify-content: center; }

.section-foot { margin-top: clamp(2rem, 4vw, 3.25rem); }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--dusty-gold); color: var(--ink); }
.btn--primary:hover, .btn--primary:focus { background: var(--olive); color: var(--cream); }

.btn--quiet { background: transparent; color: var(--ink); border-color: var(--mist); }
.btn--quiet:hover, .btn--quiet:focus { border-color: var(--olive); color: var(--olive); }

.btn--on-ink { background: transparent; color: var(--on-ink); border-color: var(--on-ink-hairline); }
.btn--on-ink:hover, .btn--on-ink:focus { background: var(--dusty-gold); border-color: var(--dusty-gold); color: var(--ink); }

.btn__arrow { flex: none; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--dusty-gold);
  padding-bottom: 2px;
}
.link-arrow svg { transition: transform .2s ease; flex: none; }
.link-arrow:hover { color: var(--ink); border-bottom-color: var(--olive); }
.link-arrow:hover svg { transform: translateX(3px); }

.section--ink .link-arrow { color: var(--on-ink); }
.section--ink .link-arrow:hover { color: var(--dusty-gold); }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--cream);
  color: var(--stone);
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.7rem var(--gutter);
}
.topbar a { color: var(--olive); }

.site-header { position: relative; z-index: 60; }

/* Floated over the homepage hero video. The scrim keeps the links legible
   whatever frame of the video happens to be under them; over the ink half of
   the hero it is invisible. */
.site-header--overlay { position: absolute; inset: 0 0 auto 0; }
.site-header--overlay::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  background: linear-gradient(180deg, var(--scrim-strong) 0%, var(--scrim-none) 100%);
  pointer-events: none;
}
.site-header--overlay .nav-shell {
  background: transparent;
  margin-inline: var(--page-inset);
  margin-top: 12px;
}

/* A pill sitting inside the interior page-hero block, as in the reference. */
.site-header--inset { padding: clamp(10px, 1.4vw, 16px) clamp(10px, 1.4vw, 16px) 0; }
.site-header--inset .nav-shell { background: var(--nav-inset); }

.nav-shell {
  position: relative;
  padding: 0 clamp(14px, 2vw, 26px);
  border-radius: var(--radius-pill);
  color: var(--on-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--on-ink);
  padding-block: 8px;
}
.brand:hover, .brand:focus { color: var(--dusty-gold); }
.brand__mark { flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: block;
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--on-ink);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a:focus { color: var(--dusty-gold); border-bottom-color: var(--dusty-gold); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--dusty-gold); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--on-ink-hairline);
  color: var(--on-ink);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}
.site-header--overlay .nav-toggle { background: var(--scrim-strong); }

.nav-panel { display: contents; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--ink);
    border-radius: var(--radius-card);
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: var(--shadow-lift);
  }
  .nav-panel.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--on-ink-hairline); }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Home hero — statement left, video right (PRD §5.1)
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: min(88vh, 860px);
  background: var(--ink);
  color: var(--on-ink);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 13vw, 190px) clamp(24px, 5vw, 88px) clamp(56px, 7vw, 96px);
}
.hero__statement {
  color: var(--on-ink);
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 2.25rem;
  max-width: 20ch;
}
.hero__rule { width: 56px; height: 1px; background: var(--dusty-gold); margin-bottom: 1.6rem; }
.hero__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-ink);
  margin: 0 0 0.3rem;
}
.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--on-ink-muted);
  margin: 0;
}

.hero__media { position: relative; background: var(--olive); overflow: hidden; }
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Softens the seam where the video meets the statement panel. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--scrim-strong) 0%, var(--scrim-none) 34%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
  .hero__media::after { background: linear-gradient(180deg, var(--scrim-strong) 0%, var(--scrim-none) 50%); }
  .hero__copy { padding-top: clamp(40px, 8vw, 64px); }
}

/* --------------------------------------------------------------------------
   Interior page hero
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
}
.page-hero__body { padding: clamp(52px, 7.5vw, 100px) var(--gutter) clamp(48px, 6.5vw, 84px); }
.page-hero h1 { color: var(--on-ink); max-width: 22ch; margin-inline: auto; }
.page-hero__sub { color: var(--on-ink-muted); max-width: 58ch; margin: 1.25rem auto 0; }

.crumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
  flex-wrap: wrap;
}
.crumbs a { color: var(--on-ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--dusty-gold); }
.crumbs li::after { content: "/"; margin-left: 0.6rem; color: var(--on-ink-hairline); }
.crumbs li:last-child::after { content: none; }
.crumbs li[aria-current] { color: var(--on-ink); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.tile {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.tile:hover, a.tile:focus-visible { border-color: var(--olive); box-shadow: var(--shadow-soft); transform: translateY(-2px); }

.tile__title { margin: 0 0 0.7rem; }
.tile__body { color: var(--stone); margin: 0 0 1.6rem; }
.tile__foot { margin-top: auto; display: block; }
.tile__index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--dusty-gold);
  display: block;
  margin-bottom: 1.2rem;
}

.tile__media {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 16 / 10;
  margin-bottom: 1.4rem;
}
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.tile:hover .tile__media img { transform: scale(1.03); }

/* --------------------------------------------------------------------------
   Circle strip — the template's four circular photos, restyled
   -------------------------------------------------------------------------- */

.circle-strip { display: flex; gap: clamp(0.5rem, 1.4vw, 1rem); align-items: flex-end; }
.circle-strip figure {
  margin: 0;
  flex: 1 1 0;
  /* Without this the flex item takes its minimum from the image's intrinsic
     width and pushes the whole page sideways on a phone. */
  min-width: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 3 / 4;
}
.circle-strip figure:nth-child(even) { transform: translateY(clamp(10px, 2vw, 26px)); }
.circle-strip img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 620px) {
  .circle-strip figure:nth-child(n+3) { display: none; }
}

/* --------------------------------------------------------------------------
   Split band — image one side, ink panel the other
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--ink);
  overflow: hidden;
}
.split__media { position: relative; min-height: 400px; background: var(--olive); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__panel {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--on-ink);
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__media { min-height: 0; aspect-ratio: 16 / 10; }
}

.marker-list { list-style: none; margin: 0; padding: 0; }
.marker-list li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--on-ink-hairline);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.marker-list li:first-child { padding-top: 0; }
.marker-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.marker-list__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dusty-gold);
  margin-top: 0.62rem;
}
.marker-list strong { font-weight: 500; display: block; color: var(--on-ink); }
.marker-list p { margin: 0.15rem 0 0; color: var(--on-ink-muted); font-size: 0.9375rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */

.listing-row {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-bottom: 1px solid var(--mist);
  text-decoration: none;
  color: inherit;
}
.listing-row:first-child { border-top: 1px solid var(--mist); }
.listing-row__date { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.listing-row__date span { display: block; font-family: var(--font-body); font-size: 0.8125rem; color: var(--stone); }
.listing-row__title { margin: 0 0 0.35rem; font-size: 1.25rem; }
.listing-row__go { color: var(--olive); flex: none; transition: transform .2s ease; }
.listing-row:hover .listing-row__go { transform: translateX(3px); }
.listing-row:hover .listing-row__title { color: var(--olive); }

/* Writing entries share the listing rhythm; the title carries more weight
   because there is no image to carry it. */
.listing-row--entry { align-items: start; }
.listing-row--entry .listing-row__date { font-family: var(--font-body); font-size: 0.875rem; color: var(--stone); padding-top: 0.3rem; }
.listing-row--entry .listing-row__title { font-size: clamp(1.3rem, 2.1vw, 1.7rem); margin-bottom: 0.55rem; }
.listing-row--entry .listing-row__excerpt { color: var(--stone); margin: 0; max-width: 62ch; }

.listing-row--past .listing-row__date { font-size: 1rem; color: var(--stone); }
.listing-row--past .listing-row__title { font-size: 1.0625rem; color: var(--stone); }

@media (max-width: 720px) {
  .listing-row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .listing-row__go { display: none; }
}

/* --------------------------------------------------------------------------
   Empty states — designed, not apologetic (PRD §5.4, §8.1)
   -------------------------------------------------------------------------- */

.quiet-note {
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  background: var(--cream);
}
.quiet-note p { max-width: 48ch; margin-inline: auto; color: var(--stone); }
.quiet-note__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

.quiet-note--left { text-align: left; margin-top: clamp(2rem, 4vw, 2.75rem); background: var(--parchment); }
.quiet-note--left p { max-width: none; margin-inline: 0; }

/* --------------------------------------------------------------------------
   Writing
   -------------------------------------------------------------------------- */

.type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  list-style: none;
  /* No rule of its own — the first listing row's top border is the divider. */
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0;
  font-size: 0.9375rem;
}
.type-filter a { color: var(--stone); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.type-filter a:hover { color: var(--ink); }
.type-filter a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--dusty-gold); }

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--mist);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  background: var(--cream);
  line-height: 1.4;
}
.tag--accent { color: var(--terracotta); border-color: var(--terracotta); }

.feature-post {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--mist);
}
.feature-post__media { border-radius: var(--radius-card); overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3; }
.feature-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-post:hover .feature-post__media img { transform: scale(1.03); }
@media (max-width: 800px) { .feature-post { grid-template-columns: minmax(0, 1fr); } }

/* Rich text out of the CMS */
.prose { font-size: 1.0625rem; line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 2.4em; }
.prose h3 { font-size: 1.25rem; margin-top: 2em; }
.prose p { margin-bottom: 1.35em; }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: 1.35em; }
.prose li { margin-bottom: 0.5em; }
.prose img { border-radius: var(--radius-card); margin-block: 2em; }
.prose blockquote {
  margin: 2em 0;
  padding: 0.25em 0 0.25em 1.5em;
  border-left: 2px solid var(--dusty-gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
}
.prose a { color: var(--link); }

.audio-block {
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  background: var(--parchment);
  margin-bottom: 2.5rem;
}
.audio-block audio { width: 100%; }

/* --------------------------------------------------------------------------
   Detail pages
   -------------------------------------------------------------------------- */

.particulars { background: var(--parchment); border-radius: var(--radius-card); padding: clamp(1.6rem, 2.6vw, 2.25rem); }
.particulars dl { margin: 0; }
.particulars dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.35rem;
}
.particulars dd { margin: 0 0 1.5rem; }
.particulars dd:last-of-type { margin-bottom: 0; }
.particulars .divider { border-top: 1px solid var(--mist); margin: 1.5rem 0; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .detail-layout { grid-template-columns: minmax(0, 1fr); } }

.detail-media {
  border-radius: var(--radius-block);
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 21 / 9;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
/* Keeps a portrait in its own frame rather than cropping it to a band. */
.detail-media--full { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------------------
   Forms — one open prompt, never an intake grid (PRD §13)
   -------------------------------------------------------------------------- */

.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.55rem; }
.field .hint { display: block; font-weight: 400; color: var(--stone); font-size: 0.875rem; margin-top: 0.2rem; }

.input, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  padding: 0.9rem 1.1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.textarea { min-height: 190px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.input::placeholder, .textarea::placeholder { color: var(--stone); opacity: 0.75; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card { background: var(--parchment); border-radius: var(--radius-block); padding: clamp(1.75rem, 4vw, 3rem); }
/* --mist reads as almost nothing against parchment; these need an edge. */
.form-card .input,
.form-card .textarea,
.signup-form--light .input { border-color: var(--hairline-warm); }

.notice {
  border-radius: var(--radius-card);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  border: 1px solid var(--mist);
  background: var(--cream);
  font-size: 0.9375rem;
}
.notice--good { border-color: var(--olive); }
.notice--bad  { border-color: var(--terracotta); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--on-ink); margin-top: clamp(48px, 6vw, 84px); }
.site-footer h2, .site-footer h3 { color: var(--on-ink); }

.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.footer-main { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem); }
.footer-links { border-left: 1px solid var(--on-ink-hairline); display: flex; flex-direction: column; }
.footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 1.7vw, 1.35rem) clamp(1.5rem, 3vw, 2.5rem);
  color: var(--on-ink);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--on-ink-hairline);
  flex: 1 1 auto;
}
.footer-links a:last-child { border-bottom: 0; }
.footer-links a:hover { background: var(--olive); color: var(--cream); }
.footer-links svg { opacity: 0.6; flex: none; }

.signup-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; max-width: 540px; }
.signup-form .input { flex: 1 1 220px; background: transparent; border-color: var(--on-ink-hairline); color: var(--on-ink); }
.signup-form .input::placeholder { color: var(--on-ink-muted); opacity: 0.85; }
.signup-form .input:focus { border-color: var(--dusty-gold); box-shadow: none; }

/* The same signup standing on a light ground rather than in the footer. */
.signup-form--light .input { background: var(--cream); border-color: var(--mist); color: var(--ink); }
.signup-form--light .input::placeholder { color: var(--stone); opacity: 0.75; }
.signup-form--light .input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px var(--focus-ring); }

.footer-note {
  border-top: 1px solid var(--on-ink-hairline);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
  max-width: 62ch;
}
.footer-note a { color: var(--on-ink); }
.footer-note a:hover { color: var(--dusty-gold); }

.footer-base {
  border-top: 1px solid var(--on-ink-hairline);
  padding: 1.35rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}
.footer-base a { color: var(--on-ink-muted); text-decoration: none; }
.footer-base a:hover { color: var(--dusty-gold); }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { border-left: 0; border-top: 1px solid var(--on-ink-hairline); }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.measure { max-width: 54ch; }
.strong { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

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