/*
Theme Name:   A Home Filled With Love Child
Theme URI:    https://homefilledwithlove.org
Description:  Ribbon Board / Pinned Memo editorial child theme for A Home Filled With Love. Rosewood, cream and indigo, Brygada 1918 with Libre Franklin, print-mat photography held down by grosgrain ribbon and pins.
Author:       Tessa Marchetti
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   A HOME FILLED WITH LOVE — DESIGN SYSTEM
   Prototype  : Ribbon Board / Pinned Memo
   Palette    : rosewood #8C4A52 / cream #F6EFE8 / indigo #37476B
   Fonts      : Brygada 1918 (display, italic carries the "handwritten"
                accent) + Libre Franklin (body)
   Dials      : VARIANCE 7 / MOTION 1 / DENSITY 5
   Theme      : light locked (print emulating, no dark mode)
   Shape lock : everything is square. The ONLY round thing is a pin head.
   Colour lock: rosewood is the single accent. Indigo is not a second accent,
                it is the canvas of the dark zones and the footer.
   ⚠ Never put rosewood text on indigo (contrast 1.41). Use --color-accent-soft.
   ============================================================ */

:root {
  --color-primary: #37476B;        /* indigo — dark zone canvas */
  --color-primary-dark: #2A3552;   /* deepest indigo — footer, pin heads */
  --color-primary-soft: #C8CEDC;   /* secondary text on indigo */
  --color-bg: #F6EFE8;             /* cream paper */
  --color-bg-deep: #EDE3D9;        /* alternating light band */
  --color-accent: #8C4A52;         /* rosewood — the single accent */
  --color-accent-soft: #D3AAAE;    /* dusty rose — for use ON indigo */
  --color-accent-deep: #6E3840;    /* ribbon shadow edge */
  --color-charcoal: #3B353E;
  --color-ink: #26232B;            /* cool-cast near black, not espresso */
  --color-muted: #6E6470;
  --color-line: #DCCFC6;
  --color-white: #FFFFFF;          /* the photo mat */

  --font-serif: 'Brygada 1918', Georgia, 'Times New Roman', serif;
  --font-sans: 'Libre Franklin', 'Segoe UI', sans-serif;

  --max-w: 1240px;
  --max-w-wide: 1440px;
  --max-w-narrow: 760px;

  /* Shape lock: square everywhere. Kept as vars so inherited rules obey. */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
}

/* ============================================================
   GLOBAL
   ============================================================ */
body, .entry-content, .widget {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0.003em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.16;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; margin-bottom: 0.6em; }
h3 { font-size: 1.28rem; margin-top: 1.9em; margin-bottom: 0.5em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--color-accent); }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover { color: var(--color-accent-deep); text-decoration-color: var(--color-accent); }
p { margin: 0 0 1.15em; }

blockquote {
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-deep);
  padding: 1.4rem 1.6rem;
  margin: 2.2em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--color-ink);
  border-radius: 0;
}

hr { border: none; height: 1px; background: var(--color-line); margin: 3em 0; }
img { max-width: 100%; height: auto; border-radius: 0; }
figure { margin: 2em 0; }
figcaption { font-size: 0.9rem; color: var(--color-muted); margin-top: 0.5rem; font-style: italic; }

/* The eyebrow is deliberately NOT an uppercase tracked micro label on this
   site. Every sibling site has that rhythm; here the accent is a Brygada
   italic word instead. Kept for archive/single templates that reference it. */
.tb-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-accent);
  font-weight: 500;
}

/* ============================================================
   SIGNATURE DEVICE 1 — the print mat
   Even white card stock on all four sides plus a hairline rosewood
   keyline. Deliberately NOT a polaroid (no thickened bottom lip).
   ============================================================ */
.hl-mat {
  background: var(--color-white);
  padding: 10px;
  display: block;
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1px rgba(140, 74, 82, 0.24),
    0 7px 20px -10px rgba(55, 71, 107, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hl-mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: var(--color-bg-deep);
}
/* placeholder when a post genuinely has no image: paper, never an empty box */
.hl-mat.is-empty {
  min-height: 150px;
  background:
    repeating-linear-gradient(135deg, rgba(140,74,82,.07) 0 6px, transparent 6px 12px),
    var(--color-bg-deep);
}

/* ============================================================
   SIGNATURE DEVICE 2 — grosgrain ribbon strap
   ============================================================ */
.hl-strap {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px),
    var(--color-accent);
  border-top: 1px solid var(--color-accent-deep);
  border-bottom: 1px solid var(--color-accent-deep);
}

/* ============================================================
   SIGNATURE DEVICE 3 — the pin
   The only circle in the entire design system.
   ============================================================ */
.hl-pin {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, #8595bb 0 16%, var(--color-primary) 46%, var(--color-primary-dark) 100%);
  box-shadow: 0 2px 3px rgba(38, 35, 43, 0.5);
  display: inline-block;
}
.hl-pin--num {
  width: 26px; height: 26px;
  font-family: var(--font-sans);
  font-size: 0.66rem; font-weight: 700; color: #EFE3E4;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   SIGNATURE DEVICE 4 — ribbon tail tab (swallowtail notch, no text)
   ============================================================ */
.hl-tab {
  width: 36px; height: 10px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%);
  display: block;
}

/* ============================================================
   LAYOUT RESET — force block level so sections stack vertically
   (overrides GeneratePress .site-content flex behaviour)
   ============================================================ */
.tb-main { display: block !important; width: 100%; }
.tb-main > * { width: 100%; }  /* do NOT add display:block: it flattens child grids */

/* ============================================================
   MASTHEAD — left nameplate, right date, nav on a rosewood ribbon
   ============================================================ */
.tb-masthead { background: var(--color-bg); padding: 1.5rem 0 1.15rem; border: none; }
.tb-masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.6rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.tb-masthead-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  color: var(--color-ink);
  letter-spacing: -0.015em;
  line-height: 1;
  display: block;
  text-decoration: none;
}
.tb-masthead-title:hover { color: var(--color-accent-deep); }
.tb-masthead-tagline {
  font-size: 0.83rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  font-family: var(--font-sans);
}
.tb-masthead-meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-muted);
  white-space: nowrap;
  padding-bottom: 0.2rem;
}
.tb-masthead-meta.right { text-align: right; }

/* Navigation sits ON the ribbon */
.tb-nav {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px),
    var(--color-accent);
  border-top: 1px solid var(--color-accent-deep);
  border-bottom: 1px solid var(--color-accent-deep);
  width: 100%;
}
.tb-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.6rem; }
.tb-nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.55rem;
  min-height: 46px; flex-wrap: wrap;
}
.tb-nav-menu li { margin: 0; }
.tb-nav-menu a {
  color: #F7EDEC;
  font-family: var(--font-sans);
  font-size: 0.845rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.1rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.tb-nav-menu a:hover { color: #FFF; border-bottom-color: #F7EDEC; }

/* ============================================================
   SECTION HEAD — a full width ribbon strap carrying the title.
   (Not a plaque, not a sign, not an eyebrow stack.)
   ============================================================ */
.tb-section { max-width: var(--max-w); margin: 0 auto; padding: 3.4rem 1.6rem 3.8rem; }
.tb-section.bg-deep {
  max-width: none;
  background: var(--color-bg-deep);
  padding-left: max(1.6rem, calc((100vw - var(--max-w)) / 2 + 1.6rem));
  padding-right: max(1.6rem, calc((100vw - var(--max-w)) / 2 + 1.6rem));
}
.hl-sechead { margin-bottom: 2.1rem; }
.hl-sechead-strap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.62rem 1.5rem;
}
.hl-sechead-strap h2 {
  color: #F9F0EE;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  font-weight: 600;
  margin: 0;
}
.hl-sechead-strap h2 em { font-style: italic; font-weight: 500; color: #FBE6E4; }
.hl-sechead-more {
  color: #F7E6E4;
  font-family: var(--font-sans);
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 1px;
}
.hl-sechead-more:hover { color: #FFF; border-bottom-color: #FFF; }

/* ============================================================
   1. HERO — the board
   ============================================================ */
.hl-hero { max-width: var(--max-w); margin: 0 auto; padding: 2.9rem 1.6rem 3.6rem; }
.hl-hero-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: 2.6rem; align-items: start; }
.hl-hero-left { position: relative; }
.hl-hero-photo { position: relative; overflow: hidden; }
.hl-hero-photo .hl-mat { padding: 12px; }
.hl-hero-photo .hl-mat img { aspect-ratio: 16 / 7.4; }

/* the crossed ribbon lattice: one run across, one corner sash */
.hl-cross { position: absolute; z-index: 3; }
.hl-cross--h { left: 0; right: 0; top: 38px; height: 17px; }
.hl-cross--d { left: -64px; top: 6px; width: 250px; height: 15px; transform: rotate(37deg); }
.hl-pin-cross { position: absolute; left: 74px; top: 38px; z-index: 4; width: 17px; height: 17px; }

/* the single rotated snapshot on the whole homepage */
.hl-snap { position: absolute; right: -32px; top: 64px; width: 152px; z-index: 5; transform: rotate(-1.6deg); }
.hl-snap .hl-pin { position: absolute; left: 50%; top: -7px; margin-left: -7px; z-index: 2; }
.hl-snap .hl-mat img { aspect-ratio: 1 / 1; }

/* the memo card that overlaps the photo */
.hl-memo {
  background: var(--color-bg);
  box-shadow: 0 12px 30px -14px rgba(55,71,107,.55), inset 0 0 0 1px rgba(220,207,198,.9);
  padding: 1.7rem 1.9rem 1.55rem;
  position: relative;
  border-radius: 0;
}
.hl-memo--hero { width: 78%; margin: -72px 0 0 34px; z-index: 6; }
.hl-memo--hero h1 { font-size: clamp(1.6rem, 3.1vw, 2.12rem); font-weight: 600; margin: 0 0 0.55rem; }
.hl-memo--hero h1 a { color: inherit; text-decoration: none; }
.hl-memo--hero h1 a:hover { color: var(--color-accent-deep); }
.hl-memo--hero p { font-size: 0.99rem; color: var(--color-charcoal); margin-bottom: 0.9rem; }
.hl-kicker {
  font-family: var(--font-serif); font-style: italic; font-size: 0.95rem;
  color: var(--color-accent); display: block; margin-bottom: 0.35rem; text-decoration: none;
}
.hl-readon {
  font-family: var(--font-sans); font-size: 0.83rem; font-weight: 600;
  color: var(--color-accent); text-decoration: none;
  border-bottom: 1.5px solid var(--color-accent-soft); padding-bottom: 2px;
}
.hl-readon:hover { border-bottom-color: var(--color-accent); }

/* hero side rail: pinned mini snapshots */
.hl-hero-side { padding-top: 0.4rem; }
.hl-side-title {
  font-family: var(--font-serif); font-size: 1.28rem; font-weight: 600;
  padding-bottom: 0.7rem; border-bottom: 1.5px solid var(--color-accent); margin: 0 0 1.15rem;
}
.hl-side-title em { font-style: italic; color: var(--color-accent); font-weight: 500; }
.hl-side-item { display: grid; grid-template-columns: 98px 1fr; gap: 1rem; margin-bottom: 1.15rem; position: relative; }
.hl-side-item .hl-mat { padding: 7px; }
.hl-side-item .hl-mat img { aspect-ratio: 1 / 1; }
.hl-side-item .hl-pin { position: absolute; left: 44px; top: -7px; z-index: 2; }
.hl-side-item h4 { font-size: 1.02rem; font-weight: 600; line-height: 1.28; margin: 0 0 0.3rem; }
.hl-side-item h4 a { color: inherit; text-decoration: none; }
.hl-side-item h4 a:hover { color: var(--color-accent); }
.hl-side-meta { font-family: var(--font-sans); font-size: 0.75rem; color: var(--color-muted); }

/* ============================================================
   2. A NOTE FROM THE AUTHOR — rotated, double pinned
   ============================================================ */
.hl-note-band { background: var(--color-bg-deep); padding: 3.5rem 1.6rem; }
.hl-note-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center;
}
.hl-portrait .hl-mat { padding: 12px; }
.hl-portrait .hl-mat img { aspect-ratio: 4 / 5; }
.hl-note-memo {
  transform: rotate(-1.2deg);
  background: var(--color-bg);
  box-shadow: 0 14px 34px -16px rgba(55,71,107,.6), inset 0 0 0 1px rgba(220,207,198,.95);
  padding: 2.1rem 2.3rem 1.9rem;
  position: relative;
}
.hl-note-memo .hl-pin { position: absolute; top: -7px; }
.hl-note-memo .hl-pin:nth-of-type(1) { left: 16%; }
.hl-note-memo .hl-pin:nth-of-type(2) { right: 16%; }
.hl-note-memo h2 { font-size: clamp(1.35rem, 2.4vw, 1.62rem); margin: 0 0 0.75rem; }
.hl-note-memo p { font-size: 1.005rem; color: var(--color-charcoal); }
.hl-sig { font-family: var(--font-serif); font-style: italic; font-size: 1.16rem; color: var(--color-accent); margin-top: 0.9rem; }

/* ============================================================
   3. THE BOARD — pinned category cards tucked under ribbons
   ============================================================ */
.hl-board-row {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding-top: 30px; margin-bottom: 2.5rem;
}
.hl-board-row:last-child { margin-bottom: 0; }
.hl-board-row::before {
  content: ""; position: absolute; left: -4vw; right: -4vw; top: 25px; height: 17px; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px),
    var(--color-accent);
  border-top: 1px solid var(--color-accent-deep);
  border-bottom: 1px solid var(--color-accent-deep);
}
.hl-card { position: relative; z-index: 1; display: block; text-decoration: none; color: inherit; }
.hl-card .hl-pin--num { position: absolute; left: 50%; margin-left: -13px; top: 20px; z-index: 3; }
.hl-card .hl-mat { padding: 9px; }
.hl-board-row--tall .hl-mat img { aspect-ratio: 4 / 5; }
.hl-board-row--short .hl-mat img { aspect-ratio: 4 / 3; }
.hl-card h3 { font-size: 1.09rem; font-weight: 600; margin: 0.72rem 0 0; line-height: 1.2; }
.hl-card .hl-count { font-family: var(--font-sans); font-size: 0.74rem; color: var(--color-muted); margin-top: 0.22rem; }
.hl-card:hover .hl-mat {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(140,74,82,.4), 0 14px 26px -12px rgba(55,71,107,.6);
}
.hl-card:hover h3 { color: var(--color-accent); }

/* ============================================================
   4. PULL QUOTE — indigo dark zone one
   ============================================================ */
.hl-quote-band { background: var(--color-primary); color: #F3EEE9; position: relative; padding: 3.9rem 1.6rem 3.4rem; }
.hl-strap-top { position: absolute; left: 0; right: 0; top: 0; height: 14px; }
.hl-quote-inner { max-width: 830px; margin: 0 auto; }
.hl-quote-inner blockquote {
  margin: 0; padding: 0; border: none; background: transparent;
  font-family: var(--font-serif); font-size: clamp(1.24rem, 2.5vw, 1.72rem);
  font-style: italic; font-weight: 400; line-height: 1.4; color: #FAF4EF;
}
.hl-quote-src { margin-top: 1.2rem; font-family: var(--font-sans); font-size: 0.83rem; color: var(--color-accent-soft); }
.hl-quote-src a { color: var(--color-accent-soft); text-decoration-color: rgba(211,170,174,.55); }
.hl-quote-src a:hover { color: #FFF; }

/* ============================================================
   5. MOSAIC — asymmetric, dense
   ============================================================ */
.hl-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; grid-auto-flow: dense; }
.hl-tile { display: block; text-decoration: none; color: inherit; }
.hl-tile .hl-mat { padding: 9px; }
.hl-tile .hl-mat img { aspect-ratio: 4 / 3; }
.hl-tile h3 { font-size: 1.03rem; font-weight: 600; margin: 0.65rem 0 0; line-height: 1.25; }
.hl-tile .hl-meta { font-family: var(--font-sans); font-size: 0.73rem; color: var(--color-muted); margin-top: 0.28rem; }
.hl-tile p { font-size: 0.9rem; color: var(--color-charcoal); margin: 0.4rem 0 0; }
.hl-tile.big { grid-column: span 2; grid-row: span 2; }
.hl-tile.big .hl-mat img { aspect-ratio: 16 / 11; }
.hl-tile.big h3 { font-size: clamp(1.16rem, 2.2vw, 1.42rem); margin-top: 0.8rem; }
.hl-tile.tall { grid-row: span 2; }
.hl-tile.tall .hl-mat img { aspect-ratio: 3 / 4.4; }
.hl-tile.wide { grid-column: span 2; }
.hl-tile.wide .hl-mat img { aspect-ratio: 16 / 7; }
.hl-tile:hover .hl-mat {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(140,74,82,.4), 0 14px 26px -12px rgba(55,71,107,.6);
}
.hl-tile:hover h3 { color: var(--color-accent); }

/* ============================================================
   6. BY SECTION — thumbnail rows on deep cream
   ============================================================ */
.hl-bysection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.3rem 2.6rem; }
.hl-bs-block h3 {
  font-size: 1.13rem; font-weight: 600; margin: 0 0 0.95rem;
  padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--color-accent);
}
.hl-bs-block h3 a { color: inherit; text-decoration: none; }
.hl-bs-block h3 a:hover { color: var(--color-accent); }
.hl-bs-row { display: grid; grid-template-columns: 74px 1fr; gap: 0.85rem; margin-bottom: 0.85rem; align-items: start; }
.hl-bs-row .hl-mat { padding: 6px; }
.hl-bs-row .hl-mat img { aspect-ratio: 1 / 1; }
.hl-bs-row h4 { font-size: 0.925rem; font-weight: 500; line-height: 1.32; margin: 0; }
.hl-bs-row h4 a { color: inherit; text-decoration: none; }
.hl-bs-row h4 a:hover { color: var(--color-accent); }
.hl-bs-row .hl-d { font-family: var(--font-sans); font-size: 0.71rem; color: var(--color-muted); margin-top: 0.2rem; }
.hl-bs-more {
  font-family: var(--font-sans); font-size: 0.76rem; font-weight: 600;
  color: var(--color-accent); text-decoration: none;
  border-bottom: 1px solid var(--color-accent-soft); padding-bottom: 1px;
}

/* ============================================================
   7. NEWSLETTER — indigo dark zone two
   ============================================================ */
.hl-news-band { background: var(--color-primary); color: #F3EEE9; padding: 3.4rem 1.6rem; position: relative; }
.hl-news-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.hl-news-inner h3 { color: #FAF4EF; font-size: clamp(1.32rem, 2.4vw, 1.62rem); margin: 0 0 0.6rem; }
.hl-news-inner h3 em { font-style: italic; color: var(--color-accent-soft); font-weight: 500; }
.hl-news-inner p { color: var(--color-primary-soft); font-size: 0.96rem; }
.hl-news-form { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.3rem; flex-wrap: wrap; }
.hl-news-form input {
  font-family: var(--font-sans); font-size: 0.93rem; padding: 0.72rem 0.95rem; min-width: 290px;
  background: var(--color-white); color: var(--color-ink);
  border: 1px solid var(--color-accent-soft); border-radius: 0;
}
.hl-news-form input::placeholder { color: var(--color-muted); }
.hl-news-form input:focus { outline: 2px solid var(--color-accent-soft); outline-offset: 1px; }
.hl-news-form button {
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.72rem 1.5rem; background: var(--color-accent); color: #FFF;
  border: 1px solid var(--color-accent-soft); border-radius: 0; cursor: pointer;
}
.hl-news-form button:hover { background: var(--color-accent-deep); }
.hl-news-note { font-size: 0.76rem; color: var(--color-primary-soft); margin-top: 0.95rem; }
.hl-news-note a { color: var(--color-primary-soft); text-decoration-color: rgba(200,206,220,.5); }

/* ============================================================
   8. SINGLE POST
   ============================================================ */
.single .entry-content,
.page .entry-content {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}
.single .entry-content > p:first-of-type { font-size: 1.2rem; line-height: 1.65; color: var(--color-ink); }
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  float: left;
  line-height: 0.9;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--color-accent);
}

.tb-post-header { max-width: var(--max-w-narrow); margin: 2.5rem auto 1.5rem; padding: 0 1.6rem; }
.tb-breadcrumb { font-family: var(--font-sans); font-size: 0.78rem; color: var(--color-muted); margin-bottom: 1rem; }
.tb-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.tb-breadcrumb a:hover { color: var(--color-accent); }

/* category marker on a post: ribbon tail + name. No pill (shape lock). */
.tb-post-cat {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-serif); font-style: italic; font-size: 1rem;
  color: var(--color-accent); text-decoration: none; margin-bottom: 0.9rem;
  background: none; padding: 0; border-radius: 0;
}
.tb-post-cat::before {
  content: ""; width: 30px; height: 9px; background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%); flex: none;
}
.tb-post-cat:hover { color: var(--color-accent-deep); background: none; }

.tb-post-title { font-size: clamp(2rem, 3.8vw, 2.85rem); font-weight: 600; line-height: 1.15; margin: 0.3rem 0 1.2rem; }
.tb-post-meta {
  font-family: var(--font-sans); font-size: 0.86rem; color: var(--color-muted);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center;
}
.tb-post-meta strong { color: var(--color-ink); font-weight: 600; }

/* post cover gets the print mat, ribbon and pin */
.tb-post-cover { max-width: var(--max-w); margin: 2rem auto 3rem; padding: 0 1.6rem; position: relative; }
.tb-post-cover .hl-mat { padding: 12px; }
.tb-post-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 0; }
.tb-post-cover .hl-cross--h { left: 1.6rem; right: 1.6rem; top: 34px; height: 16px; }
.tb-post-cover .hl-pin-cross { left: 90px; top: 33px; }

.ftc-disclosure {
  max-width: var(--max-w-narrow);
  margin: 0 auto 2.5rem;
  background: var(--color-bg-deep);
  border-left: 5px solid var(--color-accent);
  padding: 1rem 1.25rem;
  border-radius: 0;
  font-size: 0.93rem;
  color: var(--color-charcoal);
}
.ftc-disclosure p { margin: 0; }
.entry-content .ftc-disclosure { margin-left: 0; margin-right: 0; }

.single .entry-content blockquote {
  border-left: none; background: transparent; text-align: left;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.55rem); line-height: 1.45;
  color: var(--color-accent-deep);
  padding: 1.8rem 0; margin: 2.5rem 0;
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  border-radius: 0;
}

.tb-inline-cta { background: var(--color-bg-deep); border-radius: 0; padding: 1.6rem 1.4rem; margin: 2.5rem 0; }
.tb-inline-cta strong { font-family: var(--font-serif); font-size: 1.15rem; display: block; margin-bottom: 0.4rem; }
.tb-inline-cta p { font-size: 0.92rem; color: var(--color-muted); margin: 0 0 0.8rem; }
.tb-inline-cta a {
  display: inline-block; background: var(--color-accent); color: #FFF;
  padding: 0.55rem 1.2rem; border-radius: 0; text-decoration: none;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
}
.tb-inline-cta a:hover { background: var(--color-accent-deep); color: #FFF; }

/* author bio: a memo card held by a vertical ribbon on its left edge */
.tb-author-bio {
  max-width: var(--max-w-narrow);
  margin: 4rem auto 2rem;
  padding: 2rem 2rem 2rem 2.6rem;
  background: var(--color-bg-deep);
  border: none;
  border-left: 8px solid var(--color-accent);
  border-radius: 0;
  box-shadow: 0 12px 28px -16px rgba(55,71,107,.5);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.6rem;
  align-items: start;
}
.tb-author-avatar {
  width: 84px; height: 84px; border-radius: 0;
  background: var(--color-primary); color: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.9rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.tb-author-bio .tb-eyebrow { margin-bottom: 0.3rem; display: block; }
.tb-author-bio h4 { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 600; }
.tb-author-bio p { font-size: 0.95rem; color: var(--color-charcoal); margin: 0 0 0.4rem; line-height: 1.6; }
.tb-author-bio a { font-family: var(--font-sans); font-size: 0.85rem; }

.tb-related { max-width: var(--max-w); margin: 4rem auto 3rem; padding: 0 1.6rem; }
.tb-related h3 {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 1.5rem;
  padding-bottom: 0.6rem; border-bottom: 1.5px solid var(--color-accent);
}
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tb-related-card { text-decoration: none; color: inherit; display: block; }
.tb-related-card .tb-related-cover { margin-bottom: 0.8rem; }
.tb-related-card .tb-related-cover img { aspect-ratio: 4 / 3; }
.tb-related-card .tb-related-title { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.3; margin: 0; font-weight: 600; }
.tb-related-card:hover .tb-related-title { color: var(--color-accent); }
.tb-related-card:hover .hl-mat {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(140,74,82,.4), 0 14px 26px -12px rgba(55,71,107,.6);
}

/* ============================================================
   9. ARCHIVE — left aligned ribbon header, mat cards
   ============================================================ */
.tb-archive-hero {
  background: var(--color-bg-deep);
  padding: 3.2rem 1.6rem 2.9rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}
.tb-archive-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.tb-archive-hero .hl-tab { margin-bottom: 0.85rem; }
.tb-archive-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; margin: 0 0 0.6rem; }
.tb-archive-hero p { max-width: 640px; margin: 0; font-size: 1.02rem; color: var(--color-charcoal); line-height: 1.6; }

.tb-archive-grid {
  max-width: var(--max-w); margin: 3rem auto; padding: 0 1.6rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.tb-archive-card { text-decoration: none; color: inherit; display: block; }
.tb-archive-card .tb-archive-cover { margin-bottom: 1rem; }
.tb-archive-card .tb-archive-cover img { aspect-ratio: 4 / 3; }
.tb-archive-card .tb-archive-meta {
  font-family: var(--font-serif); font-style: italic; font-size: 0.92rem;
  color: var(--color-accent); margin-bottom: 0.35rem; text-transform: none; letter-spacing: 0;
}
.tb-archive-card .tb-archive-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 0 0 0.5rem; }
.tb-archive-card .tb-archive-excerpt { font-size: 0.94rem; color: var(--color-charcoal); line-height: 1.55; }
.tb-archive-card:hover .tb-archive-title { color: var(--color-accent); }
.tb-archive-card:hover .hl-mat {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(140,74,82,.4), 0 14px 26px -12px rgba(55,71,107,.6);
}
.tb-archive-feature { max-width: var(--max-w); margin: 3rem auto 0; padding: 0 1.6rem; }

/* ============================================================
   10. TRUST PAGES — "The Notice Board" (page.php)
   ============================================================ */
.hl-notice-main { padding-bottom: 3.5rem; }

/* header: an indigo ribbon with a cream memo card pinned across it */
.hl-notice-head { position: relative; padding: 3.4rem 1.6rem 0; margin-bottom: 2.6rem; }
.hl-notice-ribbon {
  position: absolute; left: 0; right: 0; top: 96px; height: 34px; z-index: 1;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.11) 0 1px, rgba(0,0,0,.08) 1px 2px, transparent 2px 4px),
    var(--color-primary);
  border-top: 1px solid var(--color-primary-dark);
  border-bottom: 1px solid var(--color-primary-dark);
}
.hl-notice-card {
  position: relative; z-index: 2;
  max-width: var(--max-w-narrow); margin: 0 auto;
  background: var(--color-bg);
  box-shadow: 0 16px 36px -18px rgba(55,71,107,.6), inset 0 0 0 1px rgba(220,207,198,.95);
  padding: 2rem 2.2rem 1.7rem;
}
.hl-notice-card .hl-pin { position: absolute; top: -7px; }
.hl-notice-card .hl-pin:nth-of-type(1) { left: 13%; }
.hl-notice-card .hl-pin:nth-of-type(2) { right: 13%; }
.hl-notice-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; margin: 0; line-height: 1.12; }
.hl-notice-updated {
  font-family: var(--font-sans); font-size: 0.78rem; color: var(--color-muted);
  margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--color-line);
}

/* table of contents: a two column grid of pinned paper chits */
.hl-notice-toc { max-width: var(--max-w-narrow); margin: 0 auto 2.8rem; padding: 0 1.6rem; }
.hl-notice-toc-title { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; color: var(--color-accent); margin-bottom: 0.85rem; }
.hl-notice-toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.2rem; }
.hl-notice-toc li { margin: 0; }
.hl-notice-toc a {
  display: flex; align-items: flex-start; gap: 0.6rem;
  background: var(--color-bg-deep);
  padding: 0.55rem 0.75rem 0.5rem;
  font-family: var(--font-sans); font-size: 0.86rem; line-height: 1.35;
  color: var(--color-ink); text-decoration: none;
  border-bottom: 2px solid var(--color-accent-soft);
  box-shadow: 0 4px 10px -7px rgba(55,71,107,.6);
}
.hl-notice-toc a::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 0.35rem;
  background: radial-gradient(circle at 33% 28%, #8595bb 0 16%, var(--color-primary) 46%, var(--color-primary-dark) 100%);
}
.hl-notice-toc a:hover { border-bottom-color: var(--color-accent); color: var(--color-accent-deep); }

/* body */
.hl-notice-body { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.6rem; font-size: 17.5px; line-height: 1.78; }
.hl-notice-body h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600;
  margin: 2.6rem 0 0.7rem; padding-top: 0.2rem; position: relative;
}
.hl-notice-body h2::before {
  content: ""; display: block; width: 36px; height: 10px; margin-bottom: 0.7rem;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%);
}
.hl-notice-body h3 { font-size: 1.16rem; margin: 1.9rem 0 0.5rem; }
.hl-notice-body ul, .hl-notice-body ol { padding-left: 1.15rem; margin: 0 0 1.2em; }
.hl-notice-body li { margin-bottom: 0.4em; }
.hl-notice-body a { font-weight: 500; }

/* identity block: a card held by a vertical ribbon on its left edge */
.hl-notice-body > p:has(> strong:first-child) {
  background: var(--color-white);
  border-left: 6px solid var(--color-accent);
  padding: 0.85rem 1.1rem;
  margin: 0.5rem 0 0.6rem;
  font-size: 0.97rem;
  box-shadow: 0 8px 18px -14px rgba(55,71,107,.7), inset 0 0 0 1px rgba(220,207,198,.8);
}
.hl-notice-body > p:has(> strong:first-child) > strong {
  font-family: var(--font-sans); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary);
  display: block; margin-bottom: 0.15rem;
}

/* footer cross links: pinned chits on a ribbon */
.hl-notice-foot { max-width: var(--max-w-narrow); margin: 3.4rem auto 0; padding: 0 1.6rem; }
.hl-notice-foot-title { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; margin: 0 0 1.4rem; }
.hl-notice-foot-title em { font-style: italic; color: var(--color-accent); font-weight: 500; }
.hl-notice-links { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 1rem; padding-top: 26px; }
.hl-notice-links::before {
  content: ""; position: absolute; left: -1.6rem; right: -1.6rem; top: 20px; height: 15px; z-index: 1;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px),
    var(--color-accent);
  border-top: 1px solid var(--color-accent-deep);
  border-bottom: 1px solid var(--color-accent-deep);
}
.hl-notice-link {
  position: relative; z-index: 2;
  background: var(--color-bg-deep);
  padding: 1.5rem 0.85rem 1rem;
  text-align: center;
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600; line-height: 1.25;
  color: var(--color-ink); text-decoration: none;
  box-shadow: 0 8px 18px -12px rgba(55,71,107,.6), inset 0 0 0 1px rgba(220,207,198,.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hl-notice-link::before {
  content: ""; position: absolute; left: 50%; margin-left: -7px; top: -7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, #8595bb 0 16%, var(--color-primary) 46%, var(--color-primary-dark) 100%);
  box-shadow: 0 2px 3px rgba(38,35,43,.5);
}
.hl-notice-link:hover { transform: translateY(-2px); color: var(--color-accent-deep); box-shadow: 0 14px 24px -14px rgba(55,71,107,.7), inset 0 0 0 1px rgba(140,74,82,.35); }
.hl-notice-note { font-size: 0.9rem; color: var(--color-muted); margin-top: 1.6rem; }

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer, .site-info {
  background: var(--color-primary-dark);
  color: #EFE9E3;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.site-info a { color: #EFE9E3; text-decoration: underline; }
.site-info a:hover { color: var(--color-accent-soft); }
.footer-widgets, .site-info { padding: 2.5rem 1.6rem; }

/* ============================================================
   12. READING PROGRESS BAR (pure CSS, scroll driven, no JS)
   ============================================================ */
@supports (animation-timeline: scroll()) {
  .tb-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: var(--color-accent);
    transform-origin: left; transform: scaleX(0);
    animation: tb-progress linear;
    animation-timeline: scroll(root block);
    z-index: 9999;
  }
  @keyframes tb-progress { to { transform: scaleX(1); } }
}

/* ============================================================
   13. MOTION 1 — reduced motion collapses everything
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hl-bysection { grid-template-columns: repeat(2, 1fr); }
  .tb-related-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hl-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hl-memo--hero { width: calc(100% - 20px); margin: -46px 0 0 10px; padding: 1.35rem 1.4rem; }
  .hl-snap { display: none; }
  .hl-note-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hl-portrait { max-width: 230px; }
  .hl-board-row { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .hl-mosaic { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .hl-tile.big, .hl-tile.wide { grid-column: span 2; }
  .hl-tile.big, .hl-tile.tall { grid-row: auto; }
  .hl-tile.tall .hl-mat img { aspect-ratio: 4 / 3; }
  .hl-notice-links { grid-template-columns: repeat(2, 1fr); }
  .tb-masthead-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .tb-masthead-meta.right { text-align: left; }
  .tb-nav-menu { gap: 0.55rem 1.1rem; padding: 0.5rem 0; min-height: 0; }
  .hl-news-form input, .hl-news-form button { width: 100%; min-width: 0; }
}

@media (max-width: 700px) {
  .hl-bysection { grid-template-columns: 1fr; gap: 2rem; }
  .tb-related-grid { grid-template-columns: 1fr; }
  .tb-archive-grid { grid-template-columns: 1fr; }
  .hl-notice-toc ul { grid-template-columns: 1fr; }
  .tb-author-bio { grid-template-columns: 1fr; }
  .tb-author-avatar { width: 72px; height: 72px; font-size: 1.6rem; }
}
