/*
Theme Name:   Everyday Nesting Child
Theme URI:    https://everydaynesting.org
Description:  Seed Packet / Nursery Catalogue child theme for Everyday Nesting. Scalloped packet openings, punched tear lines, seed-drill rules and leader-dot catalogue rows on kraft paper, moss and brick.
Author:       Cora Whitfield
Template:     generatepress
Version:      1.0.0
*/

/* ============================================================
   EVERYDAY NESTING - DESIGN SYSTEM
   Archetype : Seed Packet / Nursery Catalogue
   Type      : Eczar (display) / Lexend (body + meta)
   Palette   : moss DOMINANT (ink, nav, dark bands, footer)
               kraft paper ground, brick accent in small areas only
   Shape lock: torn-paper family. radius 0 everywhere. The soft
               reading comes from scalloped openings and punched
               tear lines, never from rounded corners or pills.
   Motion    : dial 1. CSS hover only. No JS, no scroll effects.
   Signatures: 1) seed-drill rule (tiny squares in a furrow)
               2) packet edge (scalloped opening + punched perforation)
               3) leader-dot row (nursery catalogue index typography)
   ============================================================ */

:root {
  /* moss is the DOMINANT colour, not merely an accent */
  --color-primary: #5A6B4A;
  --color-primary-dark: #2E3A26;
  --color-primary-soft: #B9C2AA;
  --moss: #5A6B4A;
  --moss-deep: #2E3A26;
  --moss-deeper: #222C1C;
  --moss-soft: #B9C2AA;
  --moss-40: rgba(90, 107, 74, .42);

  /* kraft paper */
  --color-bg: #EFE6D3;
  --color-bg-deep: #E4D8BE;
  --kraft: #EFE6D3;
  --kraft-deep: #E4D8BE;
  --paper: #FBF6EC;
  --color-white: #FBF6EC;

  /* brick: SMALL AREA ONLY. never promoted to a second accent */
  --color-accent: #A6503C;
  --color-accent-deep: #8A3F2E;
  --color-accent-soft: #D9AC9C;
  --brick: #A6503C;
  --brick-deep: #8A3F2E;

  --color-ink: #2B3123;
  --color-charcoal: #40483A;
  --color-muted: #7A7E6C;
  --color-line: #D3C5A6;
  --color-line-soft: #DFD3B8;

  --font-serif: 'Eczar', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lexend', 'Segoe UI', sans-serif;

  --max-w: 1280px;
  --max-w-wide: 1400px;
  --max-w-narrow: 760px;
  --pad: 28px;

  /* shape lock: torn paper, never rounded */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
}

/* ============================================================
   GLOBAL
   ============================================================ */
* { box-sizing: border-box; }

body, .entry-content, .widget {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-charcoal);
  font-size: 16.5px;
  line-height: 1.72;
  background-color: var(--kraft);
  /* kraft fibre: two directions, very low opacity, zero images */
  background-image:
    repeating-linear-gradient(0deg, rgba(90, 107, 74, .035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(166, 80, 60, .022) 0 1px, transparent 1px 7px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.14;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 600; margin-top: 2.2em; margin-bottom: .55em; }
h3 { font-size: 1.28rem; font-weight: 600; margin-top: 1.9em; margin-bottom: .45em; }

a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color .18s;
}
a:hover { color: var(--brick); }
p { margin: 0 0 1.2em; }

img { max-width: 100%; height: auto; display: block; border-radius: 0; }
figure { margin: 2em 0; }
figcaption { font-size: .88rem; color: var(--color-muted); margin-top: .5rem; }

blockquote {
  border-left: 3px solid var(--moss);
  background: var(--kraft-deep);
  padding: 1.4rem 1.6rem;
  margin: 2.2em 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.42;
  color: var(--color-ink);
}

hr { border: none; height: 3px; margin: 3em 0;
     background: repeating-linear-gradient(90deg, var(--moss-40) 0 3px, transparent 3px 11px); }

.tb-eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 600;
}

.nest-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

.tb-main { display: flow-root; }
.tb-main > * { width: 100%; }  /* 勿加 display:block：会压掉直接子级 grid/flex 布局 */

/* ============================================================
   SIGNATURE 1 - SEED DRILL RULE (tiny squares, seeds in a furrow)
   ============================================================ */
.nest-drill {
  flex: 1 1 auto; height: 3px; align-self: center; margin: 0 22px;
  background: repeating-linear-gradient(90deg, var(--moss-40) 0 3px, transparent 3px 11px);
}
.nest-drill.on-dark { background: repeating-linear-gradient(90deg, rgba(233, 240, 220, .5) 0 3px, transparent 3px 11px); }
.nest-drill.short { flex: 0 0 88px; margin: 0 0 16px; display: block; }

/* ============================================================
   SIGNATURE 2 - PACKET EDGE (scalloped opening + punched tear line)
   ============================================================ */
.nest-serrate {
  -webkit-mask:
    radial-gradient(circle 7px at 50% 0, transparent 97%, #000 100%) 0 0/16px 13px repeat-x,
    linear-gradient(#000, #000) 0 13px/100% calc(100% - 13px) no-repeat;
  mask:
    radial-gradient(circle 7px at 50% 0, transparent 97%, #000 100%) 0 0/16px 13px repeat-x,
    linear-gradient(#000, #000) 0 13px/100% calc(100% - 13px) no-repeat;
}
.nest-perf {
  height: 11px;
  border-top: 1px dashed var(--color-line);
  background-image: radial-gradient(circle 2.6px at 8px 6px, var(--kraft) 97%, transparent 100%);
  background-size: 16px 100%;
}

/* ============================================================
   SIGNATURE 3 - LEADER DOT ROW (catalogue index typography)
   ============================================================ */
.nest-lead-row { display: flex; align-items: baseline; width: 100%; }
.nest-lead-fill { flex: 1 1 auto; border-bottom: 1px dotted var(--color-line); margin: 0 7px; transform: translateY(-4px); }
.nest-lead-row.on-dark .nest-lead-fill { border-bottom-color: rgba(233, 240, 220, .34); }

/* analog layer: tape, pins, micro rotation. Restrained on purpose. */
.nest-tape {
  position: absolute; width: 104px; height: 27px; z-index: 3;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 3px, transparent 3px 7px),
    rgba(90, 107, 74, .34);
  border-left: 1px solid rgba(255, 255, 255, .34);
  border-right: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 1px 2px rgba(43, 49, 35, .13);
}
.nest-tape.brick {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 3px, transparent 3px 7px),
    rgba(166, 80, 60, .32);
}
.nest-pin {
  position: absolute; width: 15px; height: 15px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 34% 30%, #C97A63 0 22%, var(--brick) 42%, var(--brick-deep) 100%);
  box-shadow: 0 2px 3px rgba(43, 49, 35, .3);
}

/* ============================================================
   MASTHEAD (left aligned wordmark, not a centred nameplate)
   ============================================================ */
.nest-mast { padding: 26px 0 0; }
.nest-mast-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; }
.nest-word {
  font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600;
  color: var(--moss); letter-spacing: -.018em; line-height: 1;
}
.nest-word:hover { color: var(--moss-deep); }
.nest-mast-right { text-align: right; }
.nest-tag { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--color-muted); font-weight: 400; }
.nest-date { font-size: .78rem; color: var(--color-muted); letter-spacing: .04em; margin-top: 3px; }
.nest-mast .nest-drill { margin: 16px 0 0; height: 3px; }

.nest-nav { background: var(--kraft-deep); margin-top: 16px; position: relative; }
.nest-nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 11px;
  background-image: radial-gradient(circle 2.6px at 8px 5px, var(--kraft) 97%, transparent 100%);
  background-size: 16px 100%;
}
.nest-nav-in { max-width: var(--max-w); margin: 0 auto; padding: 13px var(--pad) 15px; }
.nest-nav-menu { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 0; padding: 0; }
.nest-nav-menu li { list-style: none; margin: 0; padding: 0; }
.nest-nav-menu li a {
  font-size: .8rem; letter-spacing: .11em; text-transform: uppercase;
  font-weight: 500; color: var(--moss-deep);
}
.nest-nav-menu li a:hover { color: var(--brick); }
.nest-nav-menu li.current-menu-item > a { color: var(--brick); }

/* ============================================================
   FRONT PAGE 1 - HERO, packet opening, 62/38 asymmetric
   ============================================================ */
.nest-hero { padding: 52px 0 62px; }
.nest-hero-in { display: grid; grid-template-columns: 1.62fr 1fr; gap: 44px; align-items: start; }
.nest-hero-fig { position: relative; }
.nest-hero-fig img { width: 100%; height: 404px; object-fit: cover; }
.nest-hero-fig .nest-tape { top: -13px; left: 38px; transform: rotate(-5deg); }

/* the caption slip breaks out of the photo */
.nest-slip {
  position: relative; margin: -58px 0 0 -26px; width: calc(100% - 34px);
  background: var(--paper); padding: 26px 30px 28px; z-index: 2;
  box-shadow: 0 8px 22px rgba(43, 49, 35, .09);
  border-bottom: 3px solid var(--moss);
}
.nest-slip .nest-tape { top: -14px; right: 44px; transform: rotate(3.5deg); }
.nest-kicker { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brick); font-weight: 600; margin-bottom: 11px; }
.nest-slip h1 { font-size: clamp(1.86rem, 3.2vw, 2.55rem); font-weight: 600; line-height: 1.1; margin: 0; }
.nest-slip h1 a { color: inherit; }
.nest-slip h1 a:hover { color: var(--moss); }
.nest-slip p { margin: 14px 0 20px; font-size: 1.03rem; color: var(--color-charcoal); max-width: 46ch; }
.nest-cta {
  display: inline-block; font-family: var(--font-sans); font-size: .79rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600; color: var(--paper); background: var(--moss);
  padding: 11px 22px; white-space: nowrap; transition: background .18s, transform .18s;
}
.nest-cta:hover { background: var(--moss-deep); color: var(--paper); transform: translateY(-2px); }

.nest-side { background: var(--kraft-deep); padding: 24px 24px 26px; position: relative; }
.nest-side::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 11px;
  background-image: radial-gradient(circle 2.6px at 5px 8px, var(--kraft) 97%, transparent 100%);
  background-size: 100% 16px;
}
.nest-side h4 { font-size: 1.22rem; font-weight: 600; margin: 0 0 4px; }
.nest-side-note { font-size: .82rem; color: var(--color-muted); margin: 0 0 16px; line-height: 1.55; }
.nest-side ul { list-style: none; margin: 0; padding: 0; }
.nest-side li { display: flex; gap: 13px; padding: 13px 0; border-top: 1px dotted var(--color-line); }
.nest-side li:first-child { border-top: none; padding-top: 0; }
.nest-side li img { width: 70px; height: 56px; object-fit: cover; flex: 0 0 70px; }
.nest-side-t { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.24; color: var(--color-ink); display: block; }
.nest-side-t:hover { color: var(--brick); }
.nest-side-c { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--color-muted); margin-top: 5px; display: block; }
.nest-side-all {
  display: flex; margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--moss);
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--moss); font-weight: 500;
}
.nest-side-all:hover { color: var(--brick); }

/* ============================================================
   SECTION HEAD - no eyebrow anywhere. Title + seed drill + link.
   ============================================================ */
.nest-sec { padding: 60px 0; }
.nest-sec.tight { padding-top: 6px; }
.nest-sec.no-top { padding-top: 0; }
.nest-head { display: flex; align-items: center; margin-bottom: 30px; }
.nest-head h2 { font-size: clamp(1.66rem, 2.6vw, 2.05rem); font-weight: 600; white-space: nowrap; margin: 0; }
.nest-head-link { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--moss); white-space: nowrap; }
.nest-head-link:hover { color: var(--brick); }
.nest-head.on-dark h2 { color: #F2EEE0; }
.nest-head.on-dark .nest-head-link { color: var(--moss-soft); }

/* ============================================================
   FRONT PAGE 2 - THE CATALOGUE (dense small-photo section rail)
   ============================================================ */
.nest-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 22px; }
.nest-cat { display: block; }
.nest-cat-img { display: block; overflow: hidden; background: var(--kraft-deep); }
.nest-cat img { width: 100%; height: 132px; object-fit: cover; transition: transform .3s ease; }
.nest-cat:hover img { transform: scale(1.035); }
.nest-cat-row { margin-top: 10px; }
.nest-cat-name { font-family: var(--font-serif); font-size: 1.09rem; font-weight: 500; color: var(--color-ink); }
.nest-cat:hover .nest-cat-name { color: var(--brick); }
.nest-cat-n { font-size: .74rem; letter-spacing: .08em; color: var(--color-muted); white-space: nowrap; }

/* ============================================================
   FRONT PAGE 3 - SEED PACKETS (2+1+1+1, never three equal cards)
   ============================================================ */
.nest-packets { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; align-items: stretch; }
.nest-packet { background: var(--paper); padding: 13px 0 0; position: relative; display: flex; flex-direction: column; }
.nest-packet-win { padding: 0 15px; }
.nest-packet-win img { width: 100%; height: 172px; object-fit: cover; }
.nest-packet.dbl .nest-packet-win img { height: 236px; }
.nest-packet-body { padding: 15px 17px 17px; }
.nest-packet h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.2; margin: 0; }
.nest-packet.dbl h3 { font-size: 1.62rem; }
.nest-packet h3 a { color: inherit; }
.nest-packet h3 a:hover { color: var(--brick); }
.nest-packet p { font-size: .9rem; color: var(--color-charcoal); margin: 9px 0 0; line-height: 1.6; }
.nest-packet > .nest-perf { margin-top: auto; }
.nest-perf.on-paper { background-image: radial-gradient(circle 2.6px at 8px 6px, var(--kraft) 97%, transparent 100%); }
.nest-sow { margin: 15px 0 0; padding: 0 17px 16px; }
.nest-sow .nest-lead-row { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--color-muted); padding: 6px 0; }
.nest-sow b { font-weight: 500; color: var(--moss); }
.nest-packet-foot { height: 5px; margin: 0 17px 14px;
  background: repeating-linear-gradient(90deg, var(--moss-40) 0 3px, transparent 3px 11px); }

/* ============================================================
   FRONT PAGE 4 - DARK BAND 1: taped note + pull quote
   ============================================================ */
.nest-band { background: var(--moss-deep); padding: 66px 0; }
.nest-band-in { display: grid; grid-template-columns: .86fr 1.14fr; gap: 56px; align-items: center; }
.nest-note {
  position: relative; background: var(--paper); padding: 30px 30px 26px;
  transform: rotate(-1.4deg); box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}
.nest-note .nest-tape.brick { top: -13px; left: -16px; transform: rotate(-8deg); }
.nest-note .nest-pin { top: 14px; right: 16px; }
.nest-note h3 { font-size: 1.42rem; font-weight: 600; margin: 0 0 10px; }
.nest-note p { font-size: .95rem; margin: 0 0 12px; }
.nest-sig { font-family: var(--font-serif); font-size: 1.06rem; color: var(--moss); }
.nest-quote blockquote {
  margin: 0; padding: 0; border: none; background: none;
  font-family: var(--font-serif); font-size: clamp(1.34rem, 2.4vw, 1.86rem);
  line-height: 1.34; color: #F4F1E5; font-weight: 400;
}
.nest-quote-src { margin-top: 20px; font-size: .82rem; color: var(--moss-soft); letter-spacing: .05em; }
.nest-quote-src a { color: #F4F1E5; border-bottom: 1px solid rgba(244, 241, 229, .4); }
.nest-quote-src a:hover { color: #fff; }

/* ============================================================
   FRONT PAGE 5 - COLLAGE MOSAIC (explicit areas, zero holes)
   ============================================================ */
.nest-mos {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 166px; gap: 20px;
  grid-template-areas:
    "a a b c"
    "a a b c"
    "d e f f"
    "d e f f"
    "g g h i"
    "j j h i";
}
.nest-mos > *:nth-child(1) { grid-area: a; }
.nest-mos > *:nth-child(2) { grid-area: b; }
.nest-mos > *:nth-child(3) { grid-area: c; }
.nest-mos > *:nth-child(4) { grid-area: d; }
.nest-mos > *:nth-child(5) { grid-area: e; }
.nest-mos > *:nth-child(6) { grid-area: f; }
.nest-mos > *:nth-child(7) { grid-area: g; }
.nest-mos > *:nth-child(8) { grid-area: h; }
.nest-mos > *:nth-child(9) { grid-area: i; }
.nest-mos > *:nth-child(10) { grid-area: j; }
/* defensive: if the site has fewer than 10 posts with covers, drop the map */
.nest-mos.sparse { grid-template-areas: none; grid-auto-rows: auto; grid-template-columns: repeat(3, 1fr); }
.nest-mos.sparse > * { grid-area: auto !important; }
.nest-mos.sparse .nest-m img { height: 210px; flex: 0 0 210px; }

.nest-m { position: relative; background: var(--paper); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease; }
.nest-m img { width: 100%; flex: 1 1 auto; object-fit: cover; min-height: 0; }
.nest-m-body { padding: 12px 14px 14px; }
.nest-m-cat { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); font-weight: 500; }
.nest-m h3 { font-size: 1.04rem; font-weight: 500; line-height: 1.24; margin: 6px 0 0; }
.nest-m.big h3 { font-size: 1.44rem; font-weight: 600; }
.nest-m p { font-size: .86rem; margin: 8px 0 0; line-height: 1.55; color: var(--color-charcoal); }
.nest-m-date { font-size: .7rem; color: var(--color-muted); margin-top: 8px; letter-spacing: .05em; }
.nest-m:hover { transform: translateY(-3px); }
.nest-m:hover h3 { color: var(--brick); }
.nest-m.wide { flex-direction: row; }
.nest-m.wide img { flex: 0 0 42%; width: 42%; height: 100%; }
.nest-m.wide .nest-m-body { flex: 1 1 auto; align-self: center; }
.nest-m.tilt-a { transform: rotate(-1.3deg); }
.nest-m.tilt-a:hover { transform: rotate(-1.3deg) translateY(-3px); }
.nest-m.tilt-b { transform: rotate(1deg); }
.nest-m.tilt-b:hover { transform: rotate(1deg) translateY(-3px); }
.nest-m.framed { border: 9px solid var(--paper); box-shadow: 0 6px 16px rgba(43, 49, 35, .12); }
.nest-m .nest-tape { top: -11px; left: 26px; transform: rotate(-4deg); width: 88px; height: 23px; }
.nest-m .nest-pin { top: 10px; left: 50%; margin-left: -7px; }

/* ============================================================
   FRONT PAGE 6 - EVERY SECTION (catalogue index with thumbnails)
   ============================================================ */
.nest-index { background: var(--kraft-deep); padding: 34px 30px 30px; }
.nest-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.nest-idx h3 { font-size: 1.24rem; font-weight: 600; margin: 0; padding-bottom: 9px; border-bottom: 2px solid var(--moss); }
.nest-idx h3 a { color: inherit; }
.nest-idx h3 a:hover { color: var(--brick); }
.nest-idx ul { list-style: none; margin: 12px 0 0; padding: 0; }
.nest-idx li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dotted var(--color-line); }
.nest-idx li img { width: 58px; height: 46px; object-fit: cover; flex: 0 0 58px; }
.nest-idx-t { font-family: var(--font-serif); font-size: .99rem; line-height: 1.26; color: var(--color-ink); }
.nest-idx-t:hover { color: var(--brick); }
.nest-idx-d { font-size: .68rem; color: var(--color-muted); margin-top: 4px; letter-spacing: .05em; }
.nest-idx-all { display: block; margin-top: 11px; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--moss); font-weight: 500; }
.nest-idx-all:hover { color: var(--brick); }

/* ============================================================
   FRONT PAGE 7 - DARK BAND 2: the order coupon
   ============================================================ */
.nest-coupon-band { background: var(--moss-deeper); padding: 62px 0 66px; }
.nest-coupon { background: var(--kraft); padding: 34px 38px 36px; position: relative; }
.nest-coupon::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 11px;
  background-image: radial-gradient(circle 2.6px at 8px 5px, var(--moss-deeper) 97%, transparent 100%);
  background-size: 16px 100%;
}
.nest-coupon-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; margin-top: 10px; }
.nest-coupon h3 { font-size: clamp(1.4rem, 2.4vw, 1.72rem); font-weight: 600; margin: 0; }
.nest-coupon p { font-size: .95rem; margin: 10px 0 0; max-width: 46ch; }
.nest-form { display: flex; }
.nest-form input[type="email"] {
  flex: 1 1 auto; min-width: 0; font-family: var(--font-sans); font-size: .94rem; font-weight: 300;
  padding: 13px 15px; border: 1.5px solid var(--moss); border-right: none;
  background: var(--paper); color: var(--color-ink); border-radius: 0;
}
.nest-form input[type="email"]::placeholder { color: #6E7263; }
.nest-form input[type="email"]:focus { outline: 2px solid var(--brick); outline-offset: 1px; }
.nest-form button {
  font-family: var(--font-sans); font-size: .79rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 600; background: var(--moss); color: var(--paper); border: 1.5px solid var(--moss);
  padding: 13px 24px; cursor: pointer; white-space: nowrap; border-radius: 0; transition: background .18s;
}
.nest-form button:hover { background: var(--moss-deep); border-color: var(--moss-deep); }
.nest-form-note { font-size: .76rem; color: var(--color-muted); margin-top: 10px; }
.nest-form-note a { color: var(--moss); border-bottom: 1px solid var(--color-line); }

/* ============================================================
   TRUST PAGES - page.php "Sowing record"
   ============================================================ */
.nest-doc-main { padding-bottom: 60px; }

.nest-doc-head { background: var(--moss-deep); position: relative; padding: 46px 0 40px; margin-bottom: 0; }
.nest-doc-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 13px;
  background: var(--moss-deep);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 97%, #000 100%) 0 0/16px 13px repeat-x;
  mask: radial-gradient(circle 7px at 50% 100%, transparent 97%, #000 100%) 0 0/16px 13px repeat-x;
}
.nest-doc-head-in { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--pad); }
.nest-doc-kicker { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--moss-soft); font-weight: 500; }
.nest-doc-title { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 600; color: #F4F1E5; margin: 10px 0 0; line-height: 1.06; }
.nest-doc-updated { margin-top: 14px; font-size: .8rem; letter-spacing: .06em; color: rgba(244, 241, 229, .68); }

/* analog decoration on the reversed head: one washi strip, nothing written on it */
.nest-doc-head .nest-tape { top: -12px; left: 8%; transform: rotate(-4deg); }

/* contents: a taped paper card carrying leader-dot links, not an inline sommaire */
.nest-doc-toc { max-width: var(--max-w-narrow); margin: 40px auto 0; padding: 0 var(--pad); }
.nest-doc-toc-card {
  position: relative; background: var(--paper); padding: 22px 26px 20px;
  transform: rotate(-.4deg); box-shadow: 0 7px 20px rgba(43, 49, 35, .1);
}
.nest-doc-toc-card .nest-tape.brick { top: -13px; right: 42px; transform: rotate(3deg); }
.nest-doc-toc-card .nest-pin { top: 14px; left: 16px; }
.nest-doc-toc-t { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); font-weight: 500; margin: 0 0 12px 30px; }
.nest-doc-toc ul { list-style: none; margin: 0; padding: 0; }
.nest-doc-toc li { display: flex; align-items: baseline; padding: 7px 0; }
.nest-doc-toc li + li { border-top: 1px dotted var(--color-line); }
.nest-doc-toc li a { font-family: var(--font-serif); font-size: 1rem; color: var(--moss-deep); }
.nest-doc-toc li a:hover { color: var(--brick); }
.nest-doc-toc li .nest-doc-toc-go { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--moss); white-space: nowrap; }

.nest-doc-body {
  max-width: var(--max-w-narrow); margin: 40px auto 0; padding: 0 var(--pad);
  font-size: 17.5px; line-height: 1.78;
}
/*章节：上方一条撕线打孔，标题不编号、不小型大写、无实心方块 marker */
.nest-doc-body h2 {
  font-size: 1.62rem; font-weight: 600; margin: 2.6em 0 .6em; padding-top: 26px; position: relative;
}
.nest-doc-body h2::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 11px;
  border-top: 1px dashed var(--color-line);
  background-image: radial-gradient(circle 2.6px at 8px 6px, var(--kraft-deep) 97%, transparent 100%);
  background-size: 16px 100%;
}
.nest-doc-body h2:first-child { margin-top: 0; }
.nest-doc-body h3 { font-size: 1.2rem; font-weight: 600; margin: 2em 0 .4em; }
.nest-doc-body ul, .nest-doc-body ol { padding-left: 1.15em; }
.nest-doc-body li { margin-bottom: .5em; }
.nest-doc-body a { color: var(--moss); border-bottom: 1px solid var(--color-line); }
.nest-doc-body a:hover { color: var(--brick); border-bottom-color: var(--brick); }

/* identity / contact block: kraft leader-dot card */
.nest-doc-body > p:has(> strong:first-child) {
  display: flex; align-items: baseline; background: var(--kraft-deep);
  padding: 11px 16px; margin: 0 0 3px; font-size: .95rem;
}
.nest-doc-body > p:has(> strong:first-child) > strong {
  font-weight: 500; color: var(--moss-deep); font-family: var(--font-sans);
  font-size: .74rem; letter-spacing: .11em; text-transform: uppercase;
  flex: 0 0 auto; padding-right: 7px;
  border-bottom: 1px dotted var(--color-line);
}
.nest-doc-body > p:has(> strong:first-child)::after {
  content: ""; flex: 1 1 auto; border-bottom: 1px dotted var(--color-line);
  margin: 0 7px; transform: translateY(-4px); order: 1;
}

/* footer cross links: leader-dot index rows, no numbers */
.nest-doc-foot { max-width: var(--max-w-narrow); margin: 54px auto 0; padding: 0 var(--pad); }
.nest-doc-foot-t { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 4px; }
.nest-doc-links { margin-top: 14px; border-top: 3px solid var(--moss); }
.nest-doc-link {
  display: flex; align-items: baseline; padding: 13px 0;
  border-bottom: 1px dotted var(--color-line); font-size: 1rem;
}
.nest-doc-link .nest-doc-link-n { font-family: var(--font-serif); font-size: 1.06rem; color: var(--color-ink); }
.nest-doc-link:hover .nest-doc-link-n { color: var(--brick); }
.nest-doc-link .nest-doc-link-go { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); white-space: nowrap; }
.nest-doc-note { margin-top: 22px; font-size: .9rem; color: var(--color-muted); }
.nest-doc-note a { color: var(--moss); border-bottom: 1px solid var(--color-line); }

/* ============================================================
   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.18rem; line-height: 1.66; color: var(--color-ink); }
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif); font-size: 3.4rem; float: left; line-height: .9;
  padding: .28rem .55rem 0 0; color: var(--moss); font-weight: 600;
}

.tb-post-header { max-width: var(--max-w-narrow); margin: 2.6rem auto 1.5rem; padding: 0 var(--pad); }
.tb-breadcrumb { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1.1rem; }
.tb-breadcrumb a { color: var(--moss); }
.tb-breadcrumb a:hover { color: var(--brick); }
.tb-post-cat {
  display: inline-block; font-family: var(--font-sans); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; color: var(--paper); background: var(--moss);
  padding: 6px 13px; border-radius: 0; margin-bottom: 1.1rem;
}
.tb-post-cat:hover { background: var(--moss-deep); color: var(--paper); }
.tb-post-title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.1; margin: 0 0 1rem; }
.tb-post-meta { font-size: .84rem; color: var(--color-muted); letter-spacing: .04em;
  border-top: 3px solid var(--moss); padding-top: .9rem; }
.tb-post-meta strong { color: var(--color-charcoal); font-weight: 500; }
.tb-post-cover { max-width: var(--max-w); margin: 0 auto 2.6rem; padding: 0 var(--pad); position: relative; }
.tb-post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }

.ftc-disclosure {
  max-width: var(--max-w-narrow); margin: 0 auto 2.5rem;
  background: var(--kraft-deep); border-left: 4px solid var(--moss);
  padding: 1rem 1.25rem; border-radius: 0; font-size: .93rem; color: var(--color-charcoal);
}
.ftc-disclosure p { margin: 0; }
.ftc-disclosure a { color: var(--moss); border-bottom: 1px solid var(--color-line); }
.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-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.4;
  color: var(--moss-deep); padding: 1.7rem 0; margin: 2.4rem 0; border-radius: 0;
  border-top: 3px solid var(--moss); border-bottom: 3px solid var(--moss);
}
.single .entry-content h2 { font-size: 1.6rem; }
.single .entry-content img { margin: 1.8rem 0; }

.tb-inline-cta {
  max-width: var(--max-w-narrow); margin: 2.6rem auto; background: var(--kraft-deep);
  padding: 1.5rem 1.6rem; border-radius: 0; border-top: 3px solid var(--moss);
}
.tb-inline-cta strong { font-family: var(--font-serif); font-size: 1.15rem; display: block; margin-bottom: .4rem; color: var(--color-ink); }
.tb-inline-cta p { font-size: .92rem; color: var(--color-muted); margin: 0 0 .8rem; }
.tb-inline-cta a { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: var(--moss); }

.tb-author-bio {
  max-width: var(--max-w-narrow); margin: 3rem auto 0; padding: 1.6rem var(--pad) 0;
  display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; align-items: start;
  border-top: 3px solid var(--moss);
}
.tb-author-avatar {
  width: 64px; height: 64px; background: var(--moss); color: var(--paper); border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
}
.tb-author-bio .tb-eyebrow { margin-bottom: .4rem; display: block; }
.tb-author-bio h4 { margin: 0 0 .4rem; font-size: 1.15rem; font-weight: 600; }
.tb-author-bio p { font-size: .95rem; color: var(--color-muted); margin: 0 0 .4rem; line-height: 1.62; }
.tb-author-bio a { font-family: var(--font-sans); font-size: .84rem; color: var(--moss); }

.tb-related { max-width: var(--max-w); margin: 3.4rem auto 0; padding: 0 var(--pad); }
.tb-related h3 { font-size: 1.4rem; font-weight: 600; margin: 0 0 1.2rem; padding-bottom: .7rem;
  border-bottom: 3px solid var(--moss); }
.tb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tb-related-card { display: block; color: inherit; }
.tb-related-card .tb-related-cover { overflow: hidden; background: var(--kraft-deep); }
.tb-related-cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.tb-related-card .tb-related-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; margin-top: .7rem; line-height: 1.26; }
.tb-related-card:hover .tb-related-title { color: var(--brick); }

.tb-newsletter { background: var(--moss-deeper); padding: 56px var(--pad) 60px; margin-top: 3.4rem; }
.tb-newsletter-inner { max-width: 640px; margin: 0 auto; }
.tb-newsletter .tb-eyebrow { color: var(--moss-soft); margin-bottom: .8rem; }
.tb-newsletter h3 { font-size: 1.6rem; font-weight: 600; color: #F4F1E5; margin: 0 0 .6rem; }
.tb-newsletter p { color: rgba(244, 241, 229, .74); font-size: .95rem; }
.tb-newsletter-form { display: flex; margin-top: 1.2rem; }
.tb-newsletter-form input[type="email"] {
  flex: 1 1 auto; min-width: 0; font-family: var(--font-sans); font-size: .94rem; font-weight: 300;
  padding: 13px 15px; border: 1.5px solid var(--moss-soft); border-right: none;
  background: var(--paper); color: var(--color-ink); border-radius: 0;
}
.tb-newsletter-form input[type="email"]::placeholder { color: #6E7263; }
.tb-newsletter-form button {
  font-family: var(--font-sans); font-size: .79rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 600; background: var(--moss); color: var(--paper); border: 1.5px solid var(--moss);
  padding: 13px 24px; cursor: pointer; white-space: nowrap; border-radius: 0;
}
.tb-newsletter-form button:hover { background: var(--moss-soft); color: var(--moss-deeper); border-color: var(--moss-soft); }
.tb-newsletter-note { font-size: .78rem; color: rgba(244, 241, 229, .56); margin-top: 1rem; }
.tb-newsletter-note a { color: inherit; border-bottom: 1px solid rgba(244, 241, 229, .4); }

/* ============================================================
   ARCHIVE (category / tag)
   ============================================================ */
.tb-archive-hero { max-width: var(--max-w); margin: 0 auto; padding: 46px var(--pad) 30px; }
.tb-archive-hero .tb-eyebrow { margin-bottom: .8rem; }
.tb-archive-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 600; margin: 0 0 .7rem; }
.tb-archive-hero p { font-size: 1.02rem; color: var(--color-muted); max-width: 62ch; }
.tb-archive-hero::after { content: ""; display: block; height: 3px; margin-top: 22px;
  background: repeating-linear-gradient(90deg, var(--moss-40) 0 3px, transparent 3px 11px); }

.tb-archive-feature { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.tb-archive-feature .tb-spread { padding: 0 0 2.6rem; }
.tb-spread { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; }
.tb-spread-image { overflow: hidden; background: var(--kraft-deep); }
.tb-spread-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.tb-spread-text h3 { font-size: 1.7rem; font-weight: 600; margin: .5rem 0 .6rem; }
.tb-spread-text .tb-spread-excerpt { font-size: 1rem; color: var(--color-charcoal); }
.tb-spread-text .tb-spread-read { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--moss); }
.tb-spread-text .tb-spread-read:hover { color: var(--brick); }

.tb-archive-grid { max-width: var(--max-w); margin: 34px auto 60px; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.tb-archive-card { display: block; color: inherit; background: var(--paper); padding-bottom: 16px; }
.tb-archive-card .tb-archive-cover { overflow: hidden; background: var(--kraft-deep); }
.tb-archive-cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; transition: transform .3s ease; }
.tb-archive-card:hover .tb-archive-cover img { transform: scale(1.035); }
.tb-archive-card .tb-archive-meta { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brick); font-weight: 500; margin: 13px 16px 0; }
.tb-archive-card .tb-archive-title { font-family: var(--font-serif); font-size: 1.14rem; font-weight: 600;
  line-height: 1.24; margin: 7px 16px 0; }
.tb-archive-card:hover .tb-archive-title { color: var(--brick); }
.tb-archive-card .tb-archive-excerpt { font-size: .9rem; color: var(--color-muted); line-height: 1.56; margin: 8px 16px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.nest-foot { background: var(--moss-deep); color: #E9EFDE; padding: 0 0 30px; }
.nest-foot .nest-drill { margin: 0; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(233, 240, 220, .36) 0 3px, transparent 3px 11px); }
.nest-foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-top: 42px; }
.nest-foot-brand { font-family: var(--font-serif); font-size: 1.7rem; color: #F4F1E5; font-weight: 500; }
.nest-foot p { font-size: .9rem; color: rgba(233, 239, 222, .72); margin: 9px 0 0; line-height: 1.62; }
.nest-foot h5 { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--moss-soft); margin: 0 0 12px; font-weight: 600; }
.nest-foot ul { list-style: none; margin: 0; padding: 0; }
.nest-foot li { padding: 4px 0; }
.nest-foot li a { color: #E9EFDE; font-size: .92rem; font-weight: 300; }
.nest-foot li a:hover { color: #fff; }
.nest-foot-legal { font-size: .8rem; color: rgba(233, 239, 222, .5); margin-top: 34px; padding-top: 18px;
  border-top: 1px solid rgba(233, 239, 222, .16); }
.site-footer, .site-info { background: var(--moss-deep); color: #E9EFDE; font-family: var(--font-sans); font-size: .9rem; }

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

/* ============================================================
   MOBILE - every multi column layout collapses explicitly
   ============================================================ */
@media (max-width: 900px) {
  .nest-hero-in { grid-template-columns: 1fr; gap: 30px; }
  .nest-band-in { grid-template-columns: 1fr; gap: 38px; }
  .nest-packets { grid-template-columns: 1fr 1fr; }
  .nest-index-grid { grid-template-columns: 1fr 1fr; }
  .nest-coupon-in { grid-template-columns: 1fr; gap: 24px; }
  .nest-foot-in { grid-template-columns: 1fr 1fr; }
  .tb-related-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-spread { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  :root { --pad: 18px; }
  .nest-mast-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nest-mast-right { text-align: left; }
  .nest-word { font-size: 2.05rem; }
  .nest-nav-menu { gap: 14px 18px; }
  .nest-hero { padding: 32px 0 42px; }
  .nest-hero-fig img { height: 262px; }
  .nest-slip { margin: -40px 0 0 0; width: 100%; padding: 22px 20px 24px; }
  .nest-cat-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .nest-packets { grid-template-columns: 1fr; }
  .nest-packet.dbl .nest-packet-win img { height: 200px; }
  .nest-sec { padding: 42px 0; }
  .nest-head { flex-wrap: wrap; gap: 8px; }
  .nest-head h2 { white-space: normal; }
  .nest-head .nest-drill { flex: 1 1 40px; margin: 0 12px; }
  .nest-mos { grid-template-areas: none; grid-template-columns: 1fr; grid-auto-rows: auto; }
  .nest-mos > * { grid-area: auto !important; }
  .nest-m img { height: 200px; flex: 0 0 200px; }
  .nest-m.wide { flex-direction: column; }
  .nest-m.wide img { width: 100%; flex: 0 0 200px; height: 200px; }
  .nest-m.tilt-a, .nest-m.tilt-b { transform: none; }
  .nest-m.tilt-a:hover, .nest-m.tilt-b:hover { transform: translateY(-3px); }
  .nest-index { padding: 24px 18px; }
  .nest-index-grid { grid-template-columns: 1fr; gap: 26px; }
  .nest-coupon { padding: 26px 20px 28px; }
  .nest-form { flex-direction: column; }
  .nest-form input[type="email"] { border-right: 1.5px solid var(--moss); }
  .nest-foot-in { grid-template-columns: 1fr; gap: 26px; }
  .nest-note { transform: none; }
  .tb-related-grid { grid-template-columns: 1fr; }
  .tb-archive-grid { grid-template-columns: 1fr; }
  .tb-author-bio { grid-template-columns: 1fr; }
  .tb-newsletter-form { flex-direction: column; }
  .tb-newsletter-form input[type="email"] { border-right: 1.5px solid var(--moss-soft); }
  .nest-doc-body > p:has(> strong:first-child) { flex-wrap: wrap; }
  .nest-doc-body > p:has(> strong:first-child)::after { display: none; }
  .nest-doc-toc-card { transform: none; padding: 20px 18px 18px; }
  .nest-doc-toc-t { margin-left: 0; }
  .nest-doc-toc-card .nest-pin { display: none; }
  .nest-doc-link { flex-wrap: wrap; }
}

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