/*
Theme Name:   Joyful Family Days Child
Theme URI:    https://joyfulfamilydays.org
Description:  Bunting and paper chain festoon child theme for Joyful Family Days. Rounded slab display, cream ground, triangular flag dividers and layered pinned paper cards.
Author:       Meredith Solberg
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   JOYFUL FAMILY DAYS - DESIGN SYSTEM

   Prototype: Bunting / Paper Chain Festoon.
   Type:      Kreon (rounded slab display) + Wix Madefor Text (body).
   Palette:   tomato accent, cream ground, lake structural dark.

   Three signature devices, and they belong to this site alone:

     1. Bunting rail   a row of triangular flags hanging from a cord. It is a
                       STRUCTURAL DIVIDER and appears exactly three times on
                       the homepage, always on a seam between two zones. It is
                       never wallpaper, never a full page decoration.
     2. Chain link     a hollow ring set to the left of every section heading,
                       like a link of a paper chain hooked onto the title. It
                       replaces the eyebrow on all but two sections.
     3. Tape and pin   a strip of cream tape or a tomato pin head at the top of
                       each paper card, alternating by position. Pure pseudo
                       elements, no images, no script.

   Shape lock:  paper takes a 2px corner. The chain link and the pin head are
                the only circles on the site, and neither is interactive.
   Colour lock: tomato is the only accent, lake is the only structural dark,
                cream is the only ground. Light theme throughout: the dark
                passages are lake bands, not a mode flip.
   Motion:      hover transitions only. No script, no scroll animation.
   ============================================================ */

:root {
  /* base tokens consumed by header / footer / single / archive */
  --color-primary: #3E7A96;
  --color-primary-dark: #2E5D74;
  --color-primary-soft: #BBD3DE;
  --color-bg: #F6EDD8;
  --color-bg-deep: #EADDBF;
  --color-accent: #C2533F;
  --color-accent-soft: #E8B8AD;
  --color-accent-deep: #9C3F2F;
  --color-charcoal: #2A2622;
  --color-ink: #2A2622;
  --color-muted: #6E645A;
  --color-line: #DFD0B0;
  --color-white: #FCF7EA;

  /* site palette aliases */
  --tomato: #C2533F;
  --tomato-deep: #9C3F2F;
  --tomato-soft: #E8B8AD;
  --cream: #F6EDD8;
  --cream-light: #FCF7EA;
  --cream-deep: #EADDBF;
  --lake: #3E7A96;
  --lake-deep: #2E5D74;
  --lake-soft: #BBD3DE;
  --ink: #2A2622;
  --muted: #6E645A;

  --font-serif: 'Kreon', Georgia, 'Times New Roman', serif;
  --font-sans: 'Wix Madefor Text', 'Trebuchet MS', sans-serif;

  --max-w: 1220px;
  --max-w-wide: 1400px;
  --max-w-narrow: 740px;

  /* shape lock: paper corners, nothing rounder */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;

  /* paper lift. Shadow is tinted lake, never neutral black. */
  --paper-shadow: 0 2px 0 rgba(42,38,34,.06), 0 8px 18px -12px rgba(62,122,150,.35);
  /* woven ground for any cell whose post has no featured image */
  --weave: repeating-linear-gradient(135deg, rgba(62,122,150,.10) 0 6px, transparent 6px 13px),
           repeating-linear-gradient(45deg,  rgba(194,83,63,.08) 0 6px, transparent 6px 13px);
}

/* ============================================================
   GLOBAL
   ============================================================ */

body, .entry-content, .widget {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: 2.2em; margin-bottom: .6em; }
h3 { font-size: 1.3rem; margin-top: 1.9em; margin-bottom: .5em; }

a { color: var(--lake-deep); text-decoration: none; transition: color .2s, border-color .2s; }
a:hover { color: var(--tomato-deep); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* placeholder ground, used by jfd_paper() when a post has no image */
.jfd-ph { display: block; width: 100%; height: 100%; background: var(--cream-deep); background-image: var(--weave); }
figure { margin: 0; }

.jfd-eyebrow, .tb-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tomato-deep);
  font-weight: 700;
}

/* reading progress bar, pure CSS, no script drives it */
.tb-progress { height: 3px; background: var(--tomato); width: 0; }

/* ============================================================
   SIGNATURE 1 - BUNTING RAIL
   Structural divider. Three uses per homepage, on seams only.
   ============================================================ */

.jfd-bunting {
  position: relative;
  height: 46px;
  background: var(--cream);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
/* the cord the flags hang from */
.jfd-bunting::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 5px;
  height: 2px; background: var(--ink); opacity: .45; z-index: 1;
}
.jfd-flag {
  flex: 0 0 52px;
  height: 32px;
  margin-top: 6px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--tomato);
}
/* two colours only. A rainbow of flags would read as a nursery. */
.jfd-flag:nth-child(even) { background: var(--lake); }

/* ============================================================
   MASTHEAD & NAVIGATION
   ============================================================ */

.tb-masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--color-line);
  padding: 1.5rem 1.5rem 1.1rem;
}
.tb-masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.tb-masthead-meta {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.tb-masthead-meta.right { text-align: right; }
.tb-masthead-title {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.tb-masthead-title:hover { color: var(--tomato-deep); }
.tb-masthead-tagline {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .15rem;
}

.tb-nav { background: var(--cream); border-bottom: 2px solid var(--ink); }
.tb-nav-inner { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem; }
.tb-nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.05rem; flex-wrap: nowrap;
  justify-content: center; overflow-x: auto;
}
.tb-nav-menu li a {
  display: block;
  padding: .75rem 0;
  font-size: .735rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tb-nav-menu li a:hover,
.tb-nav-menu li.current-menu-item a {
  color: var(--tomato-deep);
  border-bottom-color: var(--tomato);
}

/* ============================================================
   SIGNATURE 2 - CHAIN LINK SECTION HEAD
   The ring stands in for an eyebrow on every section but two.
   ============================================================ */

.jfd-head {
  max-width: var(--max-w);
  margin: 0 auto 1.6rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.jfd-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0;
  position: relative;
  padding-left: 2.6rem;
}
.jfd-head h2::before {
  content: "";
  position: absolute;
  left: 0; bottom: .28em;
  width: 1.7rem; height: 1.7rem;
  border: 3px solid var(--tomato);
  border-radius: 50%;
}
.jfd-head p {
  margin: .45rem 0 0 2.6rem;
  color: var(--muted);
  font-size: .95rem;
  max-width: 52ch;
}
.jfd-all {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--lake-deep);
  border-bottom: 2px solid var(--tomato);
  padding-bottom: 2px;
  white-space: nowrap;
}
.jfd-all:hover { color: var(--tomato-deep); }

.jfd-zone { padding: 3.4rem 0; }
.jfd-zone-tight { padding-top: .5rem; }

/* ============================================================
   HOMEPAGE 1 - HERO
   Full bleed photograph, then a 60/40 split beneath it. The title never
   sits on top of the picture.
   ============================================================ */

.jfd-hero { padding: 2.4rem 0 0; }
.jfd-hero-figure { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.5rem; }
.jfd-hero-figure figure,
.jfd-hero-figure img,
.jfd-hero-figure .jfd-ph {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
}
.jfd-hero-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.9rem 1.5rem 2.4rem;
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 2.8rem;
  align-items: center;
}
.jfd-hero-title { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; margin: .5rem 0 0; }
.jfd-hero-title a { color: var(--ink); }
.jfd-hero-title a:hover { color: var(--tomato-deep); }
.jfd-hero-meta {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: .9rem;
}
.jfd-hero-side { border-left: 3px solid var(--tomato); padding-left: 1.4rem; }
.jfd-hero-side p { margin: 0 0 1rem; font-size: 1.02rem; color: var(--ink); }
.jfd-sign { font-family: var(--font-serif); font-size: 1.05rem; color: var(--lake-deep); font-weight: 600; }

.jfd-read {
  display: inline-block;
  margin-top: 1rem;
  background: var(--tomato);
  color: var(--cream-light);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .05em;
  padding: .62rem 1.25rem;
  border-radius: var(--radius-sm);
}
.jfd-read:hover { background: var(--tomato-deep); color: #FFFFFF; }

/* ============================================================
   HOMEPAGE 3 - THE BOARD
   Eight framed section cards. The 6px spine is the frame edge of the
   noticeboard partition, and it thickens on hover.
   ============================================================ */

.jfd-board {
  background: var(--cream-deep);
  padding: 3rem 0 3.4rem;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.jfd-frames {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.jfd-frame {
  display: block;
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-left: 6px solid var(--tomato);
  border-radius: var(--radius-sm);
  padding: 0 0 .9rem;
  box-shadow: var(--paper-shadow);
  transition: border-left-width .18s, border-color .18s;
}
/* spine colour alternates so the eight frames do not read as one block */
.jfd-frame:nth-child(4n+2), .jfd-frame:nth-child(4n+3) { border-left-color: var(--lake); }
.jfd-frame img, .jfd-frame .jfd-ph {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--color-line);
}
/* second row runs shorter, so the grid is not eight identical squares */
.jfd-frame:nth-child(n+5) img, .jfd-frame:nth-child(n+5) .jfd-ph { height: 118px; }
.jfd-frame h3 { font-size: 1.06rem; margin: .75rem .9rem .25rem; color: var(--ink); }
.jfd-frame span {
  display: block;
  margin: 0 .9rem;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.jfd-frame:hover { border-left-width: 10px; }
.jfd-frame:hover h3 { color: var(--tomato-deep); }

/* ============================================================
   HOMEPAGE 4 - THE NOTE BAND (first dark passage)
   ============================================================ */

.jfd-band { background: var(--lake); color: var(--cream-light); padding: 3.4rem 1.5rem; }
.jfd-band-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start;
}
.jfd-band-portrait img, .jfd-band-portrait .jfd-ph {
  width: 150px; height: 190px; object-fit: cover;
  border: 6px solid var(--cream-light);
  border-radius: var(--radius-sm);
  transform: rotate(-1.6deg);
}
.jfd-band blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.34;
  color: var(--cream-light);
}
.jfd-band-src {
  margin-top: 1.1rem;
  font-size: .83rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--lake-soft);
  font-weight: 600;
}
.jfd-band-src a { color: var(--cream-light); border-bottom: 1px solid var(--tomato-soft); }
.jfd-band-src a:hover { color: var(--tomato-soft); }

/* ============================================================
   HOMEPAGE 5 - PINNED PAPER MOSAIC
   align-items:start is load bearing. Without it the grid stretches every
   card to the tallest in its row and each short card ends in a slab of
   blank paper.
   ============================================================ */

.jfd-mosaic {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.jfd-pin {
  position: relative;
  display: block;
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: .55rem .55rem .9rem;
  box-shadow: var(--paper-shadow);
  color: var(--ink);
  transition: border-color .18s, transform .18s;
}
.jfd-pin img, .jfd-pin .jfd-ph { width: 100%; height: 180px; object-fit: cover; }
.jfd-pin h3 { font-size: 1.04rem; margin: .7rem .35rem .3rem; }
.jfd-pin .jfd-dek { margin: .15rem .35rem 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.jfd-pin .jfd-stamp {
  display: block;
  margin: .6rem .35rem 0;
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
/* hover straightens the paper, which is the whole interaction on this page */
.jfd-pin:hover { border-color: var(--tomato); transform: rotate(0deg); }

/* SIGNATURE 3 - tape on even cards, pin head on odd ones */
.jfd-pin:nth-child(2n)::before {
  content: "";
  position: absolute; top: -9px; left: 50%;
  width: 74px; height: 19px; margin-left: -37px;
  background: rgba(234,221,191,.92);
  border: 1px solid rgba(194,83,63,.28);
  transform: rotate(-2.4deg);
}
.jfd-pin:nth-child(2n+1)::before {
  content: "";
  position: absolute; top: -7px; right: 14px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.55), 0 2px 3px rgba(42,38,34,.3);
}

/* five sizes, each with its own tilt and offset so edges overlap slightly */
.jfd-pin.pin-lg   { grid-column: span 6; transform: rotate(-.7deg); }
.jfd-pin.pin-lg img, .jfd-pin.pin-lg .jfd-ph { height: 280px; }
.jfd-pin.pin-tall { grid-column: span 3; transform: rotate(1.1deg); margin-top: -8px; }
.jfd-pin.pin-tall img, .jfd-pin.pin-tall .jfd-ph { height: 300px; }
.jfd-pin.pin-wide { grid-column: span 8; transform: rotate(.6deg); margin-left: -6px; }
.jfd-pin.pin-wide img, .jfd-pin.pin-wide .jfd-ph { height: 210px; }
.jfd-pin.pin-md   { grid-column: span 4; transform: rotate(-1.3deg); }

/* the written slip: no photograph, lake ground, pinned among the pictures */
.jfd-pin.pin-note {
  grid-column: span 3;
  background: var(--lake);
  border-color: var(--lake-deep);
  transform: rotate(1.4deg);
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.3rem 1.1rem;
}
.jfd-pin.pin-note h3 { color: var(--cream-light); margin: 0 0 .4rem; font-size: 1.12rem; }
.jfd-pin.pin-note .jfd-dek { color: var(--lake-soft); margin: 0; }
.jfd-pin.pin-note .jfd-stamp { color: var(--lake-soft); margin-left: 0; }
.jfd-pin.pin-note::before { background: rgba(252,247,234,.9); border-color: rgba(252,247,234,.5); }
.jfd-pin.pin-note:hover { border-color: var(--tomato-soft); }

/* ============================================================
   HOMEPAGE 6 - START HERE
   ============================================================ */

.jfd-start {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
  align-items: start;
}
.jfd-start-lead img, .jfd-start-lead .jfd-ph {
  width: 100%; height: 330px; object-fit: cover;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}
.jfd-start-lead h3 { font-size: 1.75rem; margin: .85rem 0 .35rem; color: var(--ink); }
.jfd-start-lead:hover h3 { color: var(--tomato-deep); }
.jfd-start-lead p { margin: 0; color: var(--muted); font-size: .97rem; }
.jfd-start-list { display: grid; gap: 1.1rem; }
.jfd-start-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: .95rem;
  align-items: start;
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: .6rem;
  box-shadow: var(--paper-shadow);
  transition: border-color .18s;
}
.jfd-start-item img, .jfd-start-item .jfd-ph { width: 96px; height: 82px; object-fit: cover; }
.jfd-start-item h4 { font-size: 1rem; margin: 0 0 .2rem; color: var(--ink); }
.jfd-start-item span {
  font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.jfd-start-item:hover { border-color: var(--tomato); }
.jfd-start-item:hover h4 { color: var(--tomato-deep); }

/* ============================================================
   HOMEPAGE 7 - EVERY CORNER OF THE BOARD
   ============================================================ */

.jfd-cols-wrap {
  background: var(--cream-deep);
  padding: 3.2rem 0 3.6rem;
  border-top: 1px solid var(--color-line);
}
.jfd-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem 2rem;
}
.jfd-col h3 {
  font-size: .95rem;
  margin: 0 0 .7rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--tomato);
}
.jfd-col h3 a { color: var(--ink); }
.jfd-col h3 a:hover { color: var(--tomato-deep); }
.jfd-col ul { list-style: none; margin: 0; padding: 0; }
.jfd-col li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .7rem;
  margin-bottom: .75rem;
  align-items: start;
}
.jfd-col li img, .jfd-col li .jfd-ph {
  width: 56px; height: 46px; object-fit: cover; border-radius: var(--radius-sm);
}
.jfd-col-title { font-size: .87rem; line-height: 1.35; font-weight: 600; }
.jfd-col-title a { color: var(--ink); }
.jfd-col-title a:hover { color: var(--tomato-deep); }
.jfd-col-date {
  font-size: .68rem; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; margin-top: .15rem;
}

/* ============================================================
   NEWSLETTER BANDS (second dark passage; also used on single.php)
   ============================================================ */

.jfd-signup, .tb-newsletter { background: var(--lake-deep); color: var(--cream-light); padding: 3.6rem 1.5rem; }
.jfd-signup-inner, .tb-newsletter-inner { max-width: 660px; margin: 0 auto; text-align: center; }
.jfd-signup h2, .tb-newsletter h3 {
  color: var(--cream-light);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  margin: .5rem 0 .6rem;
}
.jfd-signup p, .tb-newsletter p { color: var(--lake-soft); margin: 0 auto 1.5rem; max-width: 48ch; }
.jfd-signup .jfd-eyebrow, .tb-newsletter .jfd-eyebrow { color: var(--tomato-soft); }
.jfd-signup-form, .tb-newsletter-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.jfd-signup-form input, .tb-newsletter-form input[type="email"] {
  flex: 1 1 280px; max-width: 340px;
  padding: .75rem .9rem;
  border: 2px solid var(--cream-light);
  background: var(--cream-light);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
}
/* placeholder holds AA contrast against the cream field it sits in */
.jfd-signup-form input::placeholder, .tb-newsletter-form input[type="email"]::placeholder { color: #7A6E62; }
.jfd-signup-form button, .tb-newsletter-form button {
  padding: .75rem 1.5rem;
  border: 2px solid var(--tomato);
  background: var(--tomato);
  color: #FFFFFF;
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: .9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.jfd-signup-form button:hover, .tb-newsletter-form button:hover { background: var(--tomato-deep); border-color: var(--tomato-deep); }
.jfd-signup-note, .tb-newsletter-note { margin-top: 1rem; font-size: .78rem; color: var(--lake-soft); }
.jfd-signup-note a, .tb-newsletter-note a { color: var(--cream-light); text-decoration: underline; }

/* ============================================================
   ARTICLE
   ============================================================ */

.tb-post-header { max-width: var(--max-w-narrow); margin: 3rem auto 1.5rem; padding: 0 1.5rem; }
.tb-breadcrumb {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1.2rem;
}
.tb-breadcrumb a { color: var(--muted); }
.tb-breadcrumb a:hover { color: var(--tomato-deep); }
.tb-post-cat {
  display: inline-block;
  background: var(--tomato);
  color: var(--cream-light);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.tb-post-cat:hover { background: var(--tomato-deep); color: #FFFFFF; }
.tb-post-title { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 1rem; font-weight: 700; }
.tb-post-meta {
  font-size: .8rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.tb-post-meta strong { color: var(--ink); font-weight: 600; }
.tb-post-meta a { color: var(--lake-deep); }
.tb-post-cover { max-width: var(--max-w-wide); margin: 0 auto 2.5rem; padding: 0 1.5rem; }
.tb-post-cover img {
  width: 100%; max-height: 560px; object-fit: cover;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
}

.single .entry-content, .page .entry-content {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.single .entry-content p { margin: 0 0 1.35rem; }
.single .entry-content h2 { font-size: 1.7rem; }
.single .entry-content blockquote {
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.4rem;
  border-left: 4px solid var(--tomato);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--ink);
}
.single .entry-content blockquote p:last-child { margin-bottom: 0; }
.single .entry-content ul, .single .entry-content ol { margin: 0 0 1.35rem 1.2rem; }
.single .entry-content li { margin-bottom: .5rem; }
.single .entry-content img { border-radius: var(--radius-sm); margin: 1.6rem 0; }
.single .entry-content a { border-bottom: 1px solid var(--tomato-soft); }
.single .entry-content a:hover { border-bottom-color: var(--tomato); }

/* FTC affiliate disclosure. Injected by functions.php on articles only. */
.ftc-disclosure {
  max-width: var(--max-w-narrow);
  margin: 0 auto 2rem;
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--tomato);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-size: .88rem;
  color: var(--muted);
}
.ftc-disclosure p { margin: 0; }
.entry-content .ftc-disclosure { margin-left: 0; margin-right: 0; }

.tb-author-bio {
  max-width: var(--max-w-narrow);
  margin: 3rem auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-left: 6px solid var(--tomato);
  border-radius: var(--radius-sm);
  box-shadow: var(--paper-shadow);
}
.tb-author-avatar {
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lake);
  color: var(--cream-light);
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700;
  border-radius: var(--radius-sm);
}
.tb-author-bio h4 { margin: 0 0 .4rem; font-size: 1.15rem; }
.tb-author-bio p { font-size: .96rem; color: var(--muted); margin: 0 0 .5rem; line-height: 1.6; }
.tb-author-bio a { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lake-deep); border-bottom: 2px solid var(--tomato); }

.tb-related { max-width: var(--max-w); margin: 3.5rem auto; padding: 0 1.5rem; }
.tb-related h3 {
  font-size: 1.4rem;
  margin: 0 0 1.4rem;
  position: relative;
  padding-left: 2.4rem;
}
/* the chain link marker again, one size down */
.tb-related h3::before {
  content: "";
  position: absolute; left: 0; bottom: .22em;
  width: 1.5rem; height: 1.5rem;
  border: 3px solid var(--tomato);
  border-radius: 50%;
}
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.tb-related-card {
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: .55rem .55rem .9rem;
  box-shadow: var(--paper-shadow);
}
.tb-related-cover img { width: 100%; height: 165px; object-fit: cover; }
.tb-related-title { font-size: 1.02rem; margin: .7rem .35rem 0; color: var(--ink); }
.tb-related-card:hover { border-color: var(--tomato); }
.tb-related-card:hover .tb-related-title { color: var(--tomato-deep); }

/* ============================================================
   ARCHIVE
   ============================================================ */

.tb-archive-hero {
  max-width: var(--max-w-narrow);
  margin: 3rem auto 2rem;
  padding: 0 1.5rem;
}
.tb-archive-hero h1 { margin: .5rem 0 .8rem; }
.tb-archive-hero p { color: var(--muted); }
.tb-archive-feature { max-width: var(--max-w); margin: 0 auto 3rem; padding: 0 1.5rem; }
.tb-spread {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.2rem;
  align-items: center;
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-left: 6px solid var(--tomato);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--paper-shadow);
}
.tb-spread-image img { width: 100%; height: 330px; object-fit: cover; border-radius: var(--radius-sm); }
.tb-spread-text h3 { font-size: 1.8rem; margin: .4rem 0 .6rem; }
.tb-spread-text h3 a { color: var(--ink); }
.tb-spread-text h3 a:hover { color: var(--tomato-deep); }
.tb-spread-excerpt { color: var(--muted); font-size: .97rem; }
.tb-spread-read {
  display: inline-block;
  margin-top: .8rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--lake-deep);
  border-bottom: 2px solid var(--tomato);
  padding-bottom: 2px;
}
.tb-archive-grid {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tb-archive-card {
  position: relative;
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: .55rem .55rem 1rem;
  box-shadow: var(--paper-shadow);
}
/* archive cards get the tape and pin treatment too, so the board reads
   the same way once a reader has clicked into a section */
.tb-archive-card:nth-child(2n)::before {
  content: "";
  position: absolute; top: -9px; left: 50%;
  width: 70px; height: 18px; margin-left: -35px;
  background: rgba(234,221,191,.92);
  border: 1px solid rgba(194,83,63,.28);
  transform: rotate(-2.2deg);
}
.tb-archive-card:nth-child(2n+1)::before {
  content: "";
  position: absolute; top: -7px; right: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.55), 0 2px 3px rgba(42,38,34,.3);
}
.tb-archive-cover img { width: 100%; height: 185px; object-fit: cover; }
.tb-archive-meta {
  margin: .7rem .4rem .2rem;
  font-size: .69rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.tb-archive-title { font-size: 1.06rem; margin: 0 .4rem .35rem; color: var(--ink); }
.tb-archive-excerpt { margin: 0 .4rem; font-size: .89rem; color: var(--muted); line-height: 1.55; }
.tb-archive-card:hover { border-color: var(--tomato); }
.tb-archive-card:hover .tb-archive-title { color: var(--tomato-deep); }

.nav-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.nav-links .page-numbers {
  display: inline-block;
  padding: .45rem .8rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--cream-light);
  color: var(--ink);
  font-size: .85rem; font-weight: 600;
}
.nav-links .page-numbers.current, .nav-links .page-numbers:hover {
  background: var(--tomato); border-color: var(--tomato); color: var(--cream-light);
}

/* ============================================================
   TRUST PAGES - THE NOTICEBOARD
   Pinned head, chain link section markers, a vertical pinned contents
   list, identity paragraphs as slips of note paper, layered cards at the
   foot. Deliberately unlike the three treatments already in use across
   the network.
   ============================================================ */

.jfd-notice { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }

.jfd-notice-head { margin: 3.2rem 0 2rem; padding-left: 2.4rem; position: relative; }
/* the pin holding this page to the board */
.jfd-notice-head::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: inset 4px 4px 0 rgba(255,255,255,.55), 0 2px 4px rgba(42,38,34,.3);
}
.jfd-notice-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .7rem; font-weight: 700; }
/* short rule under the title, not a full width filet */
.jfd-notice-title::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  background: var(--tomato);
  margin-top: .8rem;
}
.jfd-notice-updated {
  margin: .9rem 0 0;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* contents list: pinned slips stacked vertically, each with a square head */
.jfd-notice-toc { margin: 0 0 2.4rem; padding-left: 2.4rem; }
.jfd-notice-toc-title {
  display: block;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: .7rem;
}
.jfd-notice-toc ul { list-style: none; margin: 0; padding: 0; }
.jfd-notice-toc li { margin-bottom: .3rem; }
.jfd-notice-toc a {
  display: block;
  position: relative;
  padding: .3rem 0 .3rem 1.5rem;
  font-size: .95rem;
  color: var(--lake-deep);
  transition: transform .16s, color .16s;
}
.jfd-notice-toc a::before {
  content: "";
  position: absolute; left: 0; top: .78em;
  width: 8px; height: 8px;
  background: var(--tomato);
}
.jfd-notice-toc a:hover { transform: translateX(3px); color: var(--tomato-deep); }

.jfd-notice-body { max-width: none; margin: 0; padding: 0; }
.jfd-notice-body p { margin: 0 0 1.3rem; }
.jfd-notice-body h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 .8rem;
  padding-top: 1.1rem;
  padding-left: 2.4rem;
  border-top: 1px solid var(--color-line);
  position: relative;
}
/* chain link marker on every section heading of the trust pages */
.jfd-notice-body h2::before {
  content: "";
  position: absolute; left: 0; bottom: .16em;
  width: 1.5rem; height: 1.5rem;
  border: 3px solid var(--tomato);
  border-radius: 50%;
}
.jfd-notice-body h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
.jfd-notice-body ul, .jfd-notice-body ol { margin: 0 0 1.3rem 1.2rem; }
.jfd-notice-body li { margin-bottom: .45rem; }
.jfd-notice-body a { border-bottom: 1px solid var(--tomato-soft); }
.jfd-notice-body a:hover { border-bottom-color: var(--tomato); }

/* identity paragraphs render as slips of note paper */
.jfd-notice-body > p:has(> strong:first-child) {
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--tomato);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  margin-bottom: .7rem;
  box-shadow: var(--paper-shadow);
}
.jfd-notice-body > p:has(> strong:first-child) strong { color: var(--ink); }

.jfd-notice-foot { margin: 3.2rem 0 4rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.jfd-notice-foot-title { font-size: 1.15rem; margin: 0 0 1.2rem; }
/* layered cards, each tilted a touch so they overlap like pinned scraps */
.jfd-notice-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.jfd-notice-link {
  display: block;
  background: var(--cream-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: .85rem .9rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--paper-shadow);
  transition: transform .16s, border-color .16s, color .16s;
}
.jfd-notice-link:nth-child(3n+1) { transform: rotate(-1deg); }
.jfd-notice-link:nth-child(3n+2) { transform: rotate(.7deg); }
.jfd-notice-link:nth-child(3n)   { transform: rotate(-.5deg); }
.jfd-notice-link:hover { transform: rotate(0deg); border-color: var(--tomato); color: var(--tomato-deep); }
.jfd-notice-note { margin: 1.6rem 0 0; font-size: .9rem; color: var(--muted); }
.jfd-notice-note a { color: var(--lake-deep); border-bottom: 1px solid var(--tomato-soft); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { background: var(--lake); color: var(--cream-light); }
.site-footer a { color: var(--cream-light); }
.site-footer a:hover { color: var(--tomato-soft); }

/* ============================================================
   RESPONSIVE
   Every asymmetric grid above collapses explicitly. Nothing is left to
   chance at the two breakpoints.
   ============================================================ */

@media (max-width: 1000px) {
  .jfd-frames { grid-template-columns: repeat(2, 1fr); }
  .jfd-cols   { 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: 768px) {
  .tb-masthead-inner { grid-template-columns: 1fr; }
  .tb-masthead-meta, .tb-masthead-meta.right { text-align: center; }
  .tb-nav-menu { justify-content: flex-start; }

  .jfd-head { flex-direction: column; align-items: flex-start; gap: .7rem; }

  .jfd-hero-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .jfd-hero-side { border-left: none; border-top: 3px solid var(--tomato); padding-left: 0; padding-top: 1.1rem; }

  .jfd-frames { grid-template-columns: 1fr; }
  .jfd-frame img, .jfd-frame .jfd-ph { height: 170px; }
  .jfd-frame:nth-child(n+5) img, .jfd-frame:nth-child(n+5) .jfd-ph { height: 170px; }

  .jfd-band-inner { grid-template-columns: 1fr; }
  .jfd-band-portrait img, .jfd-band-portrait .jfd-ph { width: 130px; height: 160px; }

  /* the board flattens to one column: tilt and overlap are a desktop idea */
  .jfd-mosaic { grid-template-columns: 1fr; gap: 1.6rem; }
  .jfd-pin.pin-lg, .jfd-pin.pin-tall, .jfd-pin.pin-wide,
  .jfd-pin.pin-md, .jfd-pin.pin-note { grid-column: 1 / -1; transform: none; margin: 0; }
  .jfd-pin img, .jfd-pin .jfd-ph { height: 210px; }
  .jfd-pin.pin-lg img, .jfd-pin.pin-lg .jfd-ph,
  .jfd-pin.pin-tall img, .jfd-pin.pin-tall .jfd-ph,
  .jfd-pin.pin-wide img, .jfd-pin.pin-wide .jfd-ph { height: 210px; }

  .jfd-start { grid-template-columns: 1fr; }
  .jfd-cols  { grid-template-columns: 1fr; }

  .tb-spread { grid-template-columns: 1fr; gap: 1.4rem; }
  .tb-spread-image img { height: 230px; }
  .tb-related-grid { grid-template-columns: 1fr; }
  .tb-archive-grid { grid-template-columns: 1fr; }

  .jfd-notice-links { grid-template-columns: 1fr; }
  .jfd-notice-link, .jfd-notice-link:nth-child(3n+1),
  .jfd-notice-link:nth-child(3n+2), .jfd-notice-link:nth-child(3n) { transform: none; }
}

@media (max-width: 540px) {
  .tb-author-bio { grid-template-columns: 1fr; }
}

/* Motion is hover only, but honour the preference regardless. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
