/* ==========================================================================
   kind karma — a warm solutions-journalism magazine
   Cream paper, ink, terracotta, sage, soft gold. Young Serif (400 only) for
   headlines, Figtree for interface and reading. Rounded, generous, human.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --paper: #FBF6EE;
  --paper-2: #F3E9DA;
  --card: #FFFDF9;
  --ink: #2B2622;
  --ink-2: #4A423C;
  --ink-soft: #6A5F56;          /* 5.8:1 on paper, 5.2:1 on paper-2 */
  --line: #E7DBCA;
  --line-strong: #D6C5AE;

  --terra: #C8553D;             /* large text, fills, rules only */
  --terra-deep: #A23F2B;        /* small text and links: 6:1 on paper */
  --terra-tint: #F6E1D6;
  --sage: #6B8F71;              /* fills and rules only */
  --sage-deep: #3E5A44;         /* small sage text, footer: 7:1 with paper */
  --sage-tint: #E3EBE0;
  --gold: #E3B04B;              /* highlights, number discs (ink text on it) */
  --gold-soft: #F2D58F;
  --gold-tint: #F8EACB;

  --serif: "Young Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(43 38 34 / .05), 0 10px 26px -14px rgb(43 38 34 / .24);
  --shadow-lift: 0 2px 4px rgb(43 38 34 / .06), 0 22px 40px -20px rgb(43 38 34 / .34);

  --wrap: 76rem;
  --measure: 40rem;             /* ~68 characters of Figtree at 1.125rem */
  --gut: clamp(1rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --block: clamp(3rem, 7vw, 5.5rem);

  --t-fast: .18s;
  --t-slow: .5s;

  /* hand-drawn details, inline so they cost no request */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'%3E%3Cpath d='M2 6.4c5-4.3 9.7-4.4 14.3-.4s9.1 4.1 14-.1 9.6-4.2 14.1-.1 9.4 3.9 14.6-.8' fill='none' stroke='%23E3B04B' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 10'%3E%3Cpath d='M0 5C8 .2 16 .2 24 5s16 4.6 24 0 16-4 24 0 16 4.4 24 0' fill='none' stroke='%236B8F71' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --edge-terra: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 8C10 8 20 2 30 2s20 6.5 30 6.5S80 1.5 90 1.5 110 8 120 8v6H0z' fill='%23C8553D'/%3E%3C/svg%3E");
  --edge-sage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 8C10 8 20 2 30 2s20 6.5 30 6.5S80 1.5 90 1.5 110 8 120 8v6H0z' fill='%233E5A44'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Section tones: each beat gets its own colour for placeholders, marks and headers. */
[data-cat] { --tone: var(--sage); --tone-tint: var(--sage-tint); }
[data-cat="youth"] { --tone: var(--gold); --tone-tint: var(--gold-tint); }
[data-cat="giving"], [data-cat="social-enterprise"] { --tone: var(--terra); --tone-tint: var(--terra-tint); }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-synthesis: none;          /* Young Serif ships one weight: never fake-bold it */
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible { outline: 3px solid var(--terra-deep); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 50;
  padding: .8rem 1.2rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gut), var(--measure)); margin-inline: auto; }
.dot { margin-inline: .45em; opacity: .7; }

/* 3. Shared bits: chips, buttons, meta, titles with a squiggle -------------- */
.chip {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; align-self: flex-start;
  min-height: 1.75rem; padding: .15rem .75rem;
  border-radius: 999px;
  background: var(--terra-tint); color: var(--terra-deep);
  font: 700 .72rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
a.chip:hover { background: var(--terra-deep); color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .6rem 1.4rem;
  border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font: 700 .95rem/1.2 var(--sans); text-decoration: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--terra-deep); border-color: var(--terra-deep); }
.btn--cream { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--cream:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn.is-off { opacity: .4; }

.meta { display: flex; flex-wrap: wrap; align-items: baseline; color: var(--ink-soft); font-size: .8125rem; line-height: 1.5; }
.meta > *, .byline-meta > span { white-space: nowrap; }
.meta-by { font-weight: 600; color: var(--ink-2); }

.sq-title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  padding-bottom: .9rem; margin-bottom: clamp(1.25rem, 3vw, 2rem);
  background: var(--squiggle) left bottom / 4.5rem .7rem no-repeat;
}

/* 4. Masthead -------------------------------------------------------------- */
.strip { background: var(--sage-deep); color: var(--paper); font-size: .8125rem; }
.strip-in { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: .5rem; }
.strip-date { white-space: nowrap; font-weight: 600; }
.strip-tag { display: none; }

.brand-row { display: flex; justify-content: center; padding-block: clamp(1.25rem, 3.4vw, 2.4rem) clamp(.5rem, 1.6vw, 1rem); }
.brand { font: 400 clamp(2.4rem, 1.5rem + 4vw, 4.4rem)/1 var(--serif); letter-spacing: -.025em; }
.brand-link { display: inline-flex; align-items: center; gap: .22em; color: var(--ink); text-decoration: none; }
.brand-link:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark { width: .92em; height: .92em; flex: none; color: var(--terra); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand-word { padding-bottom: .06em; }

/* Section rail: a swipeable pill row on phones (no JS needed), centred on wide screens. */
.sections-list {
  list-style: none;
  display: flex; gap: .3rem;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: .35rem var(--gut) .6rem;
  scroll-padding-inline: var(--gut);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
}
.sections-list::-webkit-scrollbar { display: none; }
.sections-list li { flex: none; display: flex; align-items: center; }
.sections a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 1rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.sections a:hover { background: var(--paper-2); }
.sections a[aria-current] { background: var(--terra-tint); color: var(--terra-deep); }
.sections .is-extra::before {
  content: ""; width: 5px; height: 5px; margin-inline: .45rem .2rem;
  border-radius: 50%; background: var(--gold);
}
.wave { height: 10px; background: var(--wave) left center / 96px 10px repeat-x; opacity: .85; }

/* 5. Cards ------------------------------------------------------------------ */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: .6rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--t-slow) cubic-bezier(.2, .8, .2, 1), box-shadow var(--t-slow);
}
.card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.card-media img, .lead-media img, .story-cover-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) cubic-bezier(.2, .8, .2, 1);
}
.card-body { flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: 1rem .7rem .55rem; }
.card-title { font-size: clamp(1.2rem, 1.1rem + .35vw, 1.35rem); line-height: 1.2; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { outline: 3px solid var(--terra-deep); outline-offset: 3px; }
.card-sum { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: .2rem; }

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card:hover .card-media img { transform: scale(1.035); }
.card:hover .card-title a, .lead:hover .lead-title a {
  text-decoration: underline; text-decoration-color: var(--terra);
  text-decoration-thickness: 2px; text-underline-offset: .16em;
}

/* big: the lead story of a section */
.card--big .card-media { aspect-ratio: 16 / 9; }
.card--big .card-body { padding: 1.3rem 1rem .8rem; gap: .75rem; }
.card--big .card-title { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem); line-height: 1.13; }
.card--big .card-sum { font-size: 1.02rem; color: var(--ink-2); }

/* row: compact list item, no paper, just a thumb */
.card--row {
  flex-direction: row; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0; background: none; box-shadow: none; border-radius: 0;
  border-top: 1px dashed var(--line-strong);
}
.card--row:first-child { border-top: 0; padding-top: 0; }
.card--row .card-media { flex: 0 0 34%; max-width: 9.5rem; aspect-ratio: 4 / 3; }
.card--row .card-body { padding: 0; gap: .4rem; }
.card--row .card-title { font-size: 1.12rem; line-height: 1.25; }
.card--row .card-title a::after { border-radius: 0; }
.card--row .card-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }
.card--row:hover { transform: none; box-shadow: none; }
.card--row .ph-label { display: none; }

/* wide: horizontal feature (single story of a section, first story of a section page) */
.card--wide .card-body { padding: 1.2rem .9rem .7rem; }
.card--wide .card-title { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); line-height: 1.12; }
.card--wide .card-sum { font-size: 1.02rem; color: var(--ink-2); }

/* Placeholder for stories without a picture: section tint, dotted paper, the knot. */
.ph {
  display: grid; place-content: center; justify-items: center; gap: .7rem;
  width: 100%; height: 100%; min-height: 100%;
  background-color: var(--tone-tint, var(--sage-tint));
  background-image: radial-gradient(circle at 1.5px 1.5px, rgb(43 38 34 / .09) 1.2px, transparent 1.6px);
  background-size: 16px 16px;
  color: var(--tone, var(--sage));
}
.ph-mark { width: clamp(2.5rem, 24%, 6rem); height: auto; }
.ph-label { font: 400 clamp(1rem, .9rem + .5vw, 1.35rem)/1.1 var(--serif); color: var(--ink); text-align: center; padding-inline: 1rem; }

/* 6. Home: lead ------------------------------------------------------------- */
.lead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin-block: clamp(1.25rem, 3vw, 2.5rem) var(--block); }
.lead-media {
  grid-row: 1; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.lead-card {
  grid-row: 2; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: .85rem;
  margin: -3.25rem .7rem 0;
  padding: 1.4rem 1.35rem 1.35rem;
  background: var(--card) var(--squiggle) right 1.35rem top 1.6rem / 3rem .6rem no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.lead-title { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.55rem); line-height: 1.1; letter-spacing: -.018em; }
.lead-title a { text-decoration: none; }
.lead-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-lg); }
.lead-title a:focus-visible { outline: none; }
.lead-title a:focus-visible::after { outline: 3px solid var(--terra-deep); outline-offset: 4px; }
.lead-sum { font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }
.lead:hover .lead-media img { transform: scale(1.025); }

.dateline {
  font: 700 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra-deep); white-space: nowrap;
}

/* 7. Home: good things this week ---------------------------------------------- */
.goods {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem;
  margin-bottom: var(--block);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.goods-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.goods-title {
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.7rem); line-height: 1.05;
  padding-bottom: 1rem;
  background: var(--squiggle) left bottom / 5rem .75rem no-repeat;
}
.goods-mark { flex: none; width: 3rem; height: 3rem; color: var(--sage); transform: rotate(-10deg); }
.goods-list { list-style: none; counter-reset: good; column-gap: 2.5rem; }
.goods-item {
  position: relative; break-inside: avoid;
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  min-height: 3.4rem;
  padding: 0 0 1rem 3.3rem; margin-bottom: 1rem;
  border-bottom: 1px dashed var(--line-strong);
  counter-increment: good;
}
.goods-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
/* phones: six good things are enough before the first section; the rest appear in the section blocks below */
@media (max-width: 39.99rem) {
  .goods-item:nth-child(n+7) { display: none; }
  .goods-item:nth-child(6) { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
}
.goods-item::before {
  content: counter(good);
  position: absolute; left: 0; top: .05rem;
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 47% 53% 50% 50% / 55% 46% 54% 45%;   /* a slightly hand-cut disc */
  background: var(--gold); color: var(--ink);
  font: 400 1.1rem/1 var(--serif);
}
.goods-item:nth-child(3n+2)::before { border-radius: 53% 47% 46% 54% / 48% 55% 45% 52%; }
.goods-meta { display: flex; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--ink-soft); }
.goods-meta .dot { margin-inline: .5em; }
.goods-cat {
  display: inline-flex; align-items: center; min-height: 24px;
  font: 700 .7rem/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  color: var(--terra-deep); text-decoration: none;
}
.goods-cat:hover { text-decoration: underline; }
.goods-h { font: 600 1.02rem/1.38 var(--sans); letter-spacing: 0; text-wrap: pretty; }
.goods-h a { text-decoration: none; }
.goods-h a:hover { text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: .16em; }

/* 8. Home: section blocks ----------------------------------------------------- */
.sec { margin-bottom: var(--block); }
.sec-head {
  display: grid; gap: .5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem); padding-bottom: 1.1rem;
  background: var(--wave) left bottom / 96px 10px repeat-x;
}
.sec-title { display: flex; align-items: center; gap: .6rem; font-size: clamp(2rem, 1.45rem + 2.2vw, 3rem); line-height: 1.05; }
.sec-title::before {
  content: ""; flex: none; width: .5em; height: .5em;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background: var(--tone);
}
.sec-title a { text-decoration: none; }
.sec-title a:hover { text-decoration: underline; text-decoration-color: var(--tone); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.sec-desc { max-width: 52ch; color: var(--ink-soft); font-size: 1rem; }
.sec-more {
  justify-self: start;
  display: inline-flex; align-items: center; gap: .3em; min-height: 44px;
  font-weight: 700; font-size: .92rem; color: var(--terra-deep);
  text-decoration: underline; text-decoration-color: rgb(162 63 43 / .35); text-underline-offset: .25em;
}
.sec-more:hover { text-decoration-color: currentColor; }
.sec-grid, .sec-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.sec-side { display: grid; align-content: start; }

/* 9. Mission band ------------------------------------------------------------- */
.band {
  position: relative;
  margin: calc(var(--block) * .4) 0 calc(var(--block) * 1.25);
  background: var(--terra); color: var(--paper);
}
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: var(--edge-terra) 0 0 / 240px 14px repeat-x;
}
.band::before { bottom: calc(100% - 1px); }
.band::after { top: calc(100% - 1px); transform: scaleY(-1); }
.band-in { display: grid; justify-items: start; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band-mark { width: 3.5rem; height: 3.5rem; color: var(--gold-soft); }
.band-text { max-width: 34ch; font: 400 clamp(1.5rem, 1.05rem + 1.9vw, 2.4rem)/1.28 var(--serif); text-wrap: pretty; }

/* 10. Section page ------------------------------------------------------------ */
.cat-head {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-block: clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--tone-tint);
}
.cat-text { display: grid; gap: .9rem; justify-items: start; }
.cat-title { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); line-height: 1; letter-spacing: -.025em; }
.cat-desc { max-width: 46ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.cat-count {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  font: 700 .74rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2);
}
.count-n {
  display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding-inline: .45rem;
  border-radius: 999px; background: var(--card); color: var(--ink);
  font: 400 1rem/1 var(--serif); letter-spacing: 0;
}
.cat-mark { position: absolute; right: -.6rem; bottom: -.9rem; width: 5.5rem; height: auto; color: var(--tone); opacity: .55; transform: rotate(-12deg); }
@media (min-width: 40rem) { .cat-mark { position: static; flex: none; width: clamp(6rem, 16vw, 11rem); opacity: .9; transform: rotate(-8deg); } }
.cat-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }

.grid3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  background: var(--wave) left top / 96px 10px repeat-x;
}
.pager-n { font-weight: 600; color: var(--ink-soft); font-size: .9rem; text-align: center; }

/* 11. Article ------------------------------------------------------------------ */
.story { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.story-head { display: grid; justify-items: center; gap: 1.15rem; text-align: center; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; font-size: .875rem; }
.crumbs li { display: flex; align-items: center; gap: .55rem; }
.crumbs li + li::before { content: "/" / ""; color: var(--line-strong); font-weight: 700; }
.crumbs a:not(.chip) {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink-soft); font-weight: 600; text-decoration: none;
}
.crumbs a:not(.chip):hover { color: var(--terra-deep); text-decoration: underline; }
.crumbs .chip { min-height: 2rem; padding-inline: .9rem; }
.story-title { font-size: clamp(2.05rem, 1.35rem + 3vw, 3.55rem); line-height: 1.07; letter-spacing: -.02em; }
.standfirst {
  max-width: 36rem;
  font: 400 clamp(1.08rem, .98rem + .6vw, 1.36rem)/1.5 var(--serif);
  color: var(--ink-2); text-wrap: pretty;
}
.standfirst .dateline { font-size: .75rem; vertical-align: .14em; margin-right: .2em; }
.byline { display: flex; align-items: center; gap: .8rem; margin-top: .35rem; text-align: left; }
.byline-text { display: grid; gap: .1rem; }
.byline-name { font-size: .95rem; color: var(--ink-2); }
.byline-name a { font-weight: 700; color: var(--ink); text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.byline-name a:hover { color: var(--terra-deep); }
.byline-role { color: var(--ink-soft); }
.byline-meta { display: flex; flex-wrap: wrap; color: var(--ink-soft); font-size: .84rem; }

.avatar {
  flex: none; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background: var(--sage-tint); color: var(--sage-deep);
  box-shadow: inset 0 0 0 2px var(--sage);
  font: 400 1rem/1 var(--serif); letter-spacing: .02em;
}
.avatar--lg { width: clamp(3.4rem, 10vw, 4.5rem); height: clamp(3.4rem, 10vw, 4.5rem); font-size: clamp(1.2rem, 3vw, 1.5rem); }
.avatar--xl { width: clamp(6rem, 18vw, 8.5rem); height: clamp(6rem, 18vw, 8.5rem); font-size: clamp(2rem, 5vw, 2.9rem); }

.story-cover { width: min(100% - 2 * var(--gut), 68rem); margin: clamp(1.75rem, 4vw, 2.75rem) auto 0; }
.story-cover-media { overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); background: var(--paper-2); }
.story-cover-media img { object-position: 50% 40%; }
.story-cover--ph .story-cover-media { aspect-ratio: 5 / 2; }
.credit { margin-top: .65rem; font-size: .78rem; line-height: 1.45; color: var(--ink-soft); text-align: right; }
.credit a { color: inherit; text-underline-offset: .2em; }
.credit a:hover { color: var(--terra-deep); }

/* Reading column: Figtree for long-form comfort (Young Serif is a display face with one weight),
   with Young Serif carrying the voice in headings, the drop cap and pull-quotes. */
.article-body, .prose { font-size: 1.125rem; line-height: 1.75; color: var(--ink); }
.article-body { margin-top: clamp(2rem, 5vw, 3rem); }
.article-body > * + *, .prose > * + * { margin-top: 1.3em; }
.article-body p, .article-body li, .prose p, .prose li { font-weight: 400; }
.article-body strong, .article-body b, .prose strong, .prose b { font-weight: inherit; }
.article-body a, .prose a {
  font-weight: inherit;
  color: var(--terra-deep);
  text-decoration: underline; text-decoration-color: rgb(162 63 43 / .4);
  text-decoration-thickness: 1px; text-underline-offset: .2em;
  transition: text-decoration-color var(--t-fast);
}
.article-body a:hover, .prose a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.article-body > p:first-of-type::first-letter {
  float: left;
  margin: .1em .12em 0 -.02em;
  font-family: var(--serif); font-weight: 400; font-size: 3.7em; line-height: .78;
  color: var(--terra);
}
.article-body h2, .prose h2 { margin-top: 2.1em; font-size: clamp(1.55rem, 1.25rem + 1.1vw, 1.95rem); line-height: 1.18; }
.article-body h2::after, .prose h2::after {
  content: ""; display: block; width: 3.4rem; height: .6rem; margin-top: .6rem;
  background: var(--squiggle) left center / contain no-repeat;
}
.article-body h3, .prose h3 { margin-top: 1.8em; font: 700 1.2rem/1.35 var(--sans); letter-spacing: 0; }
.article-body h2 + *, .article-body h3 + *, .prose h2 + *, .prose h3 + * { margin-top: .8em; }
.article-body ul, .article-body ol, .prose ul, .prose ol { padding-left: 1.4em; }
.article-body li + li, .prose li + li { margin-top: .5em; }
.article-body li::marker, .prose li::marker { color: var(--sage-deep); }
.article-body ol li::marker, .prose ol li::marker { color: var(--terra-deep); font-family: var(--serif); }
.article-body ul li, .prose ul li { padding-left: .2em; }

.article-body blockquote, .prose blockquote {
  margin-block: 2.2em;
  padding: .3em 0 .3em 1.5rem;
  border-left: 4px solid var(--terra);
}
.article-body blockquote::before, .prose blockquote::before {
  content: "\201C" / "";
  display: block; height: 2.1rem;
  font: 400 4.2rem/1 var(--serif); color: var(--gold);
}
.article-body blockquote p, .prose blockquote p {
  font: 400 clamp(1.35rem, 1.1rem + 1vw, 1.7rem)/1.36 var(--serif);
  color: var(--ink); text-wrap: pretty;
}
.article-body blockquote p + p, .prose blockquote p + p { margin-top: .6em; }

.article-body table, .prose table {
  display: block; overflow-x: auto; max-width: 100%;
  border-collapse: collapse;
  font-size: .95rem; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.article-body th, .article-body td, .prose th, .prose td { padding: .7rem .9rem .7rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-body th, .prose th {
  font: 700 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); border-bottom: 2px solid var(--ink);
}
.article-body tbody tr:last-child td, .prose tbody tr:last-child td { border-bottom-color: var(--line-strong); }

.article-body figure, .prose figure { margin-block: 2.2em; }
.article-body figure img, .article-body > img, .prose figure img, .prose > img { width: 100%; height: auto; border-radius: var(--radius); }
.article-body figcaption, .prose figcaption {
  margin-top: .7rem; padding-left: .8rem;
  border-left: 2px solid var(--sage);
  font-size: .86rem; line-height: 1.5; color: var(--ink-soft);
}
.article-body hr, .prose hr { height: 10px; border: 0; background: var(--wave) center / 96px 10px repeat-x; }

.story-foot { margin-top: clamp(2.25rem, 5vw, 3rem); }
.with-files {
  padding-top: 1.1rem; margin-bottom: 2rem;
  border-top: 1px dashed var(--line-strong);
  font-size: .9rem; color: var(--ink-soft);
}
.author-box {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1.1rem 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow);
}
.author-text { display: grid; gap: .35rem; justify-items: start; }
.author-name { font: 400 1.35rem/1.2 var(--serif); }
.author-role { font: 700 .72rem/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--sage-deep); }
.author-bio { color: var(--ink-2); font-size: .95rem; line-height: 1.6; margin-top: .2rem; }
.author-link {
  display: inline-flex; align-items: center; gap: .3em; min-height: 44px;
  font-weight: 700; font-size: .92rem; color: var(--terra-deep);
  text-decoration: underline; text-decoration-color: rgb(162 63 43 / .35); text-underline-offset: .25em;
}
.author-link:hover { text-decoration-color: currentColor; }

.more { margin-top: var(--block); }

/* 12. Author, static pages, 404 -------------------------------------------------- */
.person { display: grid; justify-items: center; gap: .9rem; text-align: center; padding-top: clamp(1.75rem, 5vw, 3.5rem); }
.person-name { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); line-height: 1.05; }
.person-role { font: 700 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); }
.person-bio { max-width: 34rem; font: 400 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.55 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.is-author .more { margin-top: clamp(2.5rem, 6vw, 4rem); }

.static { padding-top: clamp(1.75rem, 5vw, 3.5rem); }
.static-head { display: grid; justify-items: start; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.static-mark { width: 3rem; height: 3rem; color: var(--terra); }
.static-title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); line-height: 1.06; padding-bottom: 1rem; background: var(--squiggle) left bottom / 4.5rem .7rem no-repeat; }

.nf { display: grid; justify-items: center; gap: 1.1rem; text-align: center; padding-top: clamp(2rem, 6vw, 4.5rem); }
.nf-mark { width: clamp(4.5rem, 14vw, 6.5rem); height: auto; color: var(--terra); transform: rotate(-14deg); }
.nf-title { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 3.8rem); }
.nf-text { max-width: 30rem; font-size: 1.1rem; color: var(--ink-2); }
.nf .btn { margin-top: .5rem; }

/* 13. Footer ----------------------------------------------------------------------- */
.site-foot {
  position: relative;
  margin-top: calc(var(--block) * 1.1);
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.25rem;
  background: var(--sage-deep); color: var(--paper);
}
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 14px;
  background: var(--edge-sage) 0 0 / 240px 14px repeat-x;
}
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: .22em; }
.site-foot :focus-visible { outline-color: var(--gold-soft); }
.foot-grid { display: grid; gap: 2.25rem; }
.foot-word { font: 400 clamp(2rem, 1.6rem + 1.6vw, 2.6rem)/1 var(--serif); letter-spacing: -.02em; }
.foot-word a { display: inline-flex; align-items: center; gap: .22em; }
.foot-word .brand-mark { color: var(--gold-soft); }
.foot-note { margin-top: 1rem; max-width: 34ch; color: #E9EFE6; font-size: .98rem; }
.foot-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.foot-pills a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem;
  border-radius: 999px; border: 1.5px solid rgb(251 246 238 / .45);
  font-weight: 600; font-size: .9rem;
}
.foot-pills a:hover { background: var(--paper); color: var(--sage-deep); text-decoration: none; }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 2rem; }
.foot-h {
  margin-bottom: .6rem;
  font: 700 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft);
}
.foot-list { list-style: none; }
.foot-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: .98rem; }
.foot-base {
  margin-top: 2.5rem; padding-top: 1.1rem;
  border-top: 1px solid rgb(251 246 238 / .22);
  font-size: .82rem; color: #E1E8DE;
}

/* 14. Breakpoints -------------------------------------------------------------------- */
@media (min-width: 40rem) {
  .goods-list { columns: 2; }
  .lead-media { aspect-ratio: 16 / 10; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-body table, .prose table { display: table; width: 100%; }
  .article-body th, .prose th { white-space: nowrap; }
}

@media (min-width: 48rem) {
  .strip-tag { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .92; }
  .sections-list {
    flex-wrap: wrap; justify-content: center; overflow: visible;
    -webkit-mask-image: none; mask-image: none;
    padding-bottom: .8rem;
  }
  .sec-head { grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; }
  .sec-head .sec-more { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .card--wide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: .5rem; padding: .7rem; }
  .card--wide .card-media { aspect-ratio: 3 / 2; }
  .card--wide .card-body { padding: 1.5rem 1.6rem 1.5rem 1.4rem; gap: .85rem; }
  .sec--flip .card--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .sec--flip .card--wide .card-media { order: 2; }
  .sec--flip .card--wide .card-body { padding: 1.5rem 1.4rem 1.5rem 1.6rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
  .foot-list a { min-height: 2.4rem; }
  .story-cover-media { aspect-ratio: 16 / 9; }
  .story-cover--ph .story-cover-media { aspect-ratio: 3 / 1; }
  .band-in { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(1.5rem, 4vw, 3rem); }
  .band-mark { width: clamp(4rem, 8vw, 6rem); height: auto; grid-row: span 2; }
  .band-in .btn { grid-column: 2; }
}

@media (min-width: 56rem) {
  .sec-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.75rem, 3vw, 2.75rem); }
  .sec--n4 .sec-side { align-content: space-between; }
  .sec--flip .sec-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sec--flip .sec-grid > .card--big { grid-column: 2; grid-row: 1; }
  .sec--flip .sec-grid > .sec-side { grid-column: 1; grid-row: 1; }
  .sec-side { padding-top: .6rem; }
}

@media (min-width: 64rem) {
  .lead { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; column-gap: 1.5rem; }
  .lead-media { grid-column: 1 / 10; grid-row: 1; aspect-ratio: 16 / 10; }
  .lead-card { grid-column: 7 / 13; grid-row: 1; align-self: end; margin: 0 0 -2.5rem; padding: 2.4rem 2.6rem 2.2rem; gap: 1rem; background-position: right 2rem top 2.4rem; }
  .lead { margin-bottom: calc(var(--block) + 2.5rem); }
  .goods { grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; }
  .goods-head { flex-direction: column; justify-content: space-between; }
  .goods-mark { width: 4.5rem; height: 4.5rem; }
  .goods-list { columns: 3; }
  .grid3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid3 > * { grid-column: span 2; }
  /* never leave a lonely card on the last row: the last 2 (or last 4 as 2 + 2) share the width */
  .grid3 > :nth-child(3n+1):nth-last-child(2), .grid3 > :nth-child(3n+1):nth-last-child(2) ~ *,
  .grid3 > :nth-child(3n+1):nth-last-child(4), .grid3 > :nth-child(3n+1):nth-last-child(4) ~ * { grid-column: span 3; }
  .grid3 > :only-child { grid-column: 1 / -1; }
  .article-body blockquote, .prose blockquote { margin-left: -2.75rem; padding-left: 2.35rem; }
  .article-body figure { margin-inline: -4.5rem; }
  .article-body figure figcaption { margin-inline: 4.5rem; }
}

/* 15. Motion preferences ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
  .card:hover .card-media img, .lead:hover .lead-media img { transform: none; }
}
