/* Layout: single editorial column with full-width colour bands. Hinterland greens, one warm "sun" accent reserved for the fundraising bar. */
:root {
  --bg: #f2f4f0;
  --surface: #ffffff;
  --ink: #17211d;
  --muted: #56635d;
  --line: #d5dcd6;
  --ridge: #2e5a4c;
  --ridge-ink: #f2f4f0;
  --sun: #d99a2b;
  --band: #1d2b25;
  --band-ink: #eef1ec;
  --band-muted: #a9b8b0;
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 5vw, 2.75rem);
  --step-4: clamp(2.6rem, 8vw, 4.75rem);
  --wrap: 68rem;
  --measure: 38rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121915; --surface: #19221d; --ink: #e8ece7; --muted: #9eaba4; --line: #2b3832;
    --ridge: #7fb8a4; --ridge-ink: #10221b; --sun: #e6ac45; --band: #0c120f; --band-ink: #e8ece7; --band-muted: #93a39a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121915; --surface: #19221d; --ink: #e8ece7; --muted: #9eaba4; --line: #2b3832;
  --ridge: #7fb8a4; --ridge-ink: #10221b; --sun: #e6ac45; --band: #0c120f; --band-ink: #e8ece7; --band-muted: #93a39a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ridge); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; max-width: var(--measure); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stack { display: grid; gap: 1.1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark span { color: var(--ridge); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ridge); text-decoration: underline; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-roles { font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); letter-spacing: 0.02em; }
.lede { font-size: var(--step-1); line-height: 1.55; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ridge);
  display: grid;
  place-items: center;
}
.portrait .monogram { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 5.5rem); color: var(--ridge-ink); font-weight: 700; opacity: 0.9; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 2px solid var(--ridge);
}
.btn-primary { background: var(--ridge); color: var(--ridge-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--ridge); background: transparent; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: #1b1408; }

/* Movember band */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.band .eyebrow { color: var(--band-muted); }
.band a:not(.btn) { color: var(--sun); }
.mo-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.mo-grid > * { min-width: 0; }
.mo-grid p { color: var(--band-ink); }
.tally { display: grid; gap: 0.9rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 1.4rem; }
.tally-figures { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tally-raised { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 600; color: var(--band-ink); }
.tally-target { color: var(--band-muted); font-size: 0.95rem; }
.bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0%; background: var(--sun); border-radius: 999px; transition: width 900ms ease; }
.tally-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.82rem; color: var(--band-muted); }
.deal { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.deal em { font-style: normal; color: var(--sun); }

/* Sections */
.section .wrap { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.section + .section .wrap { border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.5rem, 5vw, 4rem); }
.two-col > * { min-width: 0; }

.posts { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.posts li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.posts .when { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.posts a { color: var(--ink); text-decoration: none; font-weight: 600; }
.posts a:hover { color: var(--ridge); text-decoration: underline; }
.posts .soon { color: var(--muted); }

.challenge { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.challenge span { font-family: var(--font-mono); font-size: 0.9rem; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; }

/* Help band */
.help { background: var(--surface); border-block: 1px solid var(--line); }
.help .wrap { padding-block: 2rem; display: grid; gap: 1rem; }
.help-lines { display: flex; gap: 1rem 2.5rem; flex-wrap: wrap; }
.help-lines div { display: grid; }
.help-lines strong { font-family: var(--font-mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.help-lines a { color: inherit; text-decoration: none; }
.help-lines span { font-size: 0.9rem; color: var(--muted); }

/* Article */
.article .wrap { max-width: 44rem; padding-block: clamp(2rem, 6vw, 4rem); display: grid; gap: 1.4rem; }
.article h1 { font-size: var(--step-3); }
.article h2 { font-size: var(--step-2); margin-top: 1rem; }
.article p, .article li { max-width: none; }
.article blockquote { margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--sun); font-family: var(--font-display); font-size: var(--step-1); }

/* Footer */
.site-footer { font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { padding-block: 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero .wrap, .mo-grid, .two-col { grid-template-columns: 1fr; }
  .portrait { max-width: 22rem; }
  .posts li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bar > span { transition: none; }
}

/* Now vs AI preview */
.faceoff { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.faceoff figure { margin: 0; display: grid; gap: 0.4rem; min-width: 0; }
.faceoff img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 6px; }
.faceoff figcaption { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-muted); }
.faceoff figcaption.sun { color: var(--sun); }

/* Latest post */
.latest { display: grid; gap: 0.7rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.latest h3 { font-size: var(--step-2); }
.latest h3 a { color: var(--ink); text-decoration: none; }
.latest h3 a:hover { color: var(--ridge); text-decoration: underline; }
.read-more { font-weight: 600; justify-self: start; }
.read-more::after { content: " \2192"; }

.footer-links { display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
