/* ==========================================================================
   CropShareBox design system
   Field honest: soil brown and leaf green on oat paper.
   Zilla Slab over Work Sans, produce crate grid, hand stamped labels,
   botanical line art. Built by hand, no framework.
   ========================================================================== */

:root {
  /* Brief palette */
  --paper:        #FAF6EE;
  --surface:      #FFFFFF;
  --ink:          #26200F;
  --leaf:         #4B6B2A;
  --harvest:      #D08C24;
  --muted:        #6E6752;

  /* Derived tints and shades */
  --paper-2:      #F3ECDC;
  --paper-3:      #EDE3CE;
  --ink-80:       color-mix(in srgb, var(--ink) 80%, var(--paper));
  --ink-55:       color-mix(in srgb, var(--ink) 55%, var(--paper));
  --leaf-dark:    #344C1C;
  --leaf-deep:    #22320F;
  --leaf-soft:    color-mix(in srgb, var(--leaf) 14%, var(--paper));
  --leaf-line:    color-mix(in srgb, var(--leaf) 34%, var(--paper));
  --harvest-soft: color-mix(in srgb, var(--harvest) 16%, var(--paper));
  --harvest-line: color-mix(in srgb, var(--harvest) 46%, var(--paper));
  --rule:         #DCCFB2;
  --rule-soft:    #E7DDC6;
  --slat:         #E3D6B9;
  --slat-dark:    #CDBC97;

  /* Spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px; --s10: 120px;

  /* Radii */
  --r-xs: 2px; --r-sm: 4px; --r-md: 7px; --r-lg: 12px; --r-pill: 999px;

  /* Shadows, kept soft like light through a barn door */
  --sh-1: 0 1px 0 rgba(38,32,15,.06), 0 2px 6px rgba(38,32,15,.05);
  --sh-2: 0 2px 0 rgba(38,32,15,.07), 0 10px 26px rgba(38,32,15,.09);
  --sh-3: 0 3px 0 rgba(38,32,15,.09), 0 22px 48px rgba(38,32,15,.13);

  /* Type scale */
  --f-display: "Zilla Slab", "Bitter", Georgia, "Times New Roman", serif;
  --f-body: "Work Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --t-xs: .78rem; --t-sm: .89rem; --t-md: 1rem; --t-lg: 1.12rem;
  --t-xl: 1.35rem; --t-2xl: 1.7rem; --t-3xl: 2.15rem;
  --t-4xl: 2.75rem; --t-5xl: 3.5rem;

  --wrap: 1180px;
  --ease-organic: cubic-bezier(.22,.68,.28,1);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  /* oat paper: flecks, laid lines, and a warm field of light */
  background-image:
    radial-gradient(circle at 12% 22%, rgba(107,88,44,.055) 0 1px, transparent 1.4px),
    radial-gradient(circle at 71% 63%, rgba(75,107,42,.05) 0 1px, transparent 1.6px),
    radial-gradient(circle at 38% 84%, rgba(208,140,36,.05) 0 1px, transparent 1.3px),
    repeating-linear-gradient(90deg, rgba(38,32,15,.018) 0 1px, transparent 1px 6px),
    radial-gradient(1100px 620px at 78% -8%, rgba(208,140,36,.10), transparent 62%);
  background-size: 137px 149px, 191px 173px, 113px 127px, auto, auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.14; letter-spacing: -.012em; margin: 0 0 var(--s4); }
h1 { font-size: clamp(2.15rem, 5.2vw, var(--t-5xl)); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, var(--t-4xl)); }
h3 { font-size: var(--t-xl); }
p { margin: 0 0 var(--s4); }
ul { margin: 0 0 var(--s4); padding-left: 1.15rem; }
li { margin-bottom: var(--s2); }
strong { font-weight: 650; color: var(--ink); }

/* ------------------------------------------------------- accessibility -- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--harvest);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.skip {
  position: absolute; left: var(--s4); top: -60px; z-index: 200;
  background: var(--leaf); color: #fff; padding: var(--s3) var(--s5);
  font-weight: 600; border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top .2s var(--ease-organic);
}
.skip:focus { top: 0; color: #fff; }

/* ------------------------------------------------------------ layout ---- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: var(--s9) 0; position: relative; }
.section--tint { background:
  linear-gradient(180deg, rgba(243,236,220,0) 0%, rgba(243,236,220,.85) 12%, rgba(243,236,220,.85) 88%, rgba(243,236,220,0) 100%); }
.section-head { max-width: 46rem; margin-bottom: var(--s7); }
.section-head p { color: var(--muted); font-size: var(--t-lg); margin-bottom: 0; }
.eyebrow {
  font-family: var(--f-display); font-size: var(--t-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em; color: var(--leaf-dark);
  display: inline-flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--harvest);
  box-shadow: 0 4px 0 var(--leaf-line);
}

/* hand stamped label: pressed ink, slightly off square */
.stamp {
  display: inline-block; font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .16em;
  padding: 6px 12px 5px; color: var(--leaf-dark);
  border: 2px solid currentColor; border-radius: var(--r-xs);
  transform: rotate(-2.1deg); position: relative; background: transparent;
  box-shadow: inset 0 0 0 1px rgba(250,246,238,.85);
}
.stamp::after {
  content: ""; position: absolute; inset: -2px; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(250,246,238,.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 63% 72%, rgba(250,246,238,.9) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 88% 24%, rgba(250,246,238,.85) 0 1.4px, transparent 2px);
  background-size: 21px 17px, 27px 23px, 19px 25px;
}
.stamp--harvest { color: #A66713; transform: rotate(1.6deg); }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-md);
  letter-spacing: .01em; padding: 13px 24px; border-radius: var(--r-md);
  border: 2px solid var(--leaf-deep); cursor: pointer; text-decoration: none;
  transition: transform .28s var(--ease-organic), box-shadow .28s var(--ease-organic), background-color .28s var(--ease-organic);
}
.btn--primary { background: var(--leaf); color: #FDFBF5; box-shadow: 0 3px 0 var(--leaf-deep); }
.btn--primary:hover { background: var(--leaf-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 var(--leaf-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 rgba(38,32,15,.18); }
.btn--ghost:hover { background: var(--paper-3); color: var(--ink); transform: translateY(-2px); }
.btn--harvest { background: var(--harvest); color: #241703; border-color: #8E5B0F; box-shadow: 0 3px 0 #8E5B0F; }
.btn--harvest:hover { background: #E09A2E; color: #241703; transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: var(--t-sm); }
.btn--block { width: 100%; }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250,246,238,.93);
  backdrop-filter: saturate(1.1) blur(7px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease-organic), background-color .3s var(--ease-organic);
}
.site-header::after {
  content: ""; display: block; height: 4px;
  background: repeating-linear-gradient(90deg, var(--slat) 0 26px, transparent 26px 32px);
}
.site-header.is-stuck { box-shadow: 0 10px 26px rgba(38,32,15,.10); background: rgba(250,246,238,.985); }
.header-bar { display: flex; align-items: center; gap: var(--s5); padding: var(--s3) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; }
.brand span { color: var(--leaf-dark); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  font-size: var(--t-sm); font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .25s var(--ease-organic), color .25s var(--ease-organic);
}
.nav a:hover { border-bottom-color: var(--harvest); color: var(--leaf-dark); }
.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--r-sm); width: 44px; height: 40px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin-inline: auto; content: "";
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* --------------------------------------------------------------- hero --- */
.hero { padding: var(--s9) 0 var(--s8); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(38,32,15,.032) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(38,32,15,.026) 0 1px, transparent 1px 84px);
  mask-image: radial-gradient(720px 520px at 22% 30%, #000 0%, transparent 78%);
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: var(--s8); align-items: center; }
.hero h1 { margin-bottom: var(--s5); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--leaf-dark); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em;
  background: var(--harvest-soft); border-bottom: 2px solid var(--harvest-line); z-index: -1;
}
.hero-lede { font-size: var(--t-lg); color: var(--ink-80); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s6) 0 var(--s6); }

/* trust strip: three punched tags on twine */
.trust {
  list-style: none; margin: 0; padding: var(--s4) 0 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: var(--s4); border-top: 1px dashed var(--rule);
}
.trust li { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-80); }
.trust svg { flex: none; margin-top: 2px; }
.trust b { display: block; font-family: var(--f-display); font-size: var(--t-lg); color: var(--ink); line-height: 1.25; }

/* photo held in a crate frame */
.crate-frame { position: relative; padding: 14px; border-radius: var(--r-md); background:
    repeating-linear-gradient(90deg, var(--slat) 0 20px, var(--slat-dark) 20px 21px);
  border: 2px solid rgba(38,32,15,.28); box-shadow: var(--sh-3); }
.crate-frame img { border-radius: var(--r-sm); border: 1px solid rgba(38,32,15,.3); }
.crate-frame figcaption {
  position: absolute; left: -14px; bottom: 26px; background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-xs); padding: 8px 13px;
  font-family: var(--f-display); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: .14em; transform: rotate(-2.4deg); box-shadow: var(--sh-1);
}
.crate-frame::after {
  content: ""; position: absolute; right: 18px; top: -13px; width: 62px; height: 26px;
  background: var(--harvest); border: 2px solid #8E5B0F; border-radius: var(--r-xs);
  transform: rotate(3.4deg); box-shadow: var(--sh-1);
}

/* ------------------------------------------------------------- cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: var(--s6) var(--s5) var(--s5); position: relative; box-shadow: var(--sh-1);
  transition: transform .35s var(--ease-organic), box-shadow .35s var(--ease-organic);
}
.card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 7px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: repeating-linear-gradient(90deg, var(--slat) 0 18px, transparent 18px 23px);
  border-bottom: 1px solid var(--rule-soft);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.card h3 { margin-bottom: var(--s2); }
.card h4 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.card p { color: var(--muted); margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); }

/* problem cards carry a cost line stamped at the foot */
.cost {
  display: block; margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px dashed var(--rule); font-family: var(--f-display);
  font-size: var(--t-sm); font-weight: 600; color: #8E5B0F; letter-spacing: .01em;
}

/* botanical icon holder */
.leafmark {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px dashed var(--leaf-line); background: var(--leaf-soft); margin-bottom: var(--s4);
}
.leafmark svg { display: block; }

/* -------------------------------------------------------------- steps --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); counter-reset: step; }
.step { position: relative; padding-top: var(--s6); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-2xl); color: var(--harvest); letter-spacing: -.02em;
}
.step::after {
  content: ""; position: absolute; top: 20px; left: 58px; right: -18px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.step p { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; margin-top: var(--s8); }
.pack-list { list-style: none; padding: 0; margin: 0; }
.pack-list li {
  display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) 0;
  border-bottom: 1px dashed var(--rule); font-size: var(--t-sm); color: var(--ink-80);
}
.pack-list li:last-child { border-bottom: 0; }
.pack-list svg { flex: none; margin-top: 3px; }

/* ------------------------------------------------------------ crate ----- */
.crate {
  position: relative; border: 3px solid rgba(38,32,15,.45); border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(0deg, var(--slat) 0 17px, var(--slat-dark) 17px 19px);
  padding: var(--s5) var(--s4) var(--s4); min-height: 250px; box-shadow: var(--sh-2);
  display: flex; flex-wrap: wrap; align-content: flex-end; gap: 9px;
}
.crate::before {
  content: ""; position: absolute; inset: 8px 8px 8px 8px; border: 1px dashed rgba(38,32,15,.22);
  border-radius: var(--r-xs); pointer-events: none;
}
.crate-chip {
  font-family: var(--f-display); font-size: var(--t-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; padding: 7px 12px;
  border-radius: var(--r-pill); border: 2px solid var(--leaf-deep); background: var(--leaf); color: #FCFAF3;
  opacity: 0; transform: translateY(-26px) rotate(-6deg);
  transition: opacity .85s var(--ease-organic), transform .85s var(--ease-organic);
}
.crate-chip:nth-child(even) { background: var(--harvest); color: #241703; border-color: #8E5B0F; }
.crate-chip:nth-child(3n) { transform: translateY(-30px) rotate(5deg); }
.is-in .crate-chip { opacity: 1; transform: translateY(0) rotate(0deg); }
.is-in .crate-chip:nth-child(1) { transition-delay: .05s; }
.is-in .crate-chip:nth-child(2) { transition-delay: .16s; }
.is-in .crate-chip:nth-child(3) { transition-delay: .27s; }
.is-in .crate-chip:nth-child(4) { transition-delay: .38s; }
.is-in .crate-chip:nth-child(5) { transition-delay: .49s; }
.is-in .crate-chip:nth-child(6) { transition-delay: .6s; }
.is-in .crate-chip:nth-child(7) { transition-delay: .71s; }
.is-in .crate-chip:nth-child(8) { transition-delay: .82s; }
.is-in .crate-chip:nth-child(9) { transition-delay: .93s; }
.is-in .crate-chip:nth-child(10) { transition-delay: 1.04s; }
.crate-note { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s3); text-align: center; }

/* --------------------------------------------------------- outcomes ----- */
.outcome { padding: var(--s5) 0; border-top: 2px solid var(--ink); }
.outcome b {
  display: block; font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1; color: var(--leaf-dark); letter-spacing: -.03em;
  text-shadow: 2px 2px 0 var(--harvest-soft);
}
.outcome h3 { font-size: var(--t-lg); margin: var(--s3) 0 var(--s2); }
.outcome p { color: var(--muted); font-size: var(--t-sm); margin: 0; }

/* ------------------------------------------------------ testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.testimonial {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: var(--s6) var(--s5) var(--s5); margin: 0; position: relative; box-shadow: var(--sh-1);
  background-image: repeating-linear-gradient(0deg, transparent 0 30px, var(--rule-soft) 30px 31px);
  background-position: 0 66px;
}
.testimonial:nth-child(1) { transform: rotate(-.7deg); }
.testimonial:nth-child(3) { transform: rotate(.6deg); }
.testimonial::before {
  content: ""; position: absolute; top: 13px; left: 18px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--paper-3); box-shadow: inset 0 1px 2px rgba(38,32,15,.35);
}
.testimonial::after {
  content: ""; position: absolute; top: 13px; right: 18px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--paper-3); box-shadow: inset 0 1px 2px rgba(38,32,15,.35);
}
.testimonial p { font-size: var(--t-md); color: var(--ink); }
.testimonial footer { display: flex; gap: var(--s3); align-items: center; border-top: 1px dashed var(--rule); padding-top: var(--s3); margin-top: var(--s4); }
.testimonial cite { font-style: normal; font-family: var(--f-display); font-weight: 600; display: block; }
.testimonial span { display: block; font-size: var(--t-xs); color: var(--muted); }
.results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7);
  border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--paper-2); padding: var(--s6) var(--s5);
}
.results div { text-align: center; }
.results b { display: block; font-family: var(--f-display); font-size: var(--t-3xl); color: var(--leaf-dark); line-height: 1.1; }
.results span { font-size: var(--t-sm); color: var(--muted); }

/* ------------------------------------------------------------ pricing --- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: start; }
.tier {
  background: var(--surface); border: 2px solid var(--rule); border-radius: var(--r-md);
  padding: var(--s6) var(--s5); position: relative;
}
.tier::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 10px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: repeating-linear-gradient(90deg, var(--slat) 0 16px, transparent 16px 22px);
}
.tier--best { border-color: var(--leaf); box-shadow: var(--sh-2); transform: translateY(-10px); }
.tier--best::before { background: repeating-linear-gradient(90deg, var(--harvest) 0 16px, transparent 16px 22px); }
.tier-flag { position: absolute; top: -16px; right: -10px; z-index: 2; background: var(--paper); }
.tier h3 { font-size: var(--t-xl); margin: var(--s3) 0 var(--s1); }
.tier .price { font-family: var(--f-display); font-size: 2.9rem; font-weight: 600; color: var(--ink); line-height: 1.05; letter-spacing: -.03em; }
.tier .per { font-size: var(--t-sm); color: var(--muted); display: block; margin-bottom: var(--s4); }
.tier .fit { font-size: var(--t-sm); color: var(--ink-80); border-bottom: 1px dashed var(--rule); padding-bottom: var(--s4); margin-bottom: var(--s4); }
.tier ul { list-style: none; padding: 0; margin: 0 0 var(--s5); }
.tier li { display: flex; gap: 10px; font-size: var(--t-sm); color: var(--ink-80); align-items: flex-start; }
.tier li svg { flex: none; margin-top: 4px; }
.billing-note { margin-top: var(--s5); font-size: var(--t-sm); color: var(--muted); text-align: center; }

/* --------------------------------------------------------------- faq ---- */
.faq { max-width: 54rem; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; display: flex; gap: var(--s4); align-items: center; justify-content: space-between;
  background: transparent; border: 0; cursor: pointer; text-align: left; padding: var(--s5) var(--s2);
  font-family: var(--f-display); font-size: var(--t-lg); font-weight: 600; color: var(--ink);
}
.faq-q:hover { color: var(--leaf-dark); }
.faq-q .mark { flex: none; width: 26px; height: 26px; border: 2px solid var(--leaf); border-radius: 50%; position: relative; }
.faq-q .mark::before, .faq-q .mark::after {
  content: ""; position: absolute; background: var(--leaf); left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.faq-q .mark::before { width: 11px; height: 2px; }
.faq-q .mark::after { width: 2px; height: 11px; transition: transform .3s var(--ease-organic); }
.faq-q[aria-expanded="true"] .mark::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { padding: 0 var(--s2) var(--s5); color: var(--muted); max-width: 62ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ contact --- */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: var(--s8); align-items: start; }
.form-card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: var(--s6); box-shadow: var(--sh-2); position: relative;
}
.form-card::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 9px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: repeating-linear-gradient(90deg, var(--leaf) 0 18px, var(--harvest) 18px 36px);
}
.field { margin-bottom: var(--s4); }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: var(--t-md); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r-sm);
  padding: 11px 13px; transition: border-color .25s var(--ease-organic), box-shadow .25s var(--ease-organic);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); outline: none;
}
.field [aria-invalid="true"] { border-color: #A3341A; background: #FDF1EC; }
.err { display: block; color: #8E2A13; font-size: var(--t-xs); margin-top: 5px; min-height: 1em; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-80); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.form-alt { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s4); }
.hook-list { list-style: none; padding: 0; }
.hook-list li { display: flex; gap: var(--s3); font-size: var(--t-sm); color: var(--ink-80); padding: var(--s3) 0; border-bottom: 1px dashed var(--rule); }

/* ------------------------------------------------------------- footer --- */
.site-footer { background: var(--leaf-deep); color: #E8E4D5; margin-top: var(--s10); }
.site-footer::before {
  content: ""; display: block; height: 8px;
  background: repeating-linear-gradient(90deg, var(--harvest) 0 22px, var(--leaf) 22px 44px);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: var(--s7); padding: var(--s9) 0 var(--s7); }
.site-footer h2 { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .16em; color: #C6D8AE; margin-bottom: var(--s4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #E8E4D5; text-decoration: none; font-size: var(--t-sm); }
.site-footer a:hover { color: var(--harvest); text-decoration: underline; }
.site-footer .brand b { color: #F5F1E4; }
.site-footer .brand span { color: var(--harvest); }
.footer-line { font-size: var(--t-sm); color: #BEBAA6; max-width: 32ch; margin: var(--s4) 0 var(--s5); }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(232,228,213,.34); transition: background-color .28s var(--ease-organic), border-color .28s var(--ease-organic);
}
.social a:hover { background: var(--harvest); border-color: var(--harvest); }
.social a:hover svg { stroke: #241703; }
.footer-base {
  border-top: 1px solid rgba(232,228,213,.2); padding: var(--s5) 0; display: flex;
  flex-wrap: wrap; gap: var(--s4); justify-content: space-between; font-size: var(--t-xs); color: #BEBAA6;
}
.byline {
  margin-top: var(--s8); padding: var(--s5); border: 1px dashed var(--rule);
  border-radius: var(--r-md); background: var(--paper-2); display: flex; gap: var(--s4);
  align-items: center; font-size: var(--t-sm); color: var(--ink-80);
}
.byline svg { flex: none; }

/* -------------------------------------------------------- prose pages --- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--s7); }
.prose h3 { font-size: var(--t-lg); margin-top: var(--s5); }
.prose li { color: var(--ink-80); }
.prose dl { margin: 0 0 var(--s5); }
.prose dt { font-family: var(--f-display); font-weight: 600; margin-top: var(--s3); }
.prose dd { margin: 0 0 var(--s2); color: var(--muted); }
.page-head { padding: var(--s8) 0 var(--s6); border-bottom: 1px dashed var(--rule); margin-bottom: var(--s7); }
.page-head p { color: var(--muted); max-width: 46rem; margin-bottom: 0; }
.crumbs { font-size: var(--t-xs); color: var(--muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--muted); }
.map-group { margin-bottom: var(--s7); }
.map-group ul { list-style: none; padding: 0; }
.map-group li { padding: var(--s3) 0; border-bottom: 1px dashed var(--rule); }
.map-group a { font-family: var(--f-display); font-weight: 600; }
.map-group em { font-style: normal; display: block; color: var(--muted); font-size: var(--t-sm); }
.author-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--s8); align-items: start; }
.author-portrait { padding: 10px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--sh-2); transform: rotate(-1.4deg); }
.author-portrait img { border-radius: var(--r-xs); }
.big-note { text-align: center; padding: var(--s10) 0; }
.big-note .code { font-family: var(--f-display); font-size: clamp(4rem, 16vw, 9rem); color: var(--leaf); line-height: 1; letter-spacing: -.04em; }

/* ------------------------------------------------------------- reveal --- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .95s var(--ease-organic), transform .95s var(--ease-organic); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 1040px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--sh-2); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3) var(--s5) var(--s5); }
  .nav li { border-bottom: 1px dashed var(--rule); }
  .nav a { display: block; padding: var(--s3) 0; }
  .header-bar { position: relative; }
  .header-cta { display: none; }
  .grid-3, .quotes, .tiers, .results { grid-template-columns: 1fr; }
  .tier--best { transform: none; }
  .author-grid { grid-template-columns: 1fr; }
  .testimonial { transform: none !important; }
}
@media (max-width: 620px) {
  .section { padding: var(--s8) 0; }
  .grid-4, .steps, .grid-2, .row-2, .trust { grid-template-columns: 1fr; }
  .hero { padding-top: var(--s7); }
  .footer-grid { grid-template-columns: 1fr; }
  .crate-frame figcaption { left: 8px; }
}

/* ---------------------------------------------------- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .crate-chip { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- printing ---- */
@media print {
  .site-header, .site-footer, .skip, .hero-actions { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   The Weekly Share: the CropShareBox magazine
   Same oat paper, crate slats and hand stamped labels as the rest of the site.
   Nothing new is invented here, only extended.
   ========================================================================== */

.mag {
  padding: var(--s8) 0 var(--s9);
  /* readable measure for long form reading, 64 to 75 characters */
  --measure: 68ch;
}

/* ------------------------------------------------------ magazine crumbs -- */
.mag-crumbs { font-size: var(--t-xs); color: var(--muted); margin-bottom: var(--s5); }
.mag-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; }
.mag-crumbs li { margin: 0; display: flex; align-items: center; gap: var(--s2); max-width: 100%; }
.mag-crumbs li + li::before { content: "/"; color: var(--slat-dark); }
.mag-crumbs a { color: var(--muted); }
.mag-crumbs a:hover { color: var(--leaf-dark); }
.mag-crumbs [aria-current] { color: var(--ink-80); font-weight: 600; overflow-wrap: break-word; }

/* --------------------------------------------------------- masthead ----- */
.mag-masthead { max-width: 52rem; padding-bottom: var(--s6); margin-bottom: var(--s8); position: relative; }
.mag-masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--slat) 0 26px, transparent 26px 32px);
  border-bottom: 1px solid var(--rule);
}
.mag-masthead h1 { margin: var(--s4) 0 var(--s4); }
.mag-standfirst {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.1rem, 2.1vw, var(--t-xl)); line-height: 1.52;
  color: var(--ink-80); max-width: 42rem; margin-bottom: 0;
}
.mag-masthead-facts { display: flex; flex-wrap: wrap; gap: var(--s6); margin: var(--s5) 0 0; }
.mag-masthead-facts div { min-width: 0; }
.mag-masthead-facts dt {
  font-family: var(--f-display); font-size: var(--t-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
}
.mag-masthead-facts dd { margin: 5px 0 0; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------- index grid ----- */
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6) var(--s5); align-items: start; }

.mag-card {
  position: relative; display: flex; flex-direction: column; padding-top: 7px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease-organic), box-shadow .35s var(--ease-organic);
}
.mag-card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 7px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: repeating-linear-gradient(90deg, var(--slat) 0 18px, transparent 18px 23px);
  border-bottom: 1px solid var(--rule-soft);
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.mag-card-media {
  position: relative; margin: 7px 7px 0; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid rgba(38,32,15,.22); background: var(--paper-2);
}
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-angle {
  position: absolute; left: 10px; bottom: 10px; background: var(--paper);
  font-family: var(--f-display); font-size: var(--t-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--leaf-dark);
  padding: 5px 10px 4px; border: 2px solid currentColor; border-radius: var(--r-xs);
  transform: rotate(-1.8deg); box-shadow: var(--sh-1);
}
.mag-card-body { padding: var(--s5); display: flex; flex-direction: column; flex: 1 1 auto; }
.mag-card-meta {
  display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3);
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.mag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--harvest); display: inline-block; flex: none; }
.mag-card-title { font-size: var(--t-xl); line-height: 1.22; margin: 0 0 var(--s3); overflow-wrap: break-word; }
.mag-card-title a {
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--harvest-line), var(--harvest-line));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px;
  transition: background-size .32s var(--ease-organic), color .32s var(--ease-organic);
}
.mag-card:hover .mag-card-title a, .mag-card-title a:hover { background-size: 100% 2px; color: var(--leaf-dark); }
.mag-card-dek { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s5); }
.mag-card-more { margin: auto 0 0; }

.mag-more {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm);
  color: var(--leaf-dark); text-decoration: none;
}
.mag-more::after { content: ""; width: 24px; height: 2px; background: currentColor; transition: width .28s var(--ease-organic); }
.mag-more:hover { color: var(--ink); }
.mag-more:hover::after { width: 34px; }

/* the first report runs as the lead, a wider crate on the page */
.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; border-width: 2px; box-shadow: var(--sh-2); }
.mag-card.lead::before { background: repeating-linear-gradient(90deg, var(--harvest) 0 18px, transparent 18px 23px); }
.mag-card.lead .mag-card-media { flex: 0 0 52%; margin: 7px 0 7px 7px; }
.mag-card.lead .mag-card-media img { height: 100%; min-height: 330px; aspect-ratio: auto; }
.mag-card.lead .mag-card-body { padding: var(--s7) var(--s7) var(--s6); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: clamp(1.55rem, 2.9vw, var(--t-3xl)); letter-spacing: -.018em; }
.mag-card.lead .mag-card-dek { font-size: var(--t-md); color: var(--ink-80); max-width: 34rem; }
.mag-card.lead .mag-card-angle { transform: rotate(-2.4deg); }

/* --------------------------------------------------- article header ----- */
.mag-read .mag-head { max-width: 52rem; margin-bottom: var(--s7); }
.mag-read .mag-head h1 { font-size: clamp(1.95rem, 4.4vw, var(--t-4xl)); margin: var(--s4) 0 var(--s5); overflow-wrap: break-word; }
.mag-angle { margin-bottom: var(--s2); }
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  margin-top: var(--s5); padding-top: var(--s4); border-top: 1px dashed var(--rule);
  font-size: var(--t-sm); color: var(--muted);
}
.mag-byline-who { font-weight: 600; color: var(--ink); }
.mag-byline a { color: var(--leaf-dark); }
.mag-byline-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--harvest); display: inline-block; flex: none; }
.mag-byline time { font-variant-numeric: tabular-nums; }

.mag-figure {
  margin: 0 0 var(--s8); padding: 12px; border: 2px solid rgba(38,32,15,.28);
  border-radius: var(--r-md); box-shadow: var(--sh-2);
  background: repeating-linear-gradient(90deg, var(--slat) 0 20px, var(--slat-dark) 20px 21px);
}
.mag-figure img { width: 100%; border-radius: var(--r-sm); border: 1px solid rgba(38,32,15,.3); }
.mag-figure figcaption {
  margin-top: 11px; padding: 8px 12px; background: var(--paper);
  border: 1px dashed rgba(38,32,15,.32); border-radius: var(--r-xs);
  font-size: var(--t-xs); color: var(--ink-80); letter-spacing: .01em;
}

/* --------------------------------------------------- article typography - */
.mag-shell { max-width: var(--measure); margin-inline: auto; }
.mag-body { max-width: var(--measure); font-size: 1.07rem; line-height: 1.72; color: var(--ink-80); }
.mag-body > *:first-child { margin-top: 0; }
.mag-body p { margin: 0 0 var(--s5); }
.mag-body h2 {
  position: relative; color: var(--ink); font-size: clamp(1.42rem, 2.9vw, var(--t-2xl));
  line-height: 1.2; margin: var(--s8) 0 var(--s4); padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}
.mag-body h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 66px; height: 3px; background: var(--harvest); }
.mag-body h3 { color: var(--ink); font-size: var(--t-lg); margin: var(--s6) 0 var(--s3); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--s5); padding-left: 1.35rem; }
.mag-body li { margin-bottom: var(--s3); }
.mag-body li::marker { color: var(--leaf); }
.mag-body a { color: var(--leaf-dark); text-decoration-color: var(--harvest-line); text-decoration-thickness: 2px; }
.mag-body a:hover { color: var(--ink); text-decoration-color: var(--harvest); }
.mag-body strong { color: var(--ink); }
.mag-body blockquote {
  margin: var(--s6) 0; padding: var(--s5); border-left: 3px solid var(--leaf);
  background: var(--leaf-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.5; color: var(--ink);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table { width: 100%; border-collapse: collapse; margin: var(--s6) 0; font-size: var(--t-sm); }
.mag-body th, .mag-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.mag-body thead th { font-family: var(--f-display); background: var(--paper-2); border-bottom: 2px solid var(--ink); color: var(--ink); }

/* a pressed note in the margin of the copy, pointing at the next report */
.inline-read {
  position: relative; margin: var(--s6) 0; padding: var(--s4) var(--s5) var(--s4) calc(var(--s5) + 26px);
  background: var(--paper-2); border: 1px dashed var(--leaf-line); border-left: 3px solid var(--leaf);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--f-display); font-size: var(--t-md); line-height: 1.5; color: var(--ink);
}
.inline-read::before {
  content: ""; position: absolute; left: var(--s4); top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B6B2A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20c2-7 6-11 13-12'/%3E%3Cpath d='M17 8c-6 1-9 5-10 11'/%3E%3C/svg%3E");
}
.inline-read a { color: var(--leaf-dark); font-weight: 600; }

/* ------------------------------------------------------------- the ask -- */
.mag-cta {
  position: relative; margin: var(--s8) 0 0; padding: var(--s7) var(--s6) var(--s6);
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--sh-2);
}
.mag-cta::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 9px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: repeating-linear-gradient(90deg, var(--leaf) 0 18px, var(--harvest) 18px 36px);
}
.mag-cta h2 { font-size: var(--t-xl); line-height: 1.24; margin: var(--s3) 0 var(--s3); }
.mag-cta p { color: var(--ink-80); font-size: var(--t-sm); margin-bottom: var(--s5); }
.mag-cta .btn { max-width: 100%; }
.mag-cta--wide { margin-top: var(--s9); }

/* ---------------------------------------------------------- author box -- */
.mag-author {
  display: flex; gap: var(--s5); align-items: flex-start; margin-top: var(--s7); padding: var(--s6);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.mag-author img {
  flex: none; width: 132px; height: 132px; object-fit: cover; padding: 8px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-xs);
  box-shadow: var(--sh-1); transform: rotate(-1.6deg);
}
.mag-author-text { min-width: 0; }
.mag-author-name { font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); margin: 0 0 var(--s2); color: var(--ink); }
.mag-author p { font-size: var(--t-sm); color: var(--ink-80); margin-bottom: var(--s3); }
.mag-author-more { margin-bottom: 0; }
.mag-author-more a { font-family: var(--f-display); font-weight: 600; color: var(--leaf-dark); }

/* ----------------------------------------------------------- read also -- */
.mag-related { margin-top: var(--s9); padding-top: var(--s6); border-top: 1px solid var(--rule); }
.mag-related h2 { font-size: var(--t-2xl); margin-bottom: var(--s2); }
.mag-related-note { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s6); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.mag-rel {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .35s var(--ease-organic), box-shadow .35s var(--ease-organic);
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.mag-rel-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--rule); }
.mag-rel-body { padding: var(--s5) var(--s4); }
.mag-rel-date { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: var(--s2); }
.mag-rel-title { font-size: var(--t-md); line-height: 1.28; margin: 0 0 var(--s2); overflow-wrap: break-word; }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--leaf-dark); text-decoration: underline; text-decoration-color: var(--harvest); }
.mag-rel-dek { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.mag-related-all { margin: var(--s6) 0 0; }

/* ------------------------------------------- magazine strip on the home -- */
.mag-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s7); }
.mag-home-head .section-head { margin-bottom: 0; }
.mag-home-all { margin: 0; }

/* the magazine strip on the home page sits between two plain bands, so it is
   marked out by the same crate slat rule the header uses */
.mag-strip { position: relative; }
.mag-strip::before, .mag-strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--slat) 0 26px, transparent 26px 32px);
}
.mag-strip::before { top: 0; border-top: 1px solid var(--rule); }
.mag-strip::after { bottom: 0; border-bottom: 1px solid var(--rule); }

/* the author page bibliography, printed like a season index */
.mag-bib { list-style: none; padding: 0; margin: 0 0 var(--s6); }
.mag-bib li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s2) var(--s4); padding: var(--s3) 0; border-bottom: 1px dashed var(--rule);
}
.mag-bib a { font-family: var(--f-display); font-weight: 600; color: var(--ink); text-decoration: none; }
.mag-bib a:hover { color: var(--leaf-dark); text-decoration: underline; text-decoration-color: var(--harvest); }
.mag-bib time { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }

/* ------------------------------------------------- magazine responsive -- */
/* the nav carries one more label now, so it tightens and wraps before the
   hamburger takes over at 880px */
@media (min-width: 881px) and (max-width: 1040px) {
  .nav ul { gap: var(--s2) var(--s3); flex-wrap: wrap; justify-content: flex-end; }
  .nav a { font-size: var(--t-xs); }
}
@media (max-width: 1040px) {
  .mag-grid, .mag-related-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media { flex: none; margin: 7px 7px 0; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
  .mag-card.lead .mag-card-body { padding: var(--s6) var(--s5); }
}
@media (max-width: 760px) {
  .mag-grid, .mag-related-grid { grid-template-columns: 1fr; }
  .mag-author { flex-direction: column; gap: var(--s4); }
  .mag-author img { transform: none; }
}
@media (max-width: 480px) {
  .mag { padding: var(--s7) 0 var(--s8); }
  .mag-masthead { margin-bottom: var(--s7); }
  .mag-masthead-facts { gap: var(--s5); }
  .mag-figure { padding: 7px; margin-bottom: var(--s7); }
  .mag-figure figcaption { margin-top: 8px; padding: 7px 9px; }
  .mag-byline { gap: var(--s2) var(--s3); font-size: var(--t-xs); }
  .mag-body { font-size: 1.02rem; }
  .mag-body h2 { margin-top: var(--s7); }
  .mag-body table { display: block; overflow-x: auto; }
  .inline-read { padding: var(--s4) var(--s4) var(--s4) calc(var(--s4) + 24px); font-size: var(--t-sm); }
  .inline-read::before { left: 10px; }
  .mag-cta { padding: var(--s6) var(--s5) var(--s5); }
  .mag-cta .btn { width: 100%; }
  .mag-card-body { padding: var(--s5) var(--s4); }
  .mag-card.lead .mag-card-body { padding: var(--s5) var(--s4); }
  .mag-related { margin-top: var(--s8); }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
