/*
Theme Name:   Wellness With Purpose Child
Theme URI:    https://wellnesswithpurpose.org
Description:  Marginalia / annotated reader child theme for a purposeful wellness blog. A wide reading column with a narrow rail of gloss beside it, running line numbers in the gutter, superscript anchors that resolve into numbered notes. Manuale and Signika, plum and parchment with one moss accent.
Author:       Corinne Baptiste
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   WELLNESS WITH PURPOSE - DESIGN SYSTEM
   Archetype: Marginalia / Annotated Reader.
   A wide reading column with a narrow rail of gloss running
   beside it. The column says what was done. The rail asks why,
   and carries a picture with every question it asks.
   Reference anchor: annotated critical edition / glossed
   manuscript layout. Structure borrowed, period costume not.
   Motion is deliberately near zero for Core Web Vitals.
   ============================================================ */

:root {
  /* -------- plum / parchment / moss -------- */
  --plum:        #4A3552;
  --plum-deep:   #35243C;
  --plum-soft:   #7A6382;
  --plum-faint:  #A79BAD;
  --parch:       #F1EBE0;
  --parch-deep:  #E5DCCC;
  --parch-warm:  #F8F4EC;
  --moss:        #6B7A4A;
  --moss-deep:   #556138;
  --moss-pale:   #D8DCC6;
  --line:        #C9BFAE;
  --line-soft:   #DED5C5;
  --ink:         #2E2733;
  --ink-soft:    #6B6270;

  /* aliases so inherited parent rules keep working */
  --color-primary:      var(--plum);
  --color-primary-dark: var(--plum-deep);
  --color-primary-soft: var(--plum-soft);
  --color-bg:           var(--parch);
  --color-bg-deep:      var(--parch-deep);
  --color-accent:       var(--moss);
  --color-accent-soft:  var(--moss-pale);
  --color-accent-deep:  var(--moss-deep);
  --color-charcoal:     var(--ink);
  --color-ink:          var(--ink);
  --color-muted:        var(--ink-soft);
  --color-line:         var(--line);
  --color-white:        var(--parch-warm);

  --font-serif: 'Manuale', Georgia, 'Times New Roman', serif;
  --font-sans:  'Signika', 'Trebuchet MS', sans-serif;

  --max-w:        1280px;
  --max-w-wide:   1440px;
  --max-w-narrow: 700px;

  /* the two columns are deliberately unequal and stay unequal */
  --rail-w: 20rem;
  --reader-gap: 3.25rem;

  --hair: 1px solid var(--line);
  --hair-soft: 1px solid var(--line-soft);
  --rule: 2px solid var(--plum);
}

/* everything square. the round note numeral is the single
   documented exception, applied consistently. */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; border-radius: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parch);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.18;
}

a { color: var(--plum); }

/* the three permitted micro-labels. skill rule: max 1 per 3 bands. */
.ww-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0 0 0.9rem;
}

.ww-textlink {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 2px solid var(--moss-pale);
  padding-bottom: 2px;
  transition: border-color 120ms linear;
  align-self: end;
  white-space: nowrap;
}
.ww-textlink:hover { border-bottom-color: var(--moss); }
.ww-textlink.small { font-size: 0.8rem; }

/* ---------------- masthead ---------------- */
.ww-masthead {
  background: var(--parch-warm);
  border-bottom: var(--rule);
  padding: 1.6rem 1.5rem 1.4rem;
}
.ww-masthead-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.ww-masthead-meta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.ww-masthead-meta.right { text-align: right; }
.ww-masthead-title {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  color: var(--plum-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.ww-masthead-tagline {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.ww-nav {
  background: var(--parch-warm);
  border-bottom: var(--hair);
  padding: 0 1.5rem;
}
.ww-nav-inner { max-width: var(--max-w-wide); margin: 0 auto; }
.ww-nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.45rem;
  margin: 0;
  padding: 0.85rem 0;
}
.ww-nav-menu a {
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color 120ms linear;
}
.ww-nav-menu a:hover { border-bottom-color: var(--moss); }

/* ---------------- 1. hero ---------------- */
.ww-hero {
  position: relative;
  background: var(--plum-deep);
}
.ww-hero-figure { margin: 0; }
.ww-hero-figure img {
  width: 100%;
  height: clamp(340px, 46vw, 560px);
  object-fit: cover;
  opacity: 0.62;
}
.ww-hero-plate {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5rem 1.5rem 2.6rem;
  background: linear-gradient(to top, rgba(53,36,60,0.94) 32%, rgba(53,36,60,0));
}
.ww-hero-plate > * { max-width: 62rem; margin-left: auto; margin-right: auto; }
.ww-hero-plate .ww-kicker { color: var(--moss-pale); }
.ww-hero-plate h1 {
  font-size: clamp(1.85rem, 3.8vw, 3.05rem);
  color: var(--parch-warm);
  margin-bottom: 0.85rem;
}
.ww-hero-plate h1 a { color: inherit; text-decoration: none; }
.ww-hero-plate h1 a:hover { color: var(--moss-pale); }
.ww-hero-standfirst {
  font-size: 1.02rem;
  color: rgba(241,235,224,0.86);
  margin: 0 auto 1.3rem;
  max-width: 46rem;
}
.ww-hero-read {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum-deep);
  background: var(--moss-pale);
  text-decoration: none;
  padding: 0.72rem 1.5rem;
  transition: background-color 120ms linear;
}
.ww-hero-read:hover { background: var(--parch-warm); }

/* the annotation anchor: a real superscript numeral that
   resolves to a numbered note in the rail. */
.ww-anchor {
  font-family: var(--font-sans);
  font-size: 0.6em;
  font-weight: 600;
  color: var(--moss);
  vertical-align: super;
  line-height: 0;
  padding-left: 1px;
}
.ww-hero-plate .ww-anchor { color: var(--moss-pale); }

/* ---------------- band scaffolding ---------------- */
.ww-band {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.4rem 1.5rem;
}
.ww-band-deep {
  max-width: none;
  background: var(--parch-deep);
  border-top: var(--hair);
  border-bottom: var(--hair);
  padding: 4.4rem 1.5rem;
}
.ww-band-deep > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.ww-band-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: var(--rule);
  margin-bottom: 2.4rem;
}
.ww-band-head-left { min-width: 0; }
.ww-band-title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }

/* ---------------- 2. reader: column + rail ---------------- */
.ww-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: var(--reader-gap);
  align-items: start;
}

/* the page edge scale: a hairline gutter carrying running
   numbers beside the reading column. */
.ww-ruled {
  position: relative;
  padding-left: 2.9rem;
  border-left: var(--hair);
  counter-reset: wwline;
}
.ww-ruled .ww-prose > p {
  position: relative;
  counter-increment: wwline;
}
.ww-ruled .ww-prose > p::before {
  content: counter(wwline);
  position: absolute;
  left: -2.9rem;
  top: 0.55rem;
  width: 1.9rem;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--line);
}

.ww-opener-mark {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0 0 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: var(--hair-soft);
}
.ww-prose p {
  font-size: 1.075rem;
  line-height: 1.78;
  margin: 0 0 1.25rem;
  max-width: 40rem;
}
/* decorative opening capital: the chapter-opener move, in a
   modern face rather than an illuminated one. */
.ww-dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.9rem;
  line-height: 0.82;
  font-weight: 700;
  color: var(--plum);
  padding: 0.16rem 0.55rem 0 0;
}
.ww-signoff {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--plum);
  margin: 1.8rem 0 0;
  padding-top: 0.9rem;
  border-top: var(--hair-soft);
  max-width: 40rem;
}

/* ---------------- the rail ---------------- */
.ww-rail {
  border-left: var(--rule);
  padding-left: 1.5rem;
  position: sticky;
  top: 1.5rem;
}
.ww-rail-head {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin-bottom: 1.4rem;
}
.ww-note { position: relative; margin-bottom: 2rem; }
.ww-note:last-child { margin-bottom: 0; }
.ww-note-num {
  position: absolute;
  left: -2.42rem;
  top: -0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;      /* the one documented round shape */
  background: var(--moss);
  color: var(--parch-warm);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ww-note-figure { display: block; margin-bottom: 0.75rem; }
.ww-note-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.86);
}
.ww-note-body {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------------- 3. marginalia photo essay ---------------- */
.ww-band-essay { padding-top: 0; }
.ww-essay {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: var(--reader-gap);
  align-items: start;
  border-top: var(--hair);
  padding-top: 3.2rem;
}
.ww-essay-note {
  position: relative;
  padding-left: 2.6rem;
}
.ww-essay-note .ww-note-num { left: 0; top: 0.15rem; }
.ww-essay-title { font-size: 1.42rem; margin-bottom: 0.7rem; }
.ww-essay-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.ww-essay-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ww-essay-frame { display: block; }
.ww-essay-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------------- 4. sections ---------------- */
.ww-catgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2.2rem;
}
.ww-catcard {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  text-decoration: none;
  padding-bottom: 1.4rem;
  border-bottom: var(--hair-soft);
}
.ww-catcard-figure { display: block; overflow: hidden; }
.ww-catcard-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 120ms linear;
}
.ww-catcard:hover .ww-catcard-figure img { opacity: 0.82; }
.ww-catcard-text { display: block; }
.ww-catcard-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--plum-deep);
  line-height: 1.24;
}
.ww-catcard-count {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin-top: 0.4rem;
}

/* ---------------- 5. counter argument ---------------- */
.ww-counter {
  max-width: none;
  background: var(--plum-deep);
  color: var(--parch);
  padding: 4.6rem 1.5rem;
}
.ww-counter-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: var(--reader-gap);
  align-items: start;
}
.ww-counter-main { border-left: 2px solid var(--moss); padding-left: 2.2rem; }
.ww-counter-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.95rem);
  line-height: 1.42;
  color: var(--parch-warm);
  margin: 0 0 1.2rem;
  font-weight: 500;
}
.ww-counter-source { font-size: 0.88rem; color: rgba(241,235,224,0.66); margin: 0; }
.ww-counter-source a { color: var(--moss-pale); }
.ww-counter-rail { border-left: 1px solid rgba(216,220,198,0.34); padding-left: 1.5rem; }
.ww-note-inverse .ww-note-body { color: rgba(241,235,224,0.78); }
.ww-note-inverse .ww-note-num { background: var(--moss-pale); color: var(--plum-deep); }

/* ---------------- 6. mosaic ---------------- */
.ww-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 15.5rem;
  gap: 1.25rem;
}
.ww-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--parch-warm);
  border-bottom: 2px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 120ms linear;
}
.ww-cell:hover { border-bottom-color: var(--moss); }
.ww-cell.big  { grid-column: span 2; grid-row: span 2; }
.ww-cell.tall { grid-row: span 2; }
.ww-cell.wide { grid-column: span 2; }
.ww-cell-figure { display: block; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ww-cell-figure img { width: 100%; height: 100%; object-fit: cover; }
.ww-cell-body { display: block; padding: 0.85rem 0.95rem 1rem; flex: 0 0 auto; }
.ww-cell-meta {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin-bottom: 0.35rem;
}
.ww-cell-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--plum-deep);
  line-height: 1.26;
}
.ww-cell.big .ww-cell-title { font-size: 1.42rem; }
.ww-cell-excerpt {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.45rem;
  line-height: 1.55;
}

/* ---------------- 7. by section ---------------- */
.ww-bysection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}
.ww-bysection-block h3 {
  font-size: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: var(--hair);
  margin-bottom: 1rem;
}
.ww-bysection-block h3 a { color: inherit; text-decoration: none; }
.ww-bysection-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.ww-bysection-list li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0.95rem;
}
.ww-bysection-thumb { display: block; }
.ww-bysection-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ww-bysection-list h4 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0 0 0.2rem;
}
.ww-bysection-list h4 a { color: var(--plum-deep); text-decoration: none; }
.ww-bysection-list h4 a:hover { color: var(--moss-deep); }
.ww-bysection-date {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------- 8. signup ---------------- */
.ww-signup {
  border-top: var(--rule);
  padding: 3.8rem 1.5rem;
  background: var(--parch);
}
.ww-signup-inner { max-width: 46rem; margin: 0 auto; }
.ww-signup-title { font-size: clamp(1.35rem, 2.3vw, 1.85rem); margin-bottom: 0.7rem; }
.ww-signup-body { font-size: 0.98rem; color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 38rem; }
.ww-signup-form label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 0.5rem;
}
.ww-signup-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.ww-signup-row input {
  flex: 1 1 16rem;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--parch-warm);
  border: 1px solid var(--plum-soft);
  padding: 0.78rem 0.9rem;
}
.ww-signup-row input::placeholder { color: #6B6270; opacity: 1; }
.ww-signup-row input:focus { outline: 2px solid var(--moss); outline-offset: 1px; }
.ww-signup-row button {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parch-warm);
  background: var(--plum);
  border: 1px solid var(--plum);
  padding: 0.78rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms linear;
}
.ww-signup-row button:hover { background: var(--plum-deep); }
.ww-signup-note { font-size: 0.84rem; color: var(--ink-soft); margin: 0.9rem 0 0; }

/* ---------------- footer ---------------- */
.ww-footer {
  background: var(--plum-deep);
  color: var(--parch);
  padding: 3.4rem 1.5rem 2.2rem;
}
.ww-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
.ww-footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--parch-warm);
  margin-bottom: 0.6rem;
}
.ww-footer-blurb { font-size: 0.92rem; line-height: 1.62; color: rgba(241,235,224,0.72); margin: 0 0 1rem; }
.ww-footer-legal { font-size: 0.82rem; color: rgba(241,235,224,0.55); margin: 0; }
.ww-footer h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-pale);
  margin: 0 0 1rem;
}
.ww-footer ul { list-style: none; margin: 0; padding: 0; font-size: 0.94rem; line-height: 2; }
.ww-footer ul a { color: var(--parch); text-decoration: none; }
.ww-footer ul a:hover { color: var(--moss-pale); }


/* ============================================================
   WORDPRESS SURFACES
   Everything below styles the templates rather than the
   homepage: the parent theme reset, single posts (which carry
   their own margin rail), archives, and the trust pages.
   ============================================================ */

/* ---------------- GeneratePress reset ---------------- */
.site-header,
.main-navigation,
.site-info,
#right-sidebar,
#left-sidebar { display: none !important; }
.site-content,
.container,
.grid-container { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.site-main { margin: 0 !important; }
.ww-main { display: block; }

/* ---------------- FTC disclosure ---------------- */
.ftc-disclosure {
  border-left: 3px solid var(--moss);
  background: var(--parch-warm);
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
}
.ftc-disclosure p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.ftc-disclosure a { color: var(--moss-deep); }

/* ---------------- single post ---------------- */
.ww-post {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}
.ww-breadcrumb {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.ww-breadcrumb a { color: var(--plum); text-decoration: none; }
.ww-breadcrumb a:hover { color: var(--moss-deep); }
.ww-post-head { max-width: 48rem; }
.ww-post-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-deep);
  text-decoration: none;
  margin-bottom: 0.9rem;
}
.ww-post-title {
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.ww-post-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  padding-bottom: 1.4rem;
  border-bottom: var(--rule);
}
.ww-post-meta a { color: var(--plum); }
.ww-post-cover { margin: 2rem 0 2.6rem; }
.ww-post-cover img { width: 100%; max-height: 34rem; object-fit: cover; }

/* the article carries the same two column reading structure as
   the homepage letter: body on the left, margin rail on the right. */
.ww-post-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: var(--reader-gap);
  align-items: start;
}
.ww-post-body { min-width: 0; }
.ww-post-body p,
.ww-post-body ul,
.ww-post-body ol { font-size: 1.075rem; line-height: 1.78; max-width: 40rem; }
.ww-post-body > p:first-of-type::first-letter,
.ww-post-body > .ftc-disclosure + p::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.9rem;
  line-height: 0.82;
  font-weight: 700;
  color: var(--plum);
  padding: 0.16rem 0.55rem 0 0;
}
.ww-post-body h2 {
  font-size: 1.6rem;
  margin: 2.4rem 0 0.9rem;
  padding-top: 1rem;
  border-top: var(--hair-soft);
  max-width: 40rem;
}
.ww-post-body h3 { font-size: 1.22rem; margin: 1.9rem 0 0.7rem; max-width: 40rem; }
.ww-post-body img { margin: 1.8rem 0; }
.ww-post-body blockquote {
  border-left: 3px solid var(--moss);
  margin: 1.8rem 0;
  padding: 0.3rem 0 0.3rem 1.3rem;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--plum);
  max-width: 40rem;
}
.ww-post-body a { color: var(--plum); text-underline-offset: 3px; }

/* the article rail: contents, then the author, then the section. */
.ww-post-rail {
  border-left: var(--rule);
  padding-left: 1.5rem;
  position: sticky;
  top: 1.5rem;
}
.ww-post-rail-block { margin-bottom: 2.2rem; }
.ww-post-rail-block:last-child { margin-bottom: 0; }
.ww-post-rail-head {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin-bottom: 1rem;
}
.ww-post-toc { list-style: none; margin: 0; padding: 0; counter-reset: wwtoc; }
.ww-post-toc li { counter-increment: wwtoc; margin-bottom: 0.6rem; padding-left: 1.6rem; position: relative; }
.ww-post-toc li::before {
  content: counter(wwtoc);
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--moss);
}
.ww-post-toc a {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--plum-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.ww-post-toc a:hover { border-bottom-color: var(--moss); }

.ww-post-author { display: block; }
.ww-post-author img,
.ww-post-author .ww-post-author-mark {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--moss);
  color: var(--parch-warm);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.ww-post-author h4 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.ww-post-author p { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 0.7rem; }

/* ---------------- related ---------------- */
.ww-related {
  max-width: var(--max-w);
  margin: 3.4rem auto 0;
  padding: 2.6rem 1.5rem 0;
  border-top: var(--rule);
}
.ww-related h2 { font-size: 1.45rem; margin-bottom: 1.6rem; }
.ww-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.ww-related-card { text-decoration: none; display: block; }
.ww-related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 0.7rem; }
.ww-related-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--plum-deep);
}
.ww-related-card:hover h3 { color: var(--moss-deep); }

/* ---------------- archive ---------------- */
.ww-archive-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.2rem 1.5rem 1.6rem;
  border-bottom: var(--rule);
}
.ww-archive-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 0.7rem; }
.ww-archive-count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0 0 0.8rem;
}
.ww-archive-desc { font-size: 1.02rem; color: var(--ink-soft); max-width: 42rem; margin: 0; }
.ww-archive-lede {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 0;
}
.ww-archive-lede-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
  padding-bottom: 2.6rem;
  border-bottom: var(--hair);
}
.ww-archive-lede-inner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ww-archive-lede h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); margin-bottom: 0.8rem; }
.ww-archive-lede h2 a { color: inherit; text-decoration: none; }
.ww-archive-lede p { font-size: 0.98rem; color: var(--ink-soft); margin: 0 0 1rem; }
.ww-archive-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.8rem;
}
.ww-archive-card { text-decoration: none; display: block; }
.ww-archive-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 0.75rem; }
.ww-archive-card-meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin-bottom: 0.35rem;
}
.ww-archive-card h2 { font-size: 1.1rem; line-height: 1.28; margin-bottom: 0.4rem; }
.ww-archive-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; line-height: 1.58; }
.ww-archive-empty {
  max-width: 40rem;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}
.ww-pagination {
  max-width: var(--max-w);
  margin: 1rem auto 4rem;
  padding: 0 1.5rem;
}
.ww-pagination .nav-links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ww-pagination .page-numbers {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--plum);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.45rem 0.85rem;
}
.ww-pagination .page-numbers.current,
.ww-pagination .page-numbers:hover { background: var(--plum); color: var(--parch-warm); border-color: var(--plum); }

/* ---------------- trust pages (page.php) ----------------
   The annotated treatment carried onto the legal pages: the
   contents live in the margin rail, the body keeps the running
   line numbers, and the identity paragraphs are ruled top and
   bottom rather than boxed. */
.ww-leaf {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}
.ww-leaf-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: var(--reader-gap);
  align-items: end;
  padding-bottom: 1.2rem;
  border-bottom: var(--rule);
  margin-bottom: 2.6rem;
}
.ww-leaf-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0 0 0.7rem;
}
.ww-leaf-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.ww-leaf-updated {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0;
  text-align: right;
}
.ww-leaf-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: var(--reader-gap);
  align-items: start;
}
.ww-leaf-body { min-width: 0; }
.ww-leaf-body p,
.ww-leaf-body li { font-size: 1.02rem; line-height: 1.75; max-width: 40rem; }
.ww-leaf-body h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 0.9rem;
  padding-top: 0.9rem;
  border-top: var(--hair-soft);
  max-width: 40rem;
  scroll-margin-top: 1.5rem;
}
.ww-leaf-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.ww-leaf-body h3 { font-size: 1.1rem; margin: 1.7rem 0 0.6rem; }
.ww-leaf-body a { color: var(--plum); }
/* identity paragraphs: ruled above and below, never a card */
.ww-leaf-body p:has(> strong:first-child) {
  border-top: 2px solid var(--plum);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  margin: 0 0 -1px;
  font-size: 0.98rem;
  background: var(--parch-warm);
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
.ww-leaf-body p:has(> strong:first-child) strong {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-deep);
  display: block;
  margin-bottom: 0.15rem;
}
.ww-leaf-rail {
  border-left: var(--rule);
  padding-left: 1.5rem;
  position: sticky;
  top: 1.5rem;
}
.ww-leaf-foot {
  max-width: var(--max-w);
  margin: 3.2rem auto 0;
  padding: 2.4rem 1.5rem 0;
  border-top: var(--rule);
}
.ww-leaf-foot h2 { font-size: 1.25rem; margin-bottom: 1.2rem; }
.ww-leaf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem 1.6rem; }
.ww-leaf-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--plum-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  transition: border-color 120ms linear;
}
.ww-leaf-link:hover { border-bottom-color: var(--moss); color: var(--moss-deep); }
.ww-leaf-note { font-size: 0.9rem; color: var(--ink-soft); margin: 1.6rem 0 0; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  :root { --rail-w: 17rem; --reader-gap: 2.4rem; }
  .ww-mosaic { grid-template-columns: repeat(3, 1fr); }
  .ww-bysection { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .ww-masthead-inner { grid-template-columns: 1fr; gap: 0.6rem; }
  .ww-masthead-meta, .ww-masthead-meta.right { text-align: center; }

  /* the rail stops being a column and becomes a block below the
     text. it keeps its pictures: it is never reduced to a list. */
  .ww-reader,
  .ww-counter-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .ww-rail {
    position: static;
    border-left: 0;
    border-top: var(--rule);
    padding-left: 0;
    padding-top: 1.6rem;
  }
  .ww-rail .ww-note {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding-left: 2.4rem;
  }
  .ww-rail .ww-note-num { left: 0; top: 0; }
  .ww-note-figure { margin-bottom: 0; }
  .ww-counter-rail { border-left: 0; border-top: 1px solid rgba(216,220,198,0.34); padding-left: 0; padding-top: 1.6rem; }
  .ww-counter-rail .ww-note { padding-left: 2.4rem; }
  .ww-counter-rail .ww-note-num { left: 0; top: 0; }

  .ww-essay { grid-template-columns: 1fr; padding-top: 2.4rem; }
  .ww-catgrid { grid-template-columns: 1fr; }
  .ww-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 13rem; }
  .ww-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .ww-band, .ww-band-deep, .ww-counter { padding: 3rem 1.15rem; }
  .ww-ruled { padding-left: 1.9rem; }
  .ww-ruled .ww-prose > p::before { left: -1.9rem; width: 1.2rem; }
  .ww-band-head { grid-template-columns: 1fr; align-items: start; }
  .ww-textlink { align-self: start; }
  .ww-hero-plate { padding: 3.4rem 1.15rem 1.9rem; }
  .ww-nav-menu { justify-content: flex-start; gap: 0 1.1rem; }
  .ww-mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .ww-cell.big, .ww-cell.tall, .ww-cell.wide { grid-column: auto; grid-row: auto; }
  .ww-cell-figure { aspect-ratio: 4 / 3; flex: 0 0 auto; }
  .ww-essay-strip { grid-template-columns: 1fr; }
  .ww-bysection { grid-template-columns: 1fr; }
  .ww-rail .ww-note, .ww-counter-rail .ww-note { grid-template-columns: 1fr; }
  .ww-catcard { grid-template-columns: 6.5rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------- responsive: wordpress surfaces ---------------- */
@media (max-width: 1080px) {
  .ww-related-grid,
  .ww-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* every rail degrades to a block under the body, never squeezed */
  .ww-post-reader,
  .ww-leaf-reader,
  .ww-leaf-head { grid-template-columns: 1fr; gap: 2.2rem; }
  .ww-post-rail,
  .ww-leaf-rail {
    position: static;
    border-left: 0;
    border-top: var(--rule);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  .ww-leaf-head { align-items: start; }
  .ww-leaf-updated { text-align: left; }
  .ww-archive-lede-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .ww-leaf-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ww-post, .ww-leaf, .ww-archive-head, .ww-archive-grid, .ww-related { padding-left: 1.15rem; padding-right: 1.15rem; }
  .ww-related-grid,
  .ww-archive-grid,
  .ww-leaf-links { grid-template-columns: 1fr; }
  .ww-post-body > p:first-of-type::first-letter,
  .ww-post-body > .ftc-disclosure + p::first-letter { font-size: 3.2rem; }
}
