/* The Chef is on The Table — "Oxblood & Acid"
   Palette roles: ground (oxblood) · ink (bone) · accent (acid) · secondary (verdigris) · flag (ember) */

:root {
  --ember-lift: #E2703A;     /* ember, raised for small marks on oxblood */
  --verdigris-lift: #4FB3A3; /* verdigris, raised for small marks on oxblood */
  --oxblood: #5A1913;        /* ground */
  --oxblood-deep: #47120E;   /* ground, recessed */
  --bone: #F4EDE1;           /* ink on oxblood / paper ground */
  --paper: #F4EDE1;
  --ink: #2B1109;            /* ink on paper */
  --acid: #E7C93A;           /* accent */
  --verdigris: #1B6C60;      /* secondary */
  --ember: #C2461C;          /* flag */
  --muted: #6B4A3C;          /* quiet ink on paper */
  --rule: #D6C6B6;
  --nav-ink: #200A07;        /* near-black, the nav band only */
  --bone-dim: #C9A79C;       /* quiet ink on oxblood */
  --bone-soft: #EFD9CE;

  --measure: 72ch;
  --break: 1140px;
  --gutter: 24px;
  --body: 20px;
  --para-gap: 22px;
}

@media (min-width: 1600px) {
  :root { --measure: 76ch; --break: 1380px; --body: 21px; --gutter: 40px; }
}
@media (min-width: 2200px) {
  :root { --measure: 80ch; --break: 1680px; --body: 22px; --gutter: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--oxblood); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--oxblood);
  color: var(--bone);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acid); }
p { text-wrap: pretty; }

h1, h2, h3, h4, .anton {
  font-family: 'Archivo', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
}

.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.18em; }
.ico-lg { width: 34px; height: 34px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--acid); color: var(--oxblood-deep);
  padding: 10px 16px; z-index: 50; font-family: 'Archivo', sans-serif; font-weight: 700; letter-spacing: .14em;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------- masthead ---------------- */

.masthead { background: var(--oxblood); padding: 22px var(--gutter) 0; }
.masthead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

.wordmark {
  display: block; font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.035em; line-height: .88;
}
.wordmark .wm-big { font-size: clamp(30px, 5.8vw, 100px); line-height: .88; display: block; }
.wordmark .wm-small {
  font-size: clamp(30px, 5.8vw, 100px); line-height: .88; display: inline-block;
  background: var(--acid); color: var(--oxblood-deep);
  padding: .06em .16em .1em; margin: .06em 0 0 -.02em;
}
.masthead .wordmark:hover .wm-small { background: var(--bone); color: var(--oxblood); }
.masthead--page .wordmark .wm-big { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.05; display: inline; }
.masthead--page .wordmark .wm-small { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.05; display: inline-block; padding: .02em .14em .06em; margin: 0; }
.masthead--page { padding-top: 18px; }

.numeral-mark { flex: 0 0 auto; color: var(--acid); margin-bottom: 6px; }

.strapline {
  margin: 16px 0 0; font-size: 18px; line-height: 1.45; color: var(--bone-soft);
  max-width: 52ch;
}

.navstrip {
  display: flex; gap: 26px; align-items: center;
  margin: 20px calc(-1 * var(--gutter)) 0;
  padding: 15px var(--gutter);
  background: var(--nav-ink);
  border-top: 3px solid var(--bone);
  font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: 15px; white-space: nowrap; overflow-x: auto; scrollbar-width: thin;
}
.navstrip a { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 1px; }
@media (max-width: 1080px) { .navstrip { flex-wrap: wrap; white-space: normal; overflow-x: visible; gap: 14px 22px; font-size: 14px; letter-spacing: .08em; } }
.masthead { padding-bottom: 0; }
.navstrip a[aria-current="page"] { color: var(--acid); }
.navstrip a .ico, .foot-nav a .ico { color: var(--acid); transition: color .12s; }
.navstrip a[href*="method-fire"] .ico, .foot-nav a[href*="method-fire"] .ico { color: var(--ember-lift); }
.navstrip a[href*="kitchens"] .ico, .foot-nav a[href*="kitchens"] .ico { color: var(--acid); }
.navstrip a[href*="brigade"] .ico, .foot-nav a[href*="brigade"] .ico { color: var(--verdigris-lift); }
.navstrip a[href*="food-cost"] .ico, .foot-nav a[href*="food-cost"] .ico { color: var(--bone-soft); }
.navstrip a[href*="ingredients"] .ico, .foot-nav a[href*="ingredients"] .ico { color: var(--verdigris-lift); }
.navstrip a[href*="archive"] .ico, .foot-nav a[href*="archive"] .ico { color: var(--bone-dim); }
.navstrip a:hover .ico, .foot-nav a:hover .ico { color: currentColor; }
.navstrip .nav-spacer { flex: 1 1 auto; }
@media (min-width: 900px) { .navstrip { justify-content: space-between; gap: 18px; } }

/* ---------------- shared bands ---------------- */

.band { padding: 56px var(--gutter); }
.band--tight { padding: 40px var(--gutter); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--verdigris { background: var(--verdigris); color: var(--bone); }
.band--acid { background: var(--acid); color: var(--oxblood-deep); }
.band--deep { background: var(--oxblood-deep); }
.inner { max-width: 1680px; margin: 0 auto; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  font-size: 14px; color: var(--acid);
}
.band--paper .kicker, .band--acid .kicker { color: var(--ember); }
.kicker--sub { color: var(--bone-dim); }

.hr-bone { border: 0; border-top: 1px solid rgba(244,237,225,.32); margin: 0; }
.hr-ink { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------------- homepage ---------------- */

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); background: var(--oxblood); }
.hero-copy { padding: 46px var(--gutter) 56px; align-self: center; }
.hero h2 { font-size: clamp(30px, 3.9vw, 74px); margin: 20px 0 0; }
.hero-deck { font-size: clamp(18px, 1.35vw, 24px); line-height: 1.5; color: var(--bone-soft); max-width: 44ch; margin: 26px 0 0; }
.hero-fig { position: relative; min-height: 380px; }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; }
.plate {
  background: var(--oxblood); color: var(--bone);
  padding: 20px 26px 4px 0;
}
.hero-plate { position: absolute; left: 0; bottom: 0; max-width: 62%; }
.plate p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--bone-soft); }
.credit {
  display: block; margin-top: 7px;
  font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; color: var(--bone-dim);
}
.band--paper .credit, .band--acid .credit { color: var(--muted); }

.btn {
  display: inline-block; margin-top: 30px; padding: 15px 28px;
  background: var(--acid); color: var(--oxblood-deep);
  font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 16px;
}
.btn:hover { background: var(--bone); color: var(--oxblood); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-fig { min-height: 62vw; }
  .hero-plate { position: static; max-width: 100%; padding: 18px var(--gutter) 0 var(--gutter); }
}

.statement { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.statement .big-num { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(44px, 4.4vw, 72px); line-height: .88; letter-spacing: -.03em; }
.statement p { margin: 0; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.32; max-width: 58ch; font-weight: 500; }

.duo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.duo > article { padding: 52px var(--gutter); }
.duo > article + article { border-left: 1px solid rgba(244,237,225,.28); }
.duo h3 { font-size: clamp(24px, 2.3vw, 44px); }
.duo .small h3 { font-size: clamp(22px, 1.7vw, 32px); }
.duo p { color: var(--bone-soft); }
.numbered { display: flex; align-items: flex-start; gap: 22px; }
.numbered .n { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(28px, 2.6vw, 44px); line-height: .9; color: var(--acid); flex: 0 0 auto; }
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo > article + article { border-left: 0; border-top: 1px solid rgba(244,237,225,.28); }
}

.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid rgba(244,237,225,.5); }
.triptych > article { padding: 26px 32px 0 0; }
.triptych > article + article { padding-left: 32px; border-left: 1px solid rgba(244,237,225,.3); }
.triptych h3 { font-size: clamp(20px, 1.6vw, 27px); line-height: 1.06; margin: 12px 0 14px; }
.triptych p { font-size: 17px; line-height: 1.5; color: #D6E7E2; margin: 16px 0 0; }
.triptych img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .triptych { grid-template-columns: 1fr; }
  .triptych > article + article { padding-left: 0; border-left: 0; border-top: 1px solid rgba(244,237,225,.3); padding-top: 26px; } }

.statement-piece { max-width: 78ch; }
.statement-piece h2 { font-size: clamp(26px, 2.9vw, 50px); color: var(--oxblood); }
.statement-piece p { font-size: clamp(19px, 1.3vw, 22px); }

/* homepage feed + supporters rail */
.feed-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
@media (max-width: 1100px) { .feed-wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (min-width: 1600px) { .feed-wrap { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; } }

.feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 28px; }
.feed-item h4 { font-size: 20px; line-height: 1.12; margin-top: 10px; }
.feed-item .kicker { font-size: 13px; }
.feed-item img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.feed-item:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 28px; }
.feed-item:first-child > a:first-child { grid-column: 1; grid-row: 1 / 3; }
.feed-item:first-child > .kicker { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; }
.feed-item:first-child > h4 { grid-column: 2; grid-row: 2; align-self: start; margin-top: 0; }
.feed-item:first-child img { aspect-ratio: 16/9; }
.feed-item:first-child h4 { font-size: clamp(24px, 2.1vw, 36px); }
@media (max-width: 860px) { .feed-item:first-child { grid-template-columns: 1fr; gap: 10px; }
  .feed-item:first-child > a:first-child, .feed-item:first-child > .kicker, .feed-item:first-child > h4 { grid-column: 1; grid-row: auto; }
  .feed-item:first-child img { aspect-ratio: 4/3; } }

/* ---------------- supporters ---------------- */

.supporters { border-top: 2px solid var(--rule); padding-top: 22px; }
.sponsor-group { margin-top: 26px; }
.sponsor-group:first-of-type { margin-top: 18px; }
.sponsor-group > h4 {
  font-size: 13px; letter-spacing: .2em; color: var(--muted); margin-bottom: 12px;
  font-family: 'Archivo', sans-serif; font-weight: 700;
}
.sponsor-set { display: flex; flex-wrap: wrap; gap: 14px; }
.sponsor {
  flex: 0 0 260px; width: 260px;
  background: var(--oxblood-deep); color: var(--bone);
  padding: 16px; display: block;
}
.sponsor:hover { color: var(--acid); }
.sponsor img {
  max-height: 44px; max-width: 100%; width: auto; height: auto;
  object-fit: contain; margin: 0 auto;
}
.sponsor-logo {
  height: 60px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(244,237,225,.24); padding-bottom: 12px;
}
.sponsor-blurb { display: block; margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--bone-soft); min-height: 42px; }
.sponsor-group--offset { margin-left: 0; }
.supporters .sponsor-blurb { min-height: 0; }

@media (max-width: 420px) { .sponsor { flex: 0 0 100%; width: 100%; } }

/* ---------------- article ---------------- */

.article-head { background: var(--oxblood); padding: 48px var(--gutter) 44px; }
.article-head .inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.article-head h1 { font-size: clamp(28px, 3.3vw, 64px); }
.article-head .deck { font-size: clamp(19px, 1.3vw, 24px); line-height: 1.45; color: var(--bone-soft); margin: 0; }
.head-aside { display: flex; align-items: flex-end; gap: 22px; }
@media (max-width: 900px) { .article-head .inner { grid-template-columns: 1fr; gap: 26px; } }

.prose {
  background: var(--paper); color: var(--ink);
  display: grid;
  grid-template-columns:
    [full-start] 1fr
    [break-start] min(var(--break), calc(100% - 2 * var(--gutter)))
    [break-end] 1fr [full-end];
  padding: 56px 0 68px;
}
.prose > * { grid-column: break; width: min(var(--measure), 100%); justify-self: center; }
.prose > .breakout { width: 100%; }
.prose > .bleed { grid-column: full; width: 100%; }
.prose > p { margin: 0 0 var(--para-gap); }
.prose > h2 {
  width: 100%; font-size: clamp(23px, 1.9vw, 33px);
  color: var(--oxblood); margin: 30px 0 18px; padding-top: 18px; border-top: 2px solid var(--rule);
}
.prose > h3 { font-size: 24px; color: var(--oxblood); margin: 26px 0 12px; }
.prose a:not(.btn) { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--verdigris); }

.dropcap::first-letter {
  font-family: 'Archivo', sans-serif; font-weight: 800; float: left; font-size: 3.9em; line-height: .78;
  padding: 10px 14px 0 0; color: var(--oxblood);
}

.lead {
  font-size: clamp(21px, 1.5vw, 26px); line-height: 1.4; color: var(--oxblood);
  margin: 0 0 30px;
}

/* insertions: every unit reserves its own space on both sides */
.prose > .article-figure,
.prose > .pullquote,
.prose > .blockquote,
.prose > .callout,
.prose > .notes-panel,
.prose > .statrow,
.prose > .timeline,
.prose > .datatable-wrap,
.prose > .versus-wrap,
.prose > .chart,
.prose > .gallery,
.prose > .profile-grid,
.prose > .org-grid,
.prose > .map-figure {
  margin-top: 52px; margin-bottom: 52px; clear: both;
}
@media (max-width: 700px) {
  .prose > .article-figure, .prose > .pullquote, .prose > .blockquote, .prose > .callout,
  .prose > .notes-panel, .prose > .statrow, .prose > .timeline, .prose > .datatable-wrap,
  .prose > .versus-wrap, .prose > .chart, .prose > .gallery { margin-top: 46px; margin-bottom: 46px; }
}

/* --- figure system: three treatments --- */

figure { margin: 0; }

figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
  padding-top: 12px;
}
figcaption .cap { margin: 0; font-size: 18px; line-height: 1.45; flex: 1 1 320px; max-width: 66ch; }
figcaption .credit { margin-left: auto; flex: 0 0 auto; }

/* 1 · full-bleed with a directional scrim, caption plate cut into the ground */
.fig-bleed { position: relative; }
.fig-bleed img { width: 100%; max-height: 76vh; object-fit: cover; }
.fig-bleed .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(90,25,19,.92) 0%, rgba(90,25,19,.72) 34%, rgba(90,25,19,0) 72%); pointer-events: none; }
.fig-bleed figcaption {
  position: absolute; left: 0; bottom: 0; width: min(56%, 640px);
  background: var(--oxblood); color: var(--bone);
  padding: 20px 28px 20px var(--gutter);
}
.fig-bleed figcaption .cap { color: var(--bone-soft); }
@media (max-width: 860px) {
  .fig-bleed figcaption { position: static; width: 100%; }
  .fig-bleed .scrim { display: none; }
}

/* 2 · cut-in: photograph hard against an oxblood panel, caption plate overlapping a corner */
.fig-cut { position: relative; background: var(--oxblood); padding: 0 0 0 0; }
.fig-cut img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.fig-cut figcaption {
  background: var(--oxblood); color: var(--bone);
  margin: -46px 0 0 0; position: relative; width: min(76%, 620px);
  padding: 18px 24px 18px 22px;
}
.fig-cut figcaption .cap { color: var(--bone-soft); }
@media (max-width: 700px) { .fig-cut figcaption { margin-top: 0; width: 100%; } }

/* 3 · rail: mat-mounted image with the caption stepped beside it */
.fig-rail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 26px; align-items: start; }
.fig-rail .mat { background: var(--bone); border: 1px solid var(--rule); padding: 12px; }
.fig-rail img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fig-rail figcaption { display: block; border-top: 2px solid var(--ember); padding-top: 10px; }
.fig-rail figcaption .cap { font-size: 18px; max-width: none; }
.fig-rail figcaption .credit { margin-left: 0; display: block; }
@media (max-width: 760px) { .fig-rail { grid-template-columns: 1fr; gap: 14px; } }

/* --- components --- */

.pullquote { margin: 0; border-left: 6px solid var(--ember); padding: 4px 0 4px 24px; }
.pullquote p { margin: 0; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.34; color: var(--oxblood); }

.blockquote { margin: 0; background: var(--bone); border-top: 3px solid var(--oxblood); padding: 24px 26px; }
.blockquote p { margin: 0; font-size: 21px; line-height: 1.45; font-style: italic; }
.blockquote cite { display: block; margin-top: 12px; font-style: normal; font-family: 'Archivo', sans-serif; font-weight: 700; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; color: var(--muted); }

.callout { background: var(--verdigris); color: var(--bone); padding: 26px 28px; }
.callout p { margin: 0; font-size: 20px; line-height: 1.5; }
.callout p + p { margin-top: 14px; }

.note { font-size: 17px; line-height: 1.5; color: var(--muted); border-left: 2px solid var(--rule); padding-left: 16px; }

.notes-panel { background: var(--oxblood); color: var(--bone); padding: 30px 32px 34px; }
.notes-panel > h3 { font-family: 'Archivo', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 21px; letter-spacing: -.01em; color: var(--acid); margin: 0 0 6px; }
.notes-panel .panel-rule { height: 3px; background: var(--acid); width: 74px; margin-bottom: 18px; }
.notes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 1000px) { .notes-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 34px; } }
.notes-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; font-size: 18px; line-height: 1.45; color: var(--bone-soft); }
.notes-list li .n { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; color: var(--acid); line-height: 1.3; }
.notes-list li b { color: var(--bone); font-weight: 400; font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2px; background: var(--rule); border: 1px solid var(--rule); }
.statblock { background: var(--paper); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.stat-num { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; letter-spacing: -.02em; color: var(--ember); }
.stat-label { font-size: 16px; line-height: 1.4; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--oxblood); }
.timeline li { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 10px 28px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.t-when { font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 17px; letter-spacing: .04em; color: var(--oxblood); line-height: 1.25; }
.t-what { font-size: 18px; line-height: 1.5; }
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

.datatable-wrap, .versus-wrap { overflow-x: auto; }
.datatable, .versus { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 440px; }
.datatable th, .versus th { text-align: left; font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--oxblood); border-bottom: 2px solid var(--oxblood); padding: 10px 14px 10px 0; }
.datatable td, .versus td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.versus td + td { border-left: 1px solid var(--rule); padding-left: 14px; }

.chart figcaption { padding-top: 14px; }
.chart svg { width: 100%; height: auto; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.gallery figure { background: var(--bone); border: 1px solid var(--rule); padding: 10px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { padding-top: 8px; }
.gallery figcaption .cap { font-size: 16px; }

.map-figure .map-slot { aspect-ratio: 16/9; background: var(--bone); border: 1px dashed var(--rule); }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.profile-card { background: var(--bone); border: 1px solid var(--rule); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.profile-card .p-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 6px; }
.profile-card h3 { font-size: 20px; color: var(--oxblood); }
.p-role { font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--ember); margin: 0; }
.profile-card p { margin: 0; font-size: 17px; line-height: 1.5; }
.p-links a, .p-attr { font-size: 15px; }
.profile-card.no-photo { border-left: 5px solid var(--verdigris); }

.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.org-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--bone); border: 1px solid var(--rule); padding: 14px 16px; }
.org-card.no-logo { grid-template-columns: 1fr; }
.org-logo { width: 52px; height: 52px; object-fit: contain; }
.org-name { font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 17px; color: var(--oxblood); }
.org-host { font-size: 14px; color: var(--muted); }
.entity-ref { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }

.further-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.further-grid a { display: block; }
.further-grid a h4 { font-size: 20px; line-height: 1.1; color: var(--oxblood); margin-top: 8px; }
.further-grid a:hover h4 { color: var(--ember); }

.related-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.related-links a { font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 18px; color: var(--oxblood); }
.related-links a:hover { color: var(--ember); }

/* end furniture */
.article-end { background: var(--paper); color: var(--ink); padding: 0 var(--gutter) 64px; }
.article-end .inner { max-width: var(--break); margin: 0 auto; border-top: 3px solid var(--oxblood); padding-top: 26px; }
.article-end h3 { font-size: 20px; letter-spacing: .16em; color: var(--muted); margin-bottom: 22px; }

/* ---------------- category pages ---------------- */

.cat-head { background: var(--oxblood); padding: 48px var(--gutter) 40px; }
.cat-head h1 { font-size: clamp(28px, 3.6vw, 62px); }
.cat-head .deck { font-size: clamp(18px, 1.3vw, 23px); line-height: 1.5; color: var(--bone-soft); max-width: 54ch; margin: 22px 0 0; }
.cat-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--bone-dim); }
.cat-meta a { display: inline-flex; align-items: center; gap: 9px; }

.cat-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.cat-lead img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cat-lead .mat { background: var(--bone); border: 1px solid var(--rule); padding: 12px; }
.cat-lead h2 { font-size: clamp(24px, 2.4vw, 42px); color: var(--oxblood); }
.cat-lead p { font-size: 19px; line-height: 1.5; }
@media (max-width: 860px) { .cat-lead { grid-template-columns: 1fr; gap: 22px; } }

.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 38px; }
.cat-list > li { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 30px; align-items: start; padding-bottom: 38px; border-bottom: 1px solid var(--rule); }
.cat-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.cat-list > li:nth-child(even) .cat-thumb { order: 2; }
.cat-list > li:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.cat-list img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.cat-list h3 { font-size: clamp(21px, 1.7vw, 29px); color: var(--oxblood); }
.cat-list p { font-size: 18px; line-height: 1.5; margin: 12px 0 0; max-width: 70ch; }
.cat-list .n { font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--ember); font-size: 22px; display: block; margin-bottom: 8px; }
@media (min-width: 1600px) { .cat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 52px; }
  .cat-list > li { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .cat-list > li:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); } }
@media (max-width: 700px) { .cat-list > li, .cat-list > li:nth-child(even) { grid-template-columns: 1fr; gap: 16px; }
  .cat-list > li:nth-child(even) .cat-thumb { order: 0; } }

.section-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.hub-card { background: var(--oxblood-deep); padding: 22px 24px; display: block; }
.hub-card h3 { font-size: 22px; margin: 12px 0 8px; }
.hub-card p { font-size: 16px; line-height: 1.45; color: var(--bone-soft); margin: 0; }

/* ---------------- simple pages ---------------- */

.page-body { background: var(--paper); color: var(--ink); padding: 56px var(--gutter) 72px; }
.page-body .inner { max-width: var(--break); margin: 0 auto; }
.page-body h1 { font-size: clamp(28px, 3vw, 54px); color: var(--oxblood); }
.page-body h2 { font-size: clamp(24px, 2vw, 34px); color: var(--oxblood); margin: 38px 0 14px; }
.page-body p { max-width: 72ch; }

/* ---------------- footer ---------------- */

.site-foot { background: var(--oxblood-deep); color: var(--bone); padding: 44px var(--gutter) 52px; border-top: 3px solid var(--bone); }
.foot-row { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; align-items: flex-start; }
.foot-mark { font-family: 'Archivo', sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.02; letter-spacing: -.02em; }
.site-foot p { margin: 14px 0 0; font-size: 18px; line-height: 1.5; max-width: 54ch; color: var(--bone-soft); }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 44px; font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; }
.foot-nav a { display: inline-flex; gap: 8px; align-items: center; }
.foot-small { margin-top: 30px; font-size: 15px; color: var(--bone-dim); }


/* ---------------- charts + expander (component set) ---------------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--rule); stroke-width: 1; }
.chart .bar-rect { fill: var(--ember); }
.chart .bar-rect.alt { fill: var(--verdigris); }
.chart .bar-label, .chart .val-label { font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.chart .bar-label { font-size: 13px; fill: var(--muted); }
.chart .val-label { font-size: 14px; fill: var(--oxblood); }
.chart .line-path { fill: none; stroke: var(--ember); stroke-width: 3; }
.chart .dot { fill: var(--oxblood); }
.chart figcaption { padding-top: 14px; }

.expander { border-top: 2px solid var(--oxblood); }
.expander > summary { list-style: none; cursor: pointer; padding: 14px 0; font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 15px; color: var(--ember); }
.expander > summary::-webkit-details-marker { display: none; }
.expander > summary::after { content: ' +'; }
.expander[open] > summary::after { content: ' –'; }

.sg-block { border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 52px; }
.sg-block > h2 { margin-bottom: 20px; }
.sg-narrow { max-width: var(--measure); }
.sg-mobile { width: 360px; max-width: 100%; border: 1px dashed var(--rule); padding: 16px; overflow: hidden; }


/* ---------------- image treatment, applied across sections ---------------- */
/* paper grounds: mat-mounted like the article rail figure */
.band--paper .feed-item > a,
.band--paper .cat-list .cat-thumb,
.cat-list .cat-thumb,
.further-grid a > img,
.cat-lead .mat {
  background: var(--bone); border: 1px solid var(--rule); padding: 10px; display: block;
}
.further-grid a > img { padding: 8px; }
.feed-item > a, .cat-list .cat-thumb, .further-grid a > img { transition: border-color .14s, background-color .14s; }
.feed-item > a:hover, .cat-list .cat-thumb:hover, .further-grid a:hover > img { border-color: var(--ember); background: var(--paper); }

/* coloured grounds: hairline keyline instead of a mat */
.duo img, .triptych img, .hub-card img {
  outline: 1px solid rgba(244,237,225,.34); outline-offset: -1px;
}
.duo a:hover img, .triptych a:hover img { outline-color: var(--acid); }

/* the hero picture keeps its full-bleed treatment, but gains the acid edge */
.hero-fig { border-left: 3px solid var(--acid); }
@media (max-width: 860px) { .hero-fig { border-left: 0; border-top: 3px solid var(--acid); } }

/* sp-mark-align: marks sit CENTRED in their box. Placement only — Design's size,
   padding, panel and object-fit are untouched. */
.sponsor img,.sponsor-box img,.sp-logo img{object-position:center!important;margin-left:auto!important;margin-right:auto!important;display:block}
.sponsor .sp-logo,.sponsor-box{display:flex;align-items:center;justify-content:center}

/* sp-tile-uniform: a slot never grows to fill its row — every tile the same width in
   every row, whatever the count. Only flex-grow is touched. */
.sponsor{flex-grow:0!important}
.sponsor.lead-line,.sponsor.feat.lead-line{flex-grow:1!important}
.sponsor-set{flex-wrap:wrap!important}
.sponsor-logo{flex-wrap:wrap!important}
.sponsor:not(.lead-line){grid-column:span 1!important;grid-row:span 1!important}

/* sp-blurb-stack: a slot holding BOTH a mark and our copy stacks them —
   a fixed-height row clips the mark once the copy is un-hidden. */
.sponsor:has(> img):has(> .sponsor-blurb:not(:empty)){flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;height:auto!important;min-height:0!important;overflow:visible!important;gap:8px}
.sponsor:has(> img):has(> .sponsor-blurb:not(:empty)) > img{align-self:flex-start}

/* sp-blurb-unhide: every supporter slot shows its text — no half-texted grids */
.sponsor-blurb:not(:empty){display:block!important;line-height:1.5}

/* sp-tile-fit: a slot fills its track, keeps a symmetric inset, and cannot be inflated
   by one long line of our copy. */
.sponsor.sponsor{width:100%!important;box-sizing:border-box!important;align-self:stretch!important;align-items:center!important;height:auto!important;min-height:0!important;overflow:hidden}
.sponsor.sponsor{justify-content:center!important}
:has(> .sponsor.sponsor){align-items:stretch!important}
.sponsor.sponsor .sponsor-name{min-width:0!important;overflow-wrap:anywhere}
.sponsor.sponsor > img{flex:0 0 auto!important;align-self:center!important}
.sponsor.sponsor > .sponsor-txt,.sponsor.sponsor > span:not(.sponsor-name):not(.sponsor-box):not(.sp-logo):not(.sponsor__logo){flex:1 1 auto!important;min-width:0!important}
.sponsor.sponsor .sponsor-blurb{display:-webkit-box!important;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;margin:0!important}
/* the mobile un-clamp is retired: the operator asked for "2-3 rows max" on phones, which is
   what the desktop rule above already does — so mobile simply keeps it. */
@media (max-width:640px){.sponsor.sponsor .sponsor-blurb{-webkit-line-clamp:3!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;overflow:hidden!important}}

/* sp-blurb-link: money-link anchors in blurbs must inherit the blurb colour (readable on dark OR light tiles) */
.sponsor-blurb a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* pipeline: one brand treatment per tile — the name reads at the blurb's own size */
.sponsor .sp-brand{font:inherit!important;font-weight:700!important;letter-spacing:inherit!important;text-transform:none!important;color:inherit!important;display:inline!important;}

/* sp-mark-frame: a uniform plate for the money mark, in the tiers where Design sized the plate
   to the artwork instead. Operator's rule: the dark ground is unified whatever the logo's
   size. width:100% (or one fixed width where copy shares the row) + one height for the tier
   + object-fit:contain, so the plate is the same box everywhere and the artwork fits inside
   it. A ground and an inset are added ONLY where none exists — adding a second ground gives
   co-cure's rectangle-inside-a-rectangle. Design's framed tiers are not touched at all. */
.sponsor-set .sponsor.sponsor img{height:44px!important}

/* op-money-columns: the supporters block ran one tile per row — 6 tiles,
   791px at 390, 7% of the whole page. Two columns bring it to
   611px (23% shorter). Checked before writing: no new overflow, smallest mark still
   71px wide, longest blurb 2 lines, tile heights 189-211px.
   A block that fails any of those is left in one column — two narrow columns can make a block
   TALLER once the copy rewraps, which is the case the operator warned about.
   Only the tier(s) that were one-per-row are touched (.sponsor-set), never the section
   that holds several tiers: forcing a grid on that would put a featured row and a regulars run
   side by side. Phone widths only. */
@media (max-width:640px){
  .sponsor-set{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:14px!important}
    .sponsor-set > *{min-width:0!important;max-width:100%;width:auto!important;flex:0 1 auto!important}
    .sponsor-set > * *{min-width:0!important;max-width:100%}
    .sponsor-set img,.sponsor-set svg{max-width:100%;height:auto}
}

/* op-money-cutoff: at 320 the supporters aside is 300px wide inside a 272px column, because
   .inner.feed-wrap pins its grid track at 300px. The track is allowed to shrink instead; the
   aside then fits and stops 4px off-screen. Structural only. Phone widths only. */
@media (max-width:360px){
  .inner.feed-wrap{grid-template-columns:minmax(0,1fr)!important}
  aside.supporters,.sponsor-group{max-width:100%!important;min-width:0!important}
}

/* op-img-dims — intrinsic width/height reserve image space; the proven height:auto guard (zero specificity) */
:where(nav.further-grid > a > img){height:auto}
/* op-img-dims:end */

/* op-odd-tier-lead: money_slots changed a tier's size — .sponsor-set (3 tiles) now show an ODD count on phones, so the lead tile takes the whole row (operator: "the 1st item in such rows to be 100% width, then split"). Parity-guarded: it steps aside again when the count is even. */
@media (max-width:640px){
  .sponsor-set:has(> *:nth-child(odd):last-child) > *:first-child{grid-column:1 / -1!important}
}
@media (min-width:660px) and (max-width:1199px){.sponsor-set.sponsor-set:has(> [data-partner]){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(260px,calc(50% - 7px)),1fr))!important;column-gap:14px!important;row-gap:14px!important;justify-content:stretch!important;align-items:stretch!important}.sponsor-set.sponsor-set > [data-partner]{flex:none!important;width:auto!important;max-width:none!important;margin-left:0!important;margin-right:0!important}}
@media (max-width:719px){figcaption .credit.credit{flex:0 1 auto!important;min-width:0!important;white-space:normal!important}}
