/*
Theme Name:   Life in Soft Colors Child
Theme URI:    https://lifeinsoftcolors.org
Description:  Sun-print / Cyanotype Album editorial child theme for Life in Soft Colors. GeneratePress child.
Author:       Wren Callahan
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   LIFE IN SOFT COLORS - DESIGN SYSTEM
   Archetype : Sun-print / Cyanotype Album
   Fonts     : Arapey (display, pulled lines, annotations) / Kumbh Sans (body, UI)
   Palette   : cyanotype indigo #2E4A6B . rag paper #F2EFE7 . dusty rose #B98A8A

   Signature devices (this site only):
     1. Exposure scale  - six discrete solid blocks stepping light to dark.
        Replaces the uppercase tracking eyebrow everywhere.
     2. Cyanotype duotone - index imagery bleached to high-key grey, multiplied
        over indigo, highlights screened back. Content imagery stays full colour.
     3. Brush deckle edge - clip-path on hero image and dark bands.
     4. Annotation line - Arapey italic metadata, pipe separated.

   Hard rules: radius 0 everywhere. Zero box-shadow. Zero gradient backgrounds.
   Zero em dash. Motion dial 1 (CSS hover + native scroll progress only).
   ============================================================ */

:root {
  --color-primary:      #2E4A6B;
  --color-primary-dark: #1B3050;
  --color-primary-soft: #A8BDD4;
  --color-bg:           #F2EFE7;
  --color-bg-deep:      #E8E3D7;
  --color-accent:       #B98A8A;
  --color-accent-soft:  #D8BCBC;
  --color-accent-deep:  #96696A;
  --color-charcoal:     #2B3440;
  --color-ink:          #1B3050;
  --color-muted:        #6C7887;
  --color-line:         #CFD8E3;
  --color-white:        #FBFAF6;

  /* exposure scale steps */
  --exp-1: #C9D7E4;
  --exp-2: #A8BDD4;
  --exp-3: #7D9BBB;
  --exp-4: #52759B;
  --exp-5: #2E4A6B;
  --exp-6: #1B3050;

  --font-serif: 'Arapey', Georgia, 'Times New Roman', serif;
  --font-sans:  'Kumbh Sans', 'Trebuchet MS', 'Segoe UI', sans-serif;

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

  /* every radius token is 0: a sun-print sheet is cut, not rounded */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;

  --deckle-h: polygon(0 11px, 11% 3px, 26% 13px, 40% 2px, 57% 11px, 72% 3px, 87% 12px, 100% 5px,
                      100% calc(100% - 9px), 85% calc(100% - 2px), 69% calc(100% - 13px),
                      53% calc(100% - 3px), 37% calc(100% - 11px), 21% calc(100% - 2px),
                      8% calc(100% - 11px), 0 calc(100% - 3px));
}

/* ============================================================
   GLOBAL
   ============================================================ */
body, .entry-content, .widget {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-charcoal);
  background: var(--color-bg);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: 0;
  line-height: 1.15;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.25rem); margin-top: 2.3em; margin-bottom: 0.55em; }
h3 { font-size: 1.38rem; margin-top: 1.9em; margin-bottom: 0.45em; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
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: transparent;
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 2.1em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--color-ink);
}

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-family: var(--font-serif); font-style: italic; font-size: 0.95rem; color: var(--color-muted); margin-top: 0.5rem; }

/* ============================================================
   SIGNATURE 1 - EXPOSURE SCALE
   Six discrete solid blocks, light to dark. Used instead of an
   uppercase tracking eyebrow. Bounded colour, never a gradient.
   ============================================================ */
.lsc-scale { display: flex; gap: 3px; align-items: center; }
.lsc-scale i { display: block; width: 22px; height: 10px; }
.lsc-scale i:nth-child(1) { background: var(--exp-1); }
.lsc-scale i:nth-child(2) { background: var(--exp-2); }
.lsc-scale i:nth-child(3) { background: var(--exp-3); }
.lsc-scale i:nth-child(4) { background: var(--exp-4); }
.lsc-scale i:nth-child(5) { background: var(--exp-5); }
.lsc-scale i:nth-child(6) { background: var(--exp-6); }

.lsc-scale.small i { width: 14px; height: 7px; }
.lsc-scale.vert { flex-direction: column; gap: 3px; }
.lsc-scale.vert i { width: 10px; height: 24px; }

/* on dark bands the scale inverts so the lightest step reads first */
.lsc-scale.on-dark i:nth-child(1) { background: #F2EFE7; }
.lsc-scale.on-dark i:nth-child(2) { background: #C9D7E4; }
.lsc-scale.on-dark i:nth-child(3) { background: #A8BDD4; }
.lsc-scale.on-dark i:nth-child(4) { background: #7D9BBB; }
.lsc-scale.on-dark i:nth-child(5) { background: #52759B; }
.lsc-scale.on-dark i:nth-child(6) { background: #B98A8A; }

/* ============================================================
   SIGNATURE 4 - ANNOTATION LINE + PULLED LINE
   Arapey italic metadata, pipe separated (never a middle dot).
   ============================================================ */
.lsc-annot {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}
.lsc-annot b { font-style: italic; font-weight: 400; color: var(--color-primary); }
.lsc-annot span { color: var(--color-primary-soft); padding: 0 0.35em; }

.lsc-pulled {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--color-charcoal);
  margin: 0.35rem 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-accent-soft);
}

/* ============================================================
   SIGNATURE 2 - CYANOTYPE DUOTONE
   Bleach the photo to high-key grey, multiply it over the indigo
   ground, then screen the highlights back so it stays luminous.
   Applied to INDEX imagery only (category cards, section thumbs).
   Article imagery stays full colour: this site is about colour.
   ============================================================ */
.lsc-cyano { position: relative; overflow: hidden; background: var(--color-primary); }
.lsc-cyano img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(1.5) contrast(0.72);
  mix-blend-mode: multiply;
}
.lsc-cyano::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: var(--color-primary-soft);
  mix-blend-mode: screen;
  opacity: 0.3;
}

/* ============================================================
   MASTHEAD - left aligned, no centred magazine plate
   ============================================================ */
.tb-masthead { background: var(--color-bg); padding: 1.9rem 0 1.4rem; border-bottom: none; }
.tb-masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.6rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.6rem;
}
.tb-masthead-title {
  display: block;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--color-ink);
  line-height: 0.95;
  text-decoration: none;
}
.tb-masthead-title:hover { color: var(--color-primary); }
.tb-masthead-tagline {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--color-muted);
  margin-top: 0.5rem;
}
.tb-masthead-meta {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  text-transform: none;
  padding-bottom: 0.35rem;
}
.tb-masthead-meta.right { text-align: right; }
.tb-masthead-rule { max-width: var(--max-w); margin: 1.3rem auto 0; padding: 0 1.6rem; }
.tb-masthead-rule div { height: 1px; background: var(--color-line); }

@media (max-width: 700px) {
  .tb-masthead-inner { grid-template-columns: 1fr; gap: 0.5rem; text-align: left; }
  .tb-masthead-meta, .tb-masthead-meta.right { text-align: left; }
}

/* ============================================================
   LAYOUT RESET
   ============================================================ */
.tb-main { display: block !important; width: 100%; }
.tb-main > * { width: 100%; }  /* do NOT add display:block here: it flattens child grids */

/* ============================================================
   NAV
   ============================================================ */
.tb-nav { background: var(--color-bg); border: none; 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.75rem 0 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 1.5rem;
  border-bottom: 1px solid var(--color-line);
}
.tb-nav-menu li { list-style: none; margin: 0; padding: 0; }
.tb-nav-menu li a {
  display: block;
  padding: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: none;
  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-primary); border-bottom-color: var(--color-accent); }
.tb-nav-menu li.current-menu-item > a { color: var(--color-primary); border-bottom-color: var(--color-accent); }
@media (max-width: 640px) {
  .tb-nav-menu { gap: 0 1rem; }
  .tb-nav-menu li a { font-size: 0.78rem; }
}

/* ============================================================
   1. HERO - asymmetric split, deckle edged sun-print
   ============================================================ */
.tb-hero { background: var(--color-bg); padding: 3rem 0 3.4rem; border-bottom: none; }
.tb-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.6rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.2rem;
}
@media (max-width: 980px) { .tb-hero-inner { grid-template-columns: 1fr; gap: 2.4rem; } }

.tb-hero-main { display: flex; flex-direction: column; }
.tb-hero-cover {
  display: block;
  background: var(--color-primary-soft);
  margin-bottom: 0;
  overflow: visible;
  aspect-ratio: auto;
}
.tb-hero-cover img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  clip-path: var(--deckle-h);
}
.lsc-hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-line);
}
.tb-hero-main h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.06;
  margin: 1.2rem 0 0.9rem;
}
/* Headline links never take the global underline: the deckle edge and the
   exposure scale already mark this block, an underline just adds noise. */
.tb-hero-main h1 a,
.tb-mosaic-title a, .tb-catcard-name a, .tb-archive-title a,
.tb-related-title a, .tb-bysection-title a, .tb-bysection-block h3 a,
.tb-spread-text h3 a, .lsc-side-title, .tb-masthead-title {
  text-decoration: none;
}
.tb-hero-main h1 a { color: inherit; }
.tb-hero-main h1 a:hover { color: var(--color-accent-deep); }
.tb-hero-main .lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.3rem;
  line-height: 1.6;
  max-width: 56ch;
}
.tb-hero-cta {
  display: inline-block;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.83rem;
  letter-spacing: 0.05em;
  text-transform: none;
  white-space: nowrap;
  align-self: flex-start;
  transition: background 0.18s;
}
.tb-hero-cta:hover { background: var(--color-accent-deep); color: var(--color-bg); }

/* Hero side: this week's reading */
.tb-hero-side {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.35rem 0 0;
  align-self: start;
}
.tb-hero-side h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-ink);
  margin: 0.7rem 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--color-primary);
}
.tb-hero-side ol { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.tb-hero-side li {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--color-line);
  grid-template-columns: none;
  counter-increment: none;
}
.tb-hero-side li:first-child { padding-top: 0; }
.tb-hero-side li:last-child { border-bottom: none; padding-bottom: 0; }
.tb-hero-side li::before { content: none; }
.tb-hero-side li > a,
.tb-hero-side li a.lsc-side-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  line-height: 1.24;
  color: var(--color-ink);
  text-decoration: none;
}
.tb-hero-side li a.lsc-side-title:hover { color: var(--color-accent-deep); }
.tb-hero-side .lsc-annot { margin-top: 0.35rem; font-size: 0.88rem; }

/* ============================================================
   2. EDITOR'S LETTER - narrow reading column, scale in the margin
   ============================================================ */
.tb-letter {
  background: var(--color-bg);
  border: none;
  padding: 0.5rem 1.6rem 3.4rem;
}
.tb-letter-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 1.5rem;
  align-items: start;
  text-align: left;
}
.tb-letter-inner > .lsc-scale.vert { margin-top: 0.75rem; }
.tb-letter h3 {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 400;
  margin: 0 0 1.1rem;
  line-height: 1.2;
}
.tb-letter p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: normal;
  color: var(--color-charcoal);
  line-height: 1.62;
  margin: 0 0 1rem;
}
.tb-letter .tb-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--color-primary);
  margin-top: 0.8rem;
}
@media (max-width: 640px) {
  .tb-letter-inner { grid-template-columns: 1fr; gap: 1.2rem; text-align: left; }
  .tb-letter-inner > .lsc-scale.vert { flex-direction: row; margin-top: 0; }
  .tb-letter-inner > .lsc-scale.vert i { width: 24px; height: 10px; }
}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.tb-section { max-width: var(--max-w); margin: 0 auto; padding: 4rem 1.6rem; }
.tb-section.bg-deep {
  max-width: 100%;
  background: var(--color-bg-deep);
  border: none;
  padding: 4rem 1.6rem;
}
.tb-section.bg-deep > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.tb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 1rem;
  gap: 1.4rem;
}
.tb-section-head-left { display: flex; flex-direction: column; gap: 0.7rem; }
.tb-section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  margin: 0;
  font-weight: 400;
}
.tb-section-head .tb-more {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-accent);
}
.tb-section-head .tb-more:hover { color: var(--color-accent-deep); }

/* ============================================================
   3. CATEGORY EXPOSURE GRID
   4 columns x 3 rows = 12 cells, filled EXACTLY by 8 cards via
   explicit placement. Auto placement cannot backfill around spans
   and leaves visible holes, so every cell is addressed by hand.
   ============================================================ */
.tb-catgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 196px;
  gap: 1.1rem;
}
.tb-catcard {
  position: relative;
  display: block;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  background: var(--color-primary);
  transition: background 0.2s;
}
.tb-catcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(1) brightness(1.5) contrast(0.72);
  mix-blend-mode: multiply;
  transition: none;
}
.tb-catcard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--color-primary-soft);
  mix-blend-mode: screen;
  opacity: 0.3;
}
.tb-catcard:hover { background: var(--color-accent-deep); }
.tb-catcard:hover img { transform: none; }

/* #1 = 2x2, #5 = 1x2, #8 = 2x1, plus 5 singles = 12 cells exactly */
.tb-catcard:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.tb-catcard:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.tb-catcard:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.tb-catcard:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; }
.tb-catcard:nth-child(5) { grid-column: 4 / 5; grid-row: 2 / 4; }
.tb-catcard:nth-child(6) { grid-column: 1 / 2; grid-row: 3 / 4; }
.tb-catcard:nth-child(7) { grid-column: 2 / 3; grid-row: 3 / 4; }
.tb-catcard:nth-child(8) { grid-column: 3 / 4; grid-row: 3 / 4; }

.tb-catcard-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 0.7rem 1rem 0.8rem;
  background: var(--color-primary-dark);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--color-bg);
}
.tb-catcard-name {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  color: var(--color-bg);
}
.tb-catcard-count {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-accent-soft);
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .tb-catgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tb-catcard { grid-column: auto !important; grid-row: auto !important; }
  .tb-catcard:nth-child(1) { grid-column: span 2 !important; }
}
@media (max-width: 640px) {
  .tb-catgrid { grid-template-columns: 1fr; grid-auto-rows: 170px; }
  .tb-catcard, .tb-catcard:nth-child(1) { grid-column: auto !important; grid-row: auto !important; }
}

/* ============================================================
   4. PULL QUOTE - deckle edged dark band
   ============================================================ */
.tb-pullquote {
  background: var(--color-primary-dark);
  color: var(--color-bg);
  padding: 4.4rem 1.6rem;
  text-align: center;
  clip-path: var(--deckle-h);
}
.tb-pullquote-inner { max-width: 820px; margin: 0 auto; }
.tb-pullquote .lsc-scale { justify-content: center; margin-bottom: 1.6rem; }
.tb-pullquote blockquote {
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.55rem, 3.1vw, 2.25rem);
  line-height: 1.34;
  color: var(--color-bg);
  padding: 0;
  margin: 0 0 1.2rem;
  font-weight: 400;
}
.tb-pullquote .tb-pullquote-source {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-primary-soft);
  opacity: 1;
}
.tb-pullquote .tb-pullquote-source a {
  color: var(--color-accent-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
}

/* ============================================================
   5. MOSAIC - borderless, shadowless, album-page scatter
   ============================================================ */
.tb-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(110px, auto);
  gap: 1.6rem 1.5rem;
}
.tb-mosaic-item {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: none;
}
.tb-mosaic-item:hover { transform: none; box-shadow: none; }
.tb-mosaic-item .tb-mosaic-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--color-primary-soft); }
.tb-mosaic-item.tall .tb-mosaic-cover { aspect-ratio: 3/4; }
.tb-mosaic-item.wide .tb-mosaic-cover { aspect-ratio: 16/9; }
.tb-mosaic-item.big { grid-row: span 2; }
.tb-mosaic-item.big .tb-mosaic-cover { aspect-ratio: 4/5; }
.tb-mosaic-item .tb-mosaic-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: none; }
.tb-mosaic-item:hover .tb-mosaic-cover img { transform: none; }

.tb-mosaic-item .tb-mosaic-body { padding: 0.85rem 0 0; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.tb-mosaic-item .tb-mosaic-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: var(--color-ink);
}
.tb-mosaic-item.big .tb-mosaic-title { font-size: 1.65rem; }
.tb-mosaic-item:hover .tb-mosaic-title { color: var(--color-accent-deep); }
.tb-mosaic-item .tb-mosaic-excerpt {
  font-size: 0.93rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tb-mosaic-item .lsc-scale { margin-bottom: 0.15rem; }

@media (max-width: 980px) {
  .tb-mosaic { grid-template-columns: repeat(2, 1fr); }
  .tb-mosaic-item.big { grid-row: auto; }
}
@media (max-width: 640px) { .tb-mosaic { grid-template-columns: 1fr; } }

/* ============================================================
   6. BY SECTION - cyanotype thumbs
   ============================================================ */
.tb-bysection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2.6rem; }
@media (max-width: 980px) { .tb-bysection { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tb-bysection { grid-template-columns: 1fr; } }

.tb-bysection-block { display: flex; flex-direction: column; }
.tb-bysection-block h3 {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 400;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--color-primary);
  display: block;
  align-self: stretch;
}
.tb-bysection-block h3 a { color: var(--color-ink); text-decoration: none; }
.tb-bysection-block h3 a:hover { color: var(--color-accent-deep); }

.tb-bysection-list { list-style: none; padding: 0; margin: 0 0 0.9rem; display: flex; flex-direction: column; gap: 0.95rem; }
.tb-bysection-list li { display: grid; grid-template-columns: 64px 1fr; gap: 0.9rem; align-items: start; }
.tb-bysection-list .tb-bysection-thumb {
  width: 64px; height: 64px;
  border-radius: 0;
  overflow: hidden;
  background: var(--color-primary);
  position: relative;
  display: block;
}
.tb-bysection-list .tb-bysection-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(1) brightness(1.5) contrast(0.72);
  mix-blend-mode: multiply;
}
.tb-bysection-list .tb-bysection-thumb::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: var(--color-primary-soft);
  mix-blend-mode: screen;
  opacity: 0.3;
}
.tb-bysection-list .tb-bysection-title {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.28;
  margin: 0;
  font-weight: 400;
}
.tb-bysection-list .tb-bysection-title a { color: var(--color-ink); text-decoration: none; }
.tb-bysection-list .tb-bysection-title a:hover { color: var(--color-accent-deep); }
.tb-bysection-list .tb-bysection-date {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}
.tb-bysection-block .tb-bysection-more {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 0.4rem;
  align-self: flex-start;
  border-bottom: 1px solid var(--color-accent);
}
.tb-bysection-block .tb-bysection-more:hover { color: var(--color-accent-deep); }

/* ============================================================
   7. COLOUR NOTES - dark band, asymmetric split
   ============================================================ */
.lsc-notes { background: var(--color-primary-dark); color: var(--color-bg); padding: 4rem 1.6rem; }
.lsc-notes-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.2rem;
  align-items: start;
}
.lsc-notes h2 { color: var(--color-bg); font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 1rem 0 0.8rem; }
.lsc-notes-lede { color: var(--color-primary-soft); font-size: 1rem; margin: 0; }
.lsc-notes-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.lsc-note h4 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; color: var(--color-bg); margin: 0.9rem 0 0.5rem; }
.lsc-note p { font-size: 0.94rem; color: var(--color-primary-soft); line-height: 1.6; margin: 0; }
@media (max-width: 980px) { .lsc-notes-inner { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 640px) { .lsc-notes-list { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ============================================================
   8. NEWSLETTER
   ============================================================ */
.tb-newsletter { background: var(--color-ink); color: var(--color-bg); padding: 4rem 1.6rem; text-align: left; }
.tb-newsletter-inner { max-width: 640px; margin: 0 auto; }
.tb-newsletter h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--color-bg);
  font-weight: 400;
  margin: 1rem 0 0.7rem;
}
.tb-newsletter p { color: var(--color-primary-soft); font-size: 1rem; margin-bottom: 1.5rem; }
.tb-newsletter-form { display: flex; gap: 0.5rem; max-width: none; margin: 0; flex-wrap: wrap; justify-content: flex-start; }
.tb-newsletter-form input[type="email"] {
  flex: 1 1 240px;
  padding: 0.82rem 1rem;
  border: 1px solid var(--color-primary-soft);
  background: transparent;
  color: var(--color-bg);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.94rem;
}
.tb-newsletter-form input[type="email"]::placeholder { color: #9FB2C7; }
.tb-newsletter-form button {
  background: var(--color-accent);
  color: #241416;
  border: none;
  padding: 0.82rem 1.6rem;
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s;
}
.tb-newsletter-form button:hover { background: var(--color-accent-soft); }
.tb-newsletter-note { font-size: 0.79rem; color: #93A6BC; margin-top: 0.9rem; }
.tb-newsletter-note a { color: #93A6BC; }

/* ============================================================
   9. SINGLE POST
   ============================================================ */
.single .entry-content,
.page .entry-content {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.19rem;
  line-height: 1.75;
  color: var(--color-charcoal);
}
.single .entry-content > p:first-of-type { font-size: 1.3rem; line-height: 1.6; color: var(--color-ink); }
/* no drop cap: the sun-print language is flat and even, not decorated */
.single .entry-content > p:first-of-type::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; }

.tb-post-header { max-width: var(--max-w-narrow); margin: 2.6rem auto 1.4rem; padding: 0 1.6rem; }
.tb-breadcrumb {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-muted);
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.tb-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.tb-breadcrumb a:hover { color: var(--color-accent-deep); }
.tb-post-cat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-bg);
  background: var(--color-primary);
  padding: 0.3rem 0.7rem;
  border-radius: 0;
  text-decoration: none;
  margin-bottom: 0.9rem;
}
.tb-post-cat:hover { background: var(--color-accent-deep); color: var(--color-bg); }
.tb-post-title { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 400; line-height: 1.1; margin: 0.4rem 0 1rem; }
.tb-post-meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--color-muted);
  letter-spacing: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
}
.tb-post-meta strong { color: var(--color-primary); font-weight: 400; font-style: italic; }
.tb-post-meta .lsc-sep { color: var(--color-primary-soft); }

.tb-post-cover { max-width: var(--max-w-wide); margin: 1.8rem auto 2.8rem; padding: 0 1.6rem; }
.tb-post-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0;
  clip-path: var(--deckle-h);
}

.ftc-disclosure {
  max-width: var(--max-w-narrow);
  margin: 0 auto 2.4rem;
  background: var(--color-bg-deep);
  border-left: 4px solid var(--color-primary);
  padding: 0.95rem 1.2rem;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  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.35rem, 2.4vw, 1.65rem);
  line-height: 1.4;
  color: var(--color-primary);
  padding: 1.5rem 0;
  margin: 2.4rem 0;
  border-top: 2px solid var(--color-accent-soft);
  border-bottom: 2px solid var(--color-accent-soft);
  border-radius: 0;
}

.tb-author-bio {
  max-width: var(--max-w-narrow);
  margin: 3.6rem auto 2rem;
  padding: 1.8rem 0 0;
  background: transparent;
  border: none;
  border-top: 2px solid var(--color-primary);
  border-radius: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  align-items: start;
}
.tb-author-avatar { display: none; }
.tb-author-bio .tb-eyebrow { display: none; }
.tb-author-bio h4 { margin: 0 0 0.4rem; font-size: 1.3rem; font-family: var(--font-serif); font-weight: 400; }
.tb-author-bio p { font-family: var(--font-serif); font-size: 1.02rem; color: var(--color-charcoal); margin: 0 0 0.6rem; line-height: 1.62; }
.tb-author-bio a { font-family: var(--font-sans); font-size: 0.83rem; font-weight: 500; color: var(--color-primary); text-decoration: none; border-bottom: 1px solid var(--color-accent); }

.tb-related { max-width: var(--max-w); margin: 3.4rem auto 3rem; padding: 0 1.6rem; }
.tb-related h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-line);
}
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .tb-related-grid { grid-template-columns: 1fr; } }
.tb-related-card { text-decoration: none; color: inherit; display: block; }
.tb-related-card .tb-related-cover { aspect-ratio: 4/3; border-radius: 0; overflow: hidden; background: var(--color-primary-soft); margin-bottom: 0.8rem; }
.tb-related-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-related-card .tb-related-title { font-family: var(--font-serif); font-size: 1.16rem; line-height: 1.25; margin: 0; font-weight: 400; color: var(--color-ink); }
.tb-related-card:hover .tb-related-title { color: var(--color-accent-deep); }

/* ============================================================
   10. ARCHIVE
   ============================================================ */
.tb-archive-hero {
  background: var(--color-bg);
  padding: 3rem 1.6rem 2.4rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  max-width: var(--max-w);
  margin: 0 auto;
}
.tb-archive-hero .lsc-scale { margin-bottom: 1rem; }
.tb-archive-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 400; margin: 0 0 0.6rem; }
.tb-archive-hero p { max-width: 62ch; margin: 0; font-family: var(--font-serif); font-size: 1.1rem; color: var(--color-muted); line-height: 1.6; }
.tb-archive-count { font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; color: var(--color-primary); margin: 0 0 0.8rem; }

.tb-archive-grid {
  max-width: var(--max-w);
  margin: 2.6rem auto;
  padding: 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.7rem;
}
@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-card .tb-archive-cover { aspect-ratio: 4/3; border-radius: 0; overflow: hidden; background: var(--color-primary-soft); margin-bottom: 0.85rem; }
.tb-archive-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-archive-card .tb-archive-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; line-height: 1.24; margin: 0 0 0.45rem; color: var(--color-ink); }
.tb-archive-card:hover .tb-archive-title { color: var(--color-accent-deep); }
.tb-archive-card .tb-archive-excerpt { font-size: 0.94rem; color: var(--color-muted); line-height: 1.55; margin: 0 0 0.4rem; }

.tb-archive-feature { max-width: var(--max-w); margin: 2.6rem auto 0; padding: 0 1.6rem; }
.tb-spread {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.6rem;
  align-items: center;
  padding: 0 0 2.6rem;
  border-bottom: 1px solid var(--color-line);
}
@media (max-width: 800px) { .tb-spread { grid-template-columns: 1fr; gap: 1.8rem; } }
.tb-spread-image { border-radius: 0; overflow: hidden; aspect-ratio: 4/3; background: var(--color-primary-soft); }
.tb-spread-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tb-spread-text h3 { font-family: var(--font-serif); font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 400; line-height: 1.18; margin: 0.6rem 0 0.9rem; }
.tb-spread-text h3 a { color: var(--color-ink); text-decoration: none; }
.tb-spread-text h3 a:hover { color: var(--color-accent-deep); }
.tb-spread-text .tb-spread-excerpt { font-family: var(--font-serif); font-size: 1.08rem; color: var(--color-muted); margin-bottom: 1rem; line-height: 1.62; }
.tb-spread-text .tb-spread-read {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
}

.pagination, .nav-links { font-family: var(--font-sans); font-size: 0.9rem; }
.pagination .page-numbers, .nav-links .page-numbers {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-line);
  color: var(--color-primary);
  text-decoration: none;
  margin: 0 0.15rem;
  border-radius: 0;
}
.pagination .page-numbers.current, .nav-links .page-numbers.current { background: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary); }

/* ============================================================
   11. TRUST PAGES - "The Sun-Print Sheet"
   Pale left aligned head (no reversed block, no frame, no arch),
   vertical density-step contents, short tick rule above each h2,
   three sided identity block, footer band of tonal step links.
   ============================================================ */
.lsc-sheet { max-width: 860px; margin: 0 auto; padding: 0 1.6rem; }

.lsc-sheet-head { padding: 3rem 0 0; text-align: left; }
.lsc-sheet-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}
.lsc-sheet-title { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 400; line-height: 1.08; margin: 0 0 1.3rem; }
.lsc-sheet-stamp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--color-line);
}
.lsc-sheet-updated { font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; color: var(--color-muted); margin: 0; }

/* contents: a vertical density step, one block per entry */
.lsc-sheet-toc { margin: 2rem 0 2.4rem; }
.lsc-sheet-toc-title { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 400; color: var(--color-ink); margin: 0 0 0.9rem; }
.lsc-sheet-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.lsc-sheet-toc li { display: grid; grid-template-columns: 10px 1fr; gap: 0.9rem; align-items: center; padding: 0.42rem 0; }
.lsc-sheet-toc li .lsc-step { display: block; width: 10px; height: 10px; }
.lsc-sheet-toc li:nth-child(1) .lsc-step { background: var(--exp-1); }
.lsc-sheet-toc li:nth-child(2) .lsc-step { background: var(--exp-2); }
.lsc-sheet-toc li:nth-child(3) .lsc-step { background: var(--exp-3); }
.lsc-sheet-toc li:nth-child(4) .lsc-step { background: var(--exp-4); }
.lsc-sheet-toc li:nth-child(5) .lsc-step { background: var(--exp-5); }
.lsc-sheet-toc li:nth-child(n+6) .lsc-step { background: var(--exp-6); }
.lsc-sheet-toc li a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-charcoal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lsc-sheet-toc li a:hover { color: var(--color-primary); border-bottom-color: var(--color-accent); }

/* body */
.lsc-sheet-body { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.75; color: var(--color-charcoal); }
.lsc-sheet-body h2 {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-ink);
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.5rem;
}
/* short tick rule above each h2: three solid steps, no numbering */
.lsc-sheet-body h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 7px;
  background:
    linear-gradient(to right, var(--exp-2) 0 16px, transparent 16px 16px),
    linear-gradient(to right, transparent 0 16px, var(--exp-4) 16px 32px, transparent 32px),
    linear-gradient(to right, transparent 0 32px, var(--exp-6) 32px 48px);
}
.lsc-sheet-body h3 { font-size: 1.25rem; margin: 1.9rem 0 0.5rem; }
.lsc-sheet-body ul, .lsc-sheet-body ol { padding-left: 1.3rem; margin: 0 0 1.15em; }
.lsc-sheet-body li { margin-bottom: 0.45rem; }
.lsc-sheet-body a { color: var(--color-primary); }

/* identity block: three sided, right edge open */
.lsc-sheet-body > p:has(> strong:first-child) {
  background: var(--color-bg-deep);
  border-left: 4px solid var(--color-primary);
  border-top: 1px solid var(--color-primary-soft);
  border-bottom: 1px solid var(--color-primary-soft);
  border-right: none;
  padding: 0.85rem 1.1rem;
  margin: 0.5rem 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}
.lsc-sheet-body > p:has(> strong:first-child) > strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

/* footer: a band of tonal step links to the other trust pages */
.lsc-sheet-foot { margin: 3.2rem 0 4rem; padding-top: 1.6rem; border-top: 1px solid var(--color-line); }
.lsc-sheet-foot-title { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 400; color: var(--color-ink); margin: 0 0 1.1rem; }
.lsc-sheet-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; }
.lsc-sheet-link {
  display: block;
  padding: 0.8rem 0.7rem 0.85rem;
  background: var(--color-bg-deep);
  border-top: 3px solid var(--color-primary);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.lsc-sheet-links a:nth-child(1) { border-top-color: var(--exp-2); }
.lsc-sheet-links a:nth-child(2) { border-top-color: var(--exp-3); }
.lsc-sheet-links a:nth-child(3) { border-top-color: var(--exp-4); }
.lsc-sheet-links a:nth-child(4) { border-top-color: var(--exp-5); }
.lsc-sheet-links a:nth-child(5) { border-top-color: var(--exp-6); }
.lsc-sheet-link:hover { border-top-color: var(--color-accent); color: var(--color-primary); }
.lsc-sheet-note { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--color-muted); margin: 1.4rem 0 0; }
@media (max-width: 860px) { .lsc-sheet-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lsc-sheet-links { grid-template-columns: 1fr; } }

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

/* ============================================================
   13. READING PROGRESS (native scroll driven, zero 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: lsc-progress linear;
    animation-timeline: scroll(root block);
    z-index: 9999;
  }
  @keyframes lsc-progress { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .tb-progress { display: none; }
  * { transition: none !important; animation: none !important; }
}
