/*
Theme Name:   Rooms We Love Child
Theme URI:    https://roomswelove.org
Description:  Passepartout / Salon-Hang editorial child theme for roomswelove.org — matted (passe-partout) frames with keyline mats, asymmetric salon-hang gallery, oversized Marcellus display, Outfit gallery-label sans, olive + plaster palette. Custom GeneratePress child.
Author:       Makayla Jones
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   ROOMS WE LOVE — DESIGN SYSTEM
   Prototype:  Passepartout / Salon-Hang (matted museum-gallery editorial)
   Palette:    plaster #EDE7DA + olive-charcoal ink #23241C + olive #6E7548 (single accent) + putty mat #DDD5C2 + deep-olive dark band #3A3E28
   Fonts:      Marcellus (display / masthead / headings) / Outfit (body / meta / gallery labels)
   Motion:     ~1 (CWV-first) — CSS hover/active + scroll progress only, no JS animation.
   Differentiated from all 13 siblings (esp. the 3 Zine bros): this is a calm,
   matted, whitespace-rich gallery hang — NOT brutalist. Olive+plaster, Marcellus,
   passe-partout frames. See design-brief.md §0 for the assigned-lane deviation.
   ============================================================ */

:root {
  --color-primary:      #3A3E28;  /* deep-olive dark band (collector wall) */
  --color-primary-dark: #31351F;  /* deepest olive band (newsletter/footer accents) */
  --color-primary-soft: #E3DCCC;  /* image placeholder / deeper plaster */
  --color-bg:           #EDE7DA;  /* plaster / limewash canvas */
  --color-bg-deep:      #E3DCCC;  /* subtly deeper plaster band */
  --color-accent:       #6E7548;  /* olive / moss — the ONLY accent */
  --color-accent-soft:  #C9C3A8;  /* pale olive-sage (hairlines, dark-band text) */
  --color-accent-deep:  #545A34;  /* deep olive (text-safe links on plaster) */
  --color-mat:          #DDD5C2;  /* putty / clay passe-partout mat board */
  --color-charcoal:     #33322A;  /* body text (warm) */
  --color-ink:          #23241C;  /* olive-charcoal ink — headings + hard keylines */
  --color-muted:        #6E6A5C;  /* warm grey-taupe meta */
  --color-line:         #23241C;  /* frame keyline = ink */
  --color-hair:         #C9C3A8;  /* faint olive hairline */
  --color-white:        #F7F3E9;  /* raised sheet / lightest mat */

  --font-serif: 'Marcellus', Georgia, 'Times New Roman', serif;
  --font-sans:  'Outfit', system-ui, -apple-system, sans-serif;

  --max-w: 1220px;
  --max-w-wide: 1420px;
  --max-w-narrow: 720px;

  /* Passepartout: crisp keylines, minimal rounding */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --mat-pad: 14px;
}

/* ============================================================
   GLOBAL
   ============================================================ */
body, .entry-content, .widget {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-bg);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 300;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: 0.005em;
  line-height: 1.14;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.3rem); margin: 2.2em 0 0.5em; }
h3 { font-size: 1.4rem; margin: 1.9em 0 0.5em; }

a {
  color: var(--color-accent-deep);
  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-ink); text-decoration-color: var(--color-accent); }
p { margin: 0 0 1.2em; }

blockquote {
  border-left: 2px solid var(--color-accent);
  background: var(--color-white);
  padding: 1.4rem 1.7rem;
  margin: 2.2em 0;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--color-ink);
}
hr { border: none; height: 1px; background: var(--color-hair); margin: 3em 0; }
img { max-width: 100%; height: auto; border-radius: 0; }
figure { margin: 2em 0; }
figcaption { font-size: 0.86rem; color: var(--color-muted); margin-top: 0.6rem; font-style: italic; }

/* Folio kicker (magazine plate label — used sparingly) */
.tb-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: 500;
}

/* ============================================================
   PASSE-PARTOUT FRAME PRIMITIVE
   figure.tb-frame > div.tb-plate > img   (+ optional span.tb-tape / div.tb-pin)
   ============================================================ */
.tb-frame {
  background: var(--color-mat);
  padding: var(--mat-pad);
  border: 1px solid var(--color-ink);
  position: relative;
  margin: 0;
}
.tb-frame .tb-plate {
  border: 1px solid var(--color-hair);
  overflow: hidden;
  background: var(--color-primary-soft);
  display: block;
}
.tb-frame .tb-plate img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
a:hover > .tb-frame .tb-plate img,
.tb-frame:hover .tb-plate img { transform: scale(1.035); }
.tb-tape {
  position: absolute; top: -11px; left: 22px;
  background: var(--color-accent); color: var(--color-white);
  font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500; padding: 0.28rem 0.7rem;
}
.tb-pin { margin: 0.5rem auto 0; width: 1px; height: 16px; background: var(--color-accent-soft); }

/* ============================================================
   MASTHEAD (left-aligned nameplate + folio)
   ============================================================ */
.tb-masthead { background: var(--color-bg); border-bottom: 1px solid var(--color-hair); }
.tb-masthead-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 1.7rem 1.5rem 1.3rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.tb-masthead-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 400; letter-spacing: 0.02em; color: var(--color-ink);
  line-height: 0.95; text-decoration: none; display: block;
}
.tb-masthead-title:hover { color: var(--color-ink); }
.tb-masthead-tagline {
  font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-muted); margin-top: 0.5rem;
}
.tb-masthead-folio {
  text-align: right; font-family: var(--font-sans); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted);
  line-height: 1.9; white-space: nowrap;
}
.tb-masthead-folio b { color: var(--color-accent-deep); font-weight: 500; }
@media (max-width: 620px) {
  .tb-masthead-inner { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .tb-masthead-folio { text-align: left; }
}

/* ============================================================
   LAYOUT RESET (GeneratePress override)
   ============================================================ */
.tb-main { display: block !important; width: 100%; }
.tb-main > * { width: 100%; }   /* 勿加 display:block */

/* Navigation */
.tb-nav { background: var(--color-bg); border-bottom: 1px solid var(--color-hair); width: 100%; }
.tb-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.tb-nav-menu {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem;
}
.tb-nav-menu li { list-style: none; margin: 0; padding: 0; }
.tb-nav-menu li a {
  display: block; padding: 0.85rem 1.05rem;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-charcoal);
  text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.tb-nav-menu li a:hover { color: var(--color-accent-deep); border-bottom-color: var(--color-accent); }
.tb-nav-menu li.current-menu-item > a { color: var(--color-ink); border-bottom-color: var(--color-accent); }
@media (max-width: 640px) { .tb-nav-menu li a { padding: 0.7rem 0.6rem; font-size: 0.72rem; } }

/* ============================================================
   HERO
   ============================================================ */
.tb-hero { background: var(--color-bg); padding: 3.2rem 0 3.8rem; border-bottom: 1px solid var(--color-hair); }
.tb-hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1.62fr 1fr; gap: 3rem;
}
@media (max-width: 950px) { .tb-hero-inner { grid-template-columns: 1fr; gap: 2.4rem; } }
.tb-hero-main { display: flex; flex-direction: column; }
.tb-hero-main .tb-eyebrow { margin-bottom: 1rem; }
.tb-hero-cover { display: block; }
.tb-hero-cover .tb-plate { aspect-ratio: 16/10; }
.tb-hero-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.3rem 0 0.4rem; }
.tb-hero-cap .num { font-family: var(--font-serif); font-size: 1.1rem; color: var(--color-accent); }
.tb-hero-cap .loc { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); }
.tb-hero-main h1 { font-size: clamp(2.3rem, 4.3vw, 3.4rem); line-height: 1.1; margin: 0.2rem 0 0.9rem; }
.tb-hero-main h1 a { color: inherit; text-decoration: none; }
.tb-hero-main h1 em { font-style: italic; color: var(--color-accent-deep); }
.tb-hero-main .lead { font-size: 1.1rem; color: var(--color-muted); line-height: 1.6; max-width: 54ch; margin-bottom: 1.4rem; }
.tb-hero-cta {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500; color: var(--color-ink);
  text-decoration: none; border-bottom: 1.5px solid var(--color-accent); padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.tb-hero-cta:hover { color: var(--color-accent-deep); }

/* Hero side salon list */
.tb-hero-side { align-self: start; }
.tb-hero-side h4 {
  font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--color-accent-deep); font-weight: 600;
  margin: 0 0 1.2rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--color-hair);
}
.tb-hero-side ol { list-style: none; padding: 0; margin: 0; }
.tb-hero-side li {
  padding: 0.9rem 0; border-bottom: 1px dotted var(--color-hair);
  display: grid; grid-template-columns: 78px 1fr; gap: 1rem; align-items: center;
}
.tb-hero-side li:last-child { border-bottom: none; padding-bottom: 0; }
.tb-hero-side li:first-child { padding-top: 0; }
.tb-hero-side .tb-frame { padding: 6px; }
.tb-hero-side .tb-frame .tb-plate { aspect-ratio: 1/1; }
.tb-hero-side li a { font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.24; color: var(--color-ink); text-decoration: none; }
.tb-hero-side li a:hover { color: var(--color-accent-deep); }
.tb-hero-side li .tb-mini-cat {
  display: block; font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent-deep); margin-top: 0.3rem;
}

/* ============================================================
   EDITOR'S LETTER
   ============================================================ */
.tb-letter { background: var(--color-bg-deep); border-top: 1px solid var(--color-hair); border-bottom: 1px solid var(--color-hair); padding: 3.8rem 1.5rem; }
.tb-letter-inner { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 104px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 700px) { .tb-letter-inner { grid-template-columns: 1fr; } }
.tb-letter-avatar {
  width: 104px; height: 104px; border-radius: 50%; background: var(--color-accent);
  color: var(--color-white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2.3rem; border: 1px solid var(--color-ink);
}
.tb-letter .tb-eyebrow { margin-bottom: 0.6rem; }
.tb-letter h3 { font-size: 1.7rem; margin: 0.4rem 0 1rem; line-height: 1.25; }
.tb-letter p { font-family: var(--font-serif); font-size: 1.14rem; font-style: italic; color: var(--color-charcoal); line-height: 1.6; margin: 0 0 0.9rem; }
.tb-letter .tb-signature { font-family: var(--font-serif); font-size: 1.02rem; color: var(--color-accent-deep); font-style: normal; margin-top: 0.8rem; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.tb-section { max-width: var(--max-w); margin: 0 auto; padding: 4.4rem 1.5rem; }
.tb-section.dark { background: var(--color-primary); color: var(--color-accent-soft); max-width: 100%; }
.tb-section.dark > .tb-section-body,
.tb-section.dark > .tb-section-head { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.tb-section.dark h2, .tb-section.dark h3 { color: var(--color-white); }
.tb-section.dark .tb-eyebrow, .tb-section.dark .tb-more { color: var(--color-accent-soft); }
.tb-section.bg-deep { background: var(--color-bg-deep); border-top: 1px solid var(--color-hair); border-bottom: 1px solid var(--color-hair); }

.tb-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--color-hair); padding-bottom: 1rem; }
.tb-section.dark .tb-section-head { border-bottom-color: rgba(201,195,168,0.24); }
.tb-section-head-left { display: flex; flex-direction: column; gap: 0.5rem; }
.tb-section-head .tb-eyebrow { display: block; }
.tb-section-head h2 { margin: 0; }
.tb-section-head .tb-more { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-deep); font-weight: 500; text-decoration: none; white-space: nowrap; }
.tb-section-head .tb-more:hover { color: var(--color-ink); }

/* ============================================================
   SALON HANG (categories) — matted gallery wall.
   Equal 3-col grid (tiles cleanly for any N, no holes) + varied
   frame heights + staggered "hung at different heights" offsets.
   ============================================================ */
.tb-salon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1.6rem; align-items: start; }
.tb-salon .tb-hang { text-decoration: none; display: block; }
/* salon stagger: middle & right columns hang a little lower */
.tb-salon .tb-hang:nth-child(3n+2) { margin-top: 1.8rem; }
.tb-salon .tb-hang:nth-child(3n)   { margin-top: 3.2rem; }
.tb-salon .tb-hang .tb-plate { aspect-ratio: 4/3; }
.tb-salon .tb-hang.big .tb-plate { aspect-ratio: 5/4; }
.tb-salon .tb-hang.tall .tb-plate { aspect-ratio: 4/5; }
.tb-salon .tb-hang.wide .tb-plate { aspect-ratio: 16/11; }
.tb-hang-cap { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.85rem; }
.tb-hang-cap .no { font-family: var(--font-serif); color: var(--color-accent); font-size: 0.95rem; }
.tb-hang-name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--color-ink); line-height: 1.15; margin: 0; }
.tb-salon .tb-hang.big .tb-hang-name { font-size: 1.5rem; }
.tb-hang-count { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); margin-top: 0.25rem; }
.tb-hang:hover .tb-hang-name { color: var(--color-accent-deep); }
@media (max-width: 780px) {
  .tb-salon { grid-template-columns: repeat(2, 1fr); }
  .tb-salon .tb-hang:nth-child(3n+2), .tb-salon .tb-hang:nth-child(3n) { margin-top: 0; }
  .tb-salon .tb-hang:nth-child(2n) { margin-top: 1.8rem; }
}
@media (max-width: 500px) {
  .tb-salon { grid-template-columns: 1fr; }
  .tb-salon .tb-hang, .tb-salon .tb-hang:nth-child(2n) { margin-top: 0; }
}

/* ============================================================
   PULL QUOTE — framed on plaster (double keyline), NOT a dark band
   ============================================================ */
.tb-pullquote { max-width: var(--max-w); margin: 0 auto; padding: 0.5rem 1.5rem 4.4rem; }
.tb-pullquote-inner { border: 1px solid var(--color-ink); background: var(--color-white); padding: 3.2rem 2.6rem; text-align: center; position: relative; }
.tb-pullquote-inner::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--color-hair); pointer-events: none; }
.tb-pullquote .tb-eyebrow { color: var(--color-accent-deep); margin-bottom: 1.2rem; position: relative; }
.tb-pullquote blockquote { border: none; background: transparent; padding: 0; margin: 0 auto 1rem; font-family: var(--font-serif); font-size: clamp(1.5rem, 2.9vw, 2.1rem); line-height: 1.32; color: var(--color-ink); max-width: 24ch; position: relative; }
.tb-pullquote-source { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-deep); position: relative; }
.tb-pullquote-source a { color: var(--color-accent-deep); }

/* ============================================================
   RECENT — asymmetric matted mosaic
   ============================================================ */
.tb-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(90px, auto); gap: 1.8rem; }
@media (max-width: 950px) { .tb-mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-mosaic { grid-template-columns: 1fr; } }
.tb-mosaic-item { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.tb-mosaic-item .tb-mosaic-cover .tb-plate { aspect-ratio: 4/3; }
.tb-mosaic-item.tall .tb-mosaic-cover .tb-plate { aspect-ratio: 3/4; }
.tb-mosaic-item.wide .tb-mosaic-cover .tb-plate { aspect-ratio: 16/10; }
.tb-mosaic-item.big { grid-row: span 2; }
.tb-mosaic-item.big .tb-mosaic-cover .tb-plate { aspect-ratio: 4/5; }
@media (max-width: 950px) { .tb-mosaic-item.big { grid-row: auto; } }
.tb-mosaic-body { padding: 0.9rem 0.1rem 0; display: flex; flex-direction: column; gap: 0.35rem; }
.tb-mosaic-meta { font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-deep); font-weight: 500; }
.tb-mosaic-title { font-family: var(--font-serif); font-size: 1.18rem; color: var(--color-ink); line-height: 1.24; margin: 0; }
.tb-mosaic-item.big .tb-mosaic-title { font-size: 1.44rem; }
.tb-mosaic-excerpt { font-family: var(--font-sans); font-size: 0.9rem; color: var(--color-muted); line-height: 1.5; }
.tb-mosaic-date { font-family: var(--font-sans); font-size: 0.72rem; color: var(--color-muted); margin-top: 0.35rem; }
.tb-mosaic-item:hover .tb-mosaic-title { color: var(--color-accent-deep); }

/* ============================================================
   BY SECTION — dark collector wall (light/dark rhythm)
   ============================================================ */
.tb-bysection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
@media (max-width: 950px) { .tb-bysection { grid-template-columns: 1fr; gap: 2rem; } }
.tb-bysection-block { display: flex; flex-direction: column; }
.tb-bysection-block h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--color-white); border-bottom: 2px solid var(--color-accent); padding-bottom: 0.5rem; margin: 0 0 1.1rem; align-self: flex-start; }
.tb-bysection-block h3 a { color: inherit; text-decoration: none; }
.tb-bysection-block h3 a:hover { color: var(--color-accent-soft); }
.tb-bysection-list { list-style: none; padding: 0; margin: 0 0 0.8rem; display: flex; flex-direction: column; gap: 1rem; }
.tb-bysection-list li { display: grid; grid-template-columns: 64px 1fr; gap: 0.9rem; align-items: center; }
.tb-bysection-list .tb-frame { padding: 5px; background: var(--color-primary-dark); border-color: var(--color-accent-soft); }
.tb-bysection-list .tb-frame .tb-plate { aspect-ratio: 1/1; border-color: rgba(201,195,168,0.3); }
.tb-bysection-title { font-family: var(--font-serif); font-size: 1rem; color: var(--color-white); line-height: 1.25; margin: 0; }
.tb-bysection-title a { color: var(--color-white); text-decoration: none; }
.tb-bysection-title a:hover { color: var(--color-accent-soft); }
.tb-bysection-date { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-soft); opacity: 0.75; margin-top: 0.2rem; }
.tb-bysection-more { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--color-accent-soft); text-decoration: none; align-self: flex-start; }
.tb-bysection-more:hover { color: var(--color-white); }

/* ============================================================
   NEWSLETTER — deep olive band
   ============================================================ */
.tb-newsletter { background: var(--color-primary-dark); color: var(--color-accent-soft); padding: 4.2rem 1.5rem; text-align: center; }
.tb-newsletter-inner { max-width: 600px; margin: 0 auto; }
.tb-newsletter .tb-eyebrow { color: var(--color-accent-soft); margin-bottom: 0.9rem; }
.tb-newsletter h3 { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--color-white); margin: 0 0 0.8rem; }
.tb-newsletter p { color: var(--color-accent-soft); opacity: 0.9; font-size: 1rem; margin: 0 auto 1.6rem; max-width: 46ch; }
.tb-newsletter-form { display: flex; gap: 0.5rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.tb-newsletter-form input[type="email"] { flex: 1 1 230px; padding: 0.85rem 1.1rem; background: transparent; border: 1px solid var(--color-accent-soft); color: var(--color-white); font-family: var(--font-sans); font-size: 0.95rem; }
.tb-newsletter-form input[type="email"]::placeholder { color: rgba(201,195,168,0.6); }
.tb-newsletter-form button { background: var(--color-accent); color: var(--color-white); border: none; padding: 0.85rem 1.7rem; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.tb-newsletter-form button:hover { background: var(--color-accent-deep); }
.tb-newsletter-note { font-size: 0.72rem; color: rgba(201,195,168,0.6); margin-top: 1rem; }

/* ============================================================
   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.22rem; 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.6rem; float: left; line-height: 0.82; padding: 0.3rem 0.6rem 0 0; color: var(--color-accent); }

.tb-post-header { max-width: var(--max-w-narrow); margin: 2.6rem auto 1.5rem; padding: 0 1.5rem; }
.tb-breadcrumb { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 1rem; }
.tb-breadcrumb a { color: var(--color-accent-deep); text-decoration: none; }
.tb-breadcrumb a:hover { color: var(--color-ink); }
.tb-post-cat { display: inline-block; font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-white); background: var(--color-accent); padding: 0.35rem 0.85rem; text-decoration: none; font-weight: 500; margin-bottom: 1rem; }
.tb-post-cat:hover { background: var(--color-accent-deep); color: var(--color-white); }
.tb-post-title { font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.14; 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 0.9rem; align-items: center; }
.tb-post-meta strong { color: var(--color-charcoal); font-weight: 500; }
.tb-post-meta a { color: var(--color-accent-deep); }

/* Framed post cover */
.tb-post-cover { max-width: var(--max-w); margin: 2rem auto 3rem; padding: 0 1.5rem; }
.tb-post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--color-mat); padding: var(--mat-pad); border: 1px solid var(--color-ink); }

/* FTC disclosure */
.ftc-disclosure { max-width: var(--max-w-narrow); margin: 0 auto 2.5rem; background: var(--color-white); border-left: 3px solid var(--color-accent); padding: 1rem 1.25rem; font-size: 0.92rem; color: var(--color-charcoal); }
.ftc-disclosure p { margin: 0; }
.entry-content .ftc-disclosure { margin-left: 0; margin-right: 0; }

/* In-article blockquote */
.single .entry-content blockquote { border-left: none; background: transparent; text-align: center; font-family: var(--font-serif); font-style: normal; font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.4; color: var(--color-accent-deep); padding: 2rem 0; margin: 2.5rem 0; border-top: 1px solid var(--color-accent); border-bottom: 1px solid var(--color-accent); }

/* Author bio */
.tb-author-bio { max-width: var(--max-w-narrow); margin: 4rem auto 2rem; padding: 2rem; background: var(--color-white); border: 1px solid var(--color-ink); display: grid; grid-template-columns: 96px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 540px) { .tb-author-bio { grid-template-columns: 1fr; } }
.tb-author-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--color-accent); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 2rem; border: 1px solid var(--color-ink); }
.tb-author-bio .tb-eyebrow { margin-bottom: 0.4rem; display: block; }
.tb-author-bio h4 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.tb-author-bio p { font-size: 0.96rem; color: var(--color-muted); margin: 0 0 0.4rem; line-height: 1.6; }
.tb-author-bio a { font-family: var(--font-sans); font-size: 0.84rem; }

/* Related */
.tb-related { max-width: var(--max-w); margin: 4rem auto 3rem; padding: 0 1.5rem; }
.tb-related h3 { font-family: var(--font-serif); font-size: 1.5rem; margin: 0 0 1.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--color-hair); }
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 700px) { .tb-related-grid { grid-template-columns: 1fr; } }
.tb-related-card { text-decoration: none; color: inherit; display: block; }
.tb-related-cover { margin-bottom: 0.8rem; background: var(--color-mat); padding: 10px; border: 1px solid var(--color-ink); }
.tb-related-cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tb-related-title { font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.28; margin: 0; }
.tb-related-card:hover .tb-related-title { color: var(--color-accent-deep); }

/* ============================================================
   ARCHIVE
   ============================================================ */
.tb-archive-hero { background: var(--color-bg-deep); padding: 3.6rem 1.5rem 3rem; border-bottom: 1px solid var(--color-hair); }
.tb-archive-hero .tb-eyebrow { margin-bottom: 0.8rem; color: var(--color-accent-deep); }
.tb-archive-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0 0 0.6rem; }
.tb-archive-hero p { max-width: 640px; margin: 0; font-size: 1.02rem; color: var(--color-muted); line-height: 1.6; }

.tb-archive-feature { max-width: var(--max-w); margin: 3rem auto 0; padding: 0 1.5rem; }
.tb-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 0 0 3rem; border-bottom: 1px solid var(--color-hair); }
@media (max-width: 800px) { .tb-spread { grid-template-columns: 1fr; gap: 2rem; } }
.tb-spread-image { display: block; background: var(--color-mat); padding: var(--mat-pad); border: 1px solid var(--color-ink); }
.tb-spread-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tb-spread-text h3 { font-family: var(--font-serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.2; margin: 0 0 1rem; }
.tb-spread-text h3 a { color: inherit; text-decoration: none; }
.tb-spread-text h3 a:hover { color: var(--color-accent-deep); }
.tb-spread-excerpt { font-size: 1.05rem; color: var(--color-muted); margin-bottom: 1.2rem; line-height: 1.65; }
.tb-spread-read { display: inline-block; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-deep); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--color-accent); padding-bottom: 2px; }

.tb-archive-grid { max-width: var(--max-w); margin: 3rem auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
@media (max-width: 900px) { .tb-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-archive-grid { grid-template-columns: 1fr; } }
.tb-archive-card { text-decoration: none; color: inherit; display: block; }
.tb-archive-cover { margin-bottom: 1rem; background: var(--color-mat); padding: 10px; border: 1px solid var(--color-ink); }
.tb-archive-cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tb-archive-meta { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-deep); margin-bottom: 0.4rem; font-weight: 500; }
.tb-archive-title { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.24; margin: 0 0 0.5rem; }
.tb-archive-excerpt { font-family: var(--font-sans); font-size: 0.94rem; color: var(--color-muted); line-height: 1.55; }

/* Pagination */
.pagination { font-family: var(--font-sans); }
.pagination .page-numbers { display: inline-block; padding: 0.5rem 0.9rem; margin: 0 0.15rem; color: var(--color-accent-deep); text-decoration: none; border: 1px solid var(--color-hair); font-size: 0.9rem; }
.pagination .page-numbers.current { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.pagination a.page-numbers:hover { border-color: var(--color-accent); color: var(--color-ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer, .site-info { background: var(--color-ink); color: var(--color-accent-soft); font-family: var(--font-sans); font-size: 0.9rem; }
.site-footer a, .site-info a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover, .site-info a:hover { color: var(--color-accent-soft); }
.footer-widgets, .site-info { padding: 2.5rem 1.5rem; }

/* ============================================================
   READING PROGRESS BAR (CSS scroll-driven, progressive-enhance)
   ============================================================ */
.tb-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .tb-progress {
    display: block; 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); } }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
