/* Budd Baer Cares — editorial art direction.
   Part 3 of 3 of the public stylesheet, split because the single file was
   53,446 bytes against a 40,960-byte ceiling. CASCADE ORDER IS LOAD-BEARING:
   later parts override earlier ones, so these must be linked in the order
   declared by SITE_CSS in src/lib/assets.js — the one place that order lives. */

/* ==================================================================
   EDITORIAL ART DIRECTION
   ------------------------------------------------------------------
   The public pages were an even grid of identical cards at identical
   spacing. Correct, and about as warm as a parts catalogue. What follows
   breaks that rhythm on purpose: photographs at full bleed, rows that
   alternate side to side, figures set as a line of type instead of three
   boxes, and captions in an italic serif so a real voice shows up in the
   margins. Tokens only — light and dark both, or check-theme fails.
   ================================================================== */

/* ---- paper ---------------------------------------------------------
   A very slight tooth so the background is not a flat fill. Two offset
   gradients, no image: costs nothing and survives dark mode because the
   grain tokens flip with it. */
.paper {
  background-image:
    radial-gradient(circle at 12% 18%, var(--grain-a) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 74%, var(--grain-b) 0 1px, transparent 1px);
  background-size: 13px 13px, 21px 21px;
}

/* ---- eyebrow -------------------------------------------------------
   Small caps in amber, with a short rule. Used to label a section the way
   a magazine labels a department. */
.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--warm-700); margin-bottom: .8rem;
}
.eyebrow::before {
  content: ""; width: 1.8rem; height: 2px; flex: none;
  background: var(--warm-600); border-radius: 2px;
}
.eyebrow-center { justify-content: center; }

/* ---- display type --------------------------------------------------
   Bigger, tighter, and set in the serif. The old headings were sized off
   the body scale, which is why every section read at the same volume. */
.display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
  line-height: 1.04; letter-spacing: -.015em; margin: 0 0 .5em;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .4em;
}
.lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem);
  line-height: 1.6; color: var(--text-soft); max-width: 54ch;
}

/* ---- figure + caption ----------------------------------------------
   Every photograph on the site says what it is. A caption is the cheapest
   way to prove a picture is ours and not stock. */
.figure { margin: 0; }
.figure img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-photo);
}
.caption {
  font-family: var(--font-hand); font-style: italic;
  font-size: .94rem; line-height: 1.45; color: var(--text-soft);
  margin-top: .7rem; padding-left: .8rem; border-left: 2px solid var(--warm-500);
}

/* ---- editorial row --------------------------------------------------
   Photo one side, words the other, and it alternates down the page. The
   columns are deliberately unequal — a 1fr/1fr split is what made the old
   layout feel like a form. */
.ed-row {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.ed-row:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .ed-row { grid-template-columns: 1.05fr 1fr; }
  .ed-row.flip > .ed-media { order: 2; }
  .ed-row.flip > .ed-body  { order: 1; }
  /* Nudge alternate rows off the baseline so the page does not march. */
  .ed-row.flip .ed-media { transform: translateY(1.25rem); }  /* whole column, caption included */
}
.ed-media { position: relative; }
.ed-media img { aspect-ratio: 4 / 3; }
.ed-body h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 .5rem; }
.ed-body p { color: var(--text-soft); margin: 0 0 .8rem; }

/* A thin amber card tucked behind the photo, offset. Pure decoration, and
   the reason the rows stop looking like a table. */
.ed-media::after {
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 2px solid var(--warm-500); border-radius: var(--radius-lg);
  z-index: -1; opacity: .55;
}
.ed-row.flip .ed-media::after { inset: 1.1rem 1.1rem -1.1rem -1.1rem; }

/* ---- full-bleed band ------------------------------------------------
   One photograph, edge to edge, with the words sitting on an ink wash.
   Used once or twice a page to change the pace. */
.band {
  position: relative; margin: clamp(2.5rem, 6vw, 4.5rem) 0;
  min-height: clamp(320px, 42vw, 520px);
  display: grid; align-items: end;
  border-radius: 0; overflow: hidden; isolation: isolate;
}
.band img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.band::before {
  content: ""; position: absolute; inset: 0; background: var(--scrim); z-index: -1;
}
.band-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  color: var(--on-photo);
}
.band-inner .display, .band-inner .display-sm { color: var(--on-photo); }
.band-inner p { color: var(--on-photo-soft); max-width: 46ch; }
.band-inner .eyebrow { color: var(--warm-500); }
.band-inner .eyebrow::before { background: var(--warm-500); }
.band .caption {
  color: var(--on-photo-mute); border-left-color: var(--on-photo-rule);
}

/* ---- the ledger -----------------------------------------------------
   The three stat boxes were identical rectangles, which made three
   different facts look like one control panel. Set as a line instead,
   separated by rules, the way a masthead prints its figures. */
.ledger {
  display: grid; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-top: 2px solid var(--warm-500);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) { .ledger { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.ledger-item { text-align: center; }
@media (min-width: 720px) {
  .ledger-item + .ledger-item { border-left: 1px solid var(--border); }
}
.ledger-num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1; color: var(--brand-700); letter-spacing: -.02em;
}
.ledger-label {
  margin-top: .5rem; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 600;
}
:root[data-theme="dark"] .ledger-num { color: var(--warm-600); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ledger-num { color: var(--warm-600); }
}

/* ---- pull quote -----------------------------------------------------
   Their words, at size, in the serif. */
.pull {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem);
  line-height: 1.35; color: var(--text); margin: 0;
  padding-left: clamp(1rem, 3vw, 2rem); border-left: 3px solid var(--warm-500);
  max-width: 34ch;
}
.pull cite {
  display: block; margin-top: .9rem; font-family: var(--font);
  font-style: normal; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 600;
}

/* ---- photo strip ----------------------------------------------------
   Three or four frames at uneven heights. Reads as a contact sheet
   pinned up, not as a gallery widget. */
.strip { display: grid; gap: clamp(.6rem, 2vw, 1.1rem); }
@media (min-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip img { border-radius: var(--radius); aspect-ratio: 3 / 4; }
@media (min-width: 700px) {
  /* Offset the whole figure, not the image inside it — moving the image alone
     leaves its caption behind and the photo lands on top of the words. */
  .strip > :nth-child(2) { transform: translateY(1.6rem); }
}

/* Reduced motion and print: nothing here animates, but the offsets are
   decorative and should not survive onto paper. */
@media print {
  .ed-media::after, .band::before { display: none; }
  .ed-row.flip .ed-media, .strip > :nth-child(2) img { transform: none; }
}

/* ---- the creed ------------------------------------------------------
   The five things they get behind. Previously five identical cards in a
   two-column grid, which made a statement of values look like a settings
   screen. Now a numbered editorial list: hairline rules, an amber numeral
   hanging in the margin, and enough air to read one at a time. Uniform on
   purpose — it is a list, and a list that varies is just untidy. */
.creed { list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0; }
.creed-item {
  display: grid; gap: .5rem 1.4rem;
  grid-template-columns: auto 1fr;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--border);
}
.creed-item:last-child { border-bottom: 1px solid var(--border); }
.creed-num {
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1; color: var(--warm-600); letter-spacing: -.02em;
}
.creed-item h3 {
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  margin: 0 0 .35rem; line-height: 1.2;
}
.creed-item p { margin: 0; color: var(--text-soft); max-width: 62ch; }
@media (min-width: 860px) {
  /* Alternate the indent so the column edge is not a ruler. */
  .creed-item:nth-child(even) { padding-left: clamp(2rem, 6vw, 5rem); }
}

/* ---- featured stories -----------------------------------------------
   The four stories we actually have a photograph of. Large, alternating
   side to side, photo doing the work. Deliberately a different component
   from the list below rather than a bigger version of the same card —
   mixing photographed and unphotographed cards in one grid is what made
   the odd one out look broken. */
.features { display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.feature { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1.15fr 1fr; }
  .feature.flip .feature-media { order: 2; }
  .feature.flip .feature-body  { order: 1; }
}
.feature-media { position: relative; }
.feature-media img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-photo);
}
/* The same offset rule as the editorial rows, so the two feel related. */
.feature-media::after {
  content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem;
  border: 2px solid var(--warm-500); border-radius: var(--radius-lg);
  z-index: -1; opacity: .5;
}
.feature.flip .feature-media::after { inset: 1rem 1rem -1rem -1rem; }
.feature-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
  line-height: 1.15; margin: 0 0 .6rem;
}
.feature-text { color: var(--text-soft); margin: 0 0 .9rem; max-width: 46ch; }
.feature-meta {
  margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 600;
}

/* ---- the rest, as a list --------------------------------------------
   No image slot at all. A card with an empty picture frame reads as a
   broken card; a list row reads as a list row. */
.story-list-head { margin-bottom: .5rem; }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-row {
  display: grid; gap: .3rem .5rem; align-items: baseline;
  grid-template-columns: 1fr auto;
  padding: clamp(1rem, 2.5vw, 1.5rem) 0;
  border-top: 1px solid var(--border);
}
.story-row:last-child { border-bottom: 1px solid var(--border); }
.story-row-head { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; }
.story-row-head h3 {
  font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  margin: 0; line-height: 1.25;
}
.story-row-org {
  font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--warm-700); font-weight: 700;
}
.story-row-text { grid-column: 1; margin: .15rem 0 0; color: var(--text-soft); max-width: 68ch; }
.story-row-date {
  grid-column: 2; grid-row: 1; font-size: .76rem; color: var(--text-mute);
  white-space: nowrap; font-weight: 600;
}
@media (max-width: 620px) {
  .story-row { grid-template-columns: 1fr; }
  .story-row-date { grid-column: 1; grid-row: auto; margin-top: .35rem; }
}

/* ---- read on -------------------------------------------------------
   Every trimmed excerpt gets one of these. An ellipsis with nothing behind
   it tells the reader there is more and then refuses to show it. */
.read-on {
  display: inline-block; font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--warm-700); text-decoration: none;
  border-bottom: 2px solid var(--warm-500); padding-bottom: 1px;
}
.read-on:hover, .read-on:focus-visible { color: var(--link-hover); border-bottom-color: currentColor; }
.feature-text + .read-on { margin-top: -.4rem; margin-bottom: .9rem; }

/* Story titles are links now; they should not look like body copy. */
.feature-body h3 a, .story-row-head h3 a { color: inherit; text-decoration: none; }
.feature-body h3 a:hover, .feature-body h3 a:focus-visible,
.story-row-head h3 a:hover, .story-row-head h3 a:focus-visible {
  color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px;
}

/* ---- a story in full ------------------------------------------------ */
.story-full { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.story-full p {
  font-size: clamp(1.02rem, 1rem + .25vw, 1.14rem);
  line-height: 1.7; color: var(--text); margin: 0 0 1.1em;
}
.story-full p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.1em;
  line-height: .84; padding: .06em .09em 0 0; color: var(--warm-600);
}

/* ---- environment banner ---------------------------------------------
   Only rendered on a non-production copy. Deliberately not dismissible:
   its whole job is to stop somebody acting on preview believing they are
   on the live site. Sticky so it survives scrolling. */
.env-banner {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding: .55rem clamp(.75rem, 3vw, 1.25rem);
  background: var(--banner-bg); color: var(--banner-fg);
  font-size: .85rem; font-weight: 600; line-height: 1.35;
}
.env-badge {
  flex: none; background: var(--banner-badge-bg); color: var(--banner-badge-fg);
  border-radius: 999px; padding: .12rem .6rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
@media print { .env-banner { display: none; } }
