:root {
    --bg: #F1F4ED;
    --surface: #FFFFFF;
    --surface-2: #E7ECE1;
    --ink: #14241A;
    --muted: #5D6B60;
    --line: #DAE1D4;
    --accent: #2E9E5B;
    --accent-strong: #1F7A45;
    --accent-bright: #5AC489;
    --accent-ink: #FFFFFF;
    --brand-deep: #15281B;
    --brand-deep-ink: #EEF3EA;
    --panel-ink: #1C3324;
    --p-sage: #C7D6C2;
    --p-tan: #E6DCC4;
    --p-sky: #D2DAD3;
    --p-clay: #BFE0C9;
    --p-char: #15281B;
    --p-char-ink: #EEF3EA;
    --shadow: 0 1px 2px rgba(20,36,26,.05), 0 18px 40px -24px rgba(20,36,26,.30);
    --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
    --font-sans: 'Instrument Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-brand: 'Poppins', 'Instrument Sans', system-ui, sans-serif;
    --radius: 22px;
    --radius-sm: 999px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #0F1A12;
      --surface: #16241A;
      --surface-2: #1D2E21;
      --ink: #ECF2E8;
      --muted: #9EB0A2;
      --line: #26362A;
      --accent: #3FB273;
      --accent-strong: #6FCB98;
      --accent-bright: #6FCB98;
      --accent-ink: #06110A;
      --brand-deep: #0B140E;
      --brand-deep-ink: #EEF3EA;
      --panel-ink: #C3D2C6;
      --p-sage: #3A4C3E;
      --p-tan: #4C4634;
      --p-sky: #38443B;
      --p-clay: #2C5138;
      --p-char: #0B140E;
      --p-char-ink: #EEF3EA;
      --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 44px -26px rgba(0,0,0,.7);
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0F1A12;
    --surface: #16241A;
    --surface-2: #1D2E21;
    --ink: #ECF2E8;
    --muted: #9EB0A2;
    --line: #26362A;
    --accent: #3FB273;
    --accent-strong: #6FCB98;
    --accent-bright: #6FCB98;
    --accent-ink: #06110A;
    --brand-deep: #0B140E;
    --brand-deep-ink: #EEF3EA;
    --panel-ink: #C3D2C6;
    --p-sage: #3A4C3E;
    --p-tan: #4C4634;
    --p-sky: #38443B;
    --p-clay: #2C5138;
    --p-char: #0B140E;
    --p-char-ink: #EEF3EA;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 44px -26px rgba(0,0,0,.7);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  .shell {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(16px, 5vw, 72px);
  }
  a { color: inherit; text-decoration: none; }
  img, svg { max-width: 100%; }
  ::selection { background: var(--accent); color: var(--accent-ink); }

  .eyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    color: var(--muted);
  }
  .serif { font-family: var(--font-display); font-weight: 400; }
  .italic { font-style: italic; }

  /* ---------- Header ---------- */
  header.site {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 40;
    background: color-mix(in srgb, var(--brand-deep) 90%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 74px;
  }
  .wordmark {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -.02em;
    line-height: 1;
    color: #fff;
    text-shadow: .055em .06em 0 var(--accent);
    white-space: nowrap;
  }
  .wordmark b { font-weight: 800; }
  nav.primary { display: flex; align-items: center; gap: 26px; }
  nav.primary a {
    font-size: .92rem;
    font-weight: 500;
    color: var(--brand-deep-ink);
    position: relative;
    padding-bottom: 2px;
    transition: color .18s ease;
  }
  nav.primary a sup {
    font-size: .58em;
    font-weight: 600;
    color: var(--accent-bright);
    margin-left: 1px;
    top: -.7em;
  }
  nav.primary a::after {
    content: "";
    position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 1.5px; background: var(--brand-deep-ink);
    transform: scaleX(0); transform-origin: left;
    transition: transform .22s ease;
  }
  nav.primary a:hover { color: #fff; }
  nav.primary a:hover::after { transform: scaleX(1); }
  .actions { display: flex; align-items: center; gap: 10px; }
  .icon-btn {
    width: 42px; height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
  }
  .icon-btn:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
  .icon-btn svg { width: 18px; height: 18px; }
  .pill {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 20px;
    border-radius: 999px;
    background: var(--ink); color: var(--bg);
    font-weight: 600; font-size: .9rem;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease;
  }
  .pill:hover { transform: translateY(-1px); opacity: .92; }
  header .pill { background: var(--accent); color: #fff; border-color: var(--accent); }
  .menu-btn { display: none; }

  /* ---------- Hero ---------- */
  .hero { padding-block: clamp(48px, 8vw, 96px) clamp(36px, 5vw, 60px); }
  .hero .kicker {
    display: flex; align-items: center; gap: 14px;
    justify-content: center; margin-bottom: 26px;
  }
  .hero .kicker span { white-space: nowrap; }
  .hero .kicker .rule { height: 1px; width: min(90px, 12vw); background: var(--line); }
  .hero h1 {
    margin: 0 auto;
    max-width: 15ch;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: .98;
    letter-spacing: -.015em;
    text-wrap: balance;
  }
  .hero h1 em { font-style: normal; color: var(--accent-strong); }
  .hero .sub {
    margin: 26px auto 0;
    max-width: 52ch;
    text-align: center;
    color: var(--muted);
    font-size: 1.06rem;
  }
  .hero .cta-row {
    display: flex; gap: 12px; justify-content: center;
    margin-top: 30px; flex-wrap: wrap;
  }
  .pill.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .pill.ghost:hover { background: var(--surface); }

  /* ---------- Section heading ---------- */
  .sec-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin: clamp(40px,6vw,72px) 0 24px;
    flex-wrap: wrap;
  }
  .sec-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.01em;
  }
  .sec-head h2 em { font-style: normal; color: var(--accent-strong); }
  .sec-head .more {
    font-size: .9rem; font-weight: 600; color: var(--muted);
    display: inline-flex; align-items: center; gap: 6px;
  }
  .sec-head .more svg { width: 15px; height: 15px; }
  .sec-head .more:hover { color: var(--ink); }

  /* ---------- Cards ---------- */
  .card { display: flex; flex-direction: column; }
  .thumb {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: grid; place-items: center;
    color: var(--panel-ink);
  }
  .thumb .art { width: 62%; height: 62%; opacity: .9; }
  .thumb.sage { background: var(--p-sage); }
  .thumb.tan { background: var(--p-tan); }
  .thumb.sky { background: var(--p-sky); }
  .thumb.clay { background: var(--p-clay); }
  .thumb.char { background: var(--p-char); color: var(--p-char-ink); }
  .thumb .go {
    position: absolute; top: 12px; right: 12px;
    width: 40px; height: 40px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(6px);
    color: var(--ink);
    display: grid; place-items: center;
    transition: transform .2s ease, background .2s ease;
  }
  .thumb .go svg { width: 17px; height: 17px; }
  .badge-date {
    position: absolute; top: 14px; left: 14px;
    background: var(--surface); color: var(--ink);
    font-size: .74rem; font-weight: 600;
    padding: 5px 12px; border-radius: 999px;
    box-shadow: var(--shadow);
  }
  .card:hover .go { transform: translate(2px,-2px); background: var(--surface); }
  .card-body { padding: 16px 4px 0; }
  .tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent-strong);
  }
  .tag::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent-strong); }
  .card h3 {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -.005em;
    line-height: 1.05;
    font-size: 1.5rem;
    text-wrap: balance;
  }
  .card h3 a { transition: color .18s ease; }
  .card:hover h3 a { color: var(--accent-strong); }
  .card p.dek { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
  .byline { margin-top: 12px; font-size: .82rem; color: var(--muted); }

  /* Featured layout */
  .featured {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px;
  }
  .featured .lead .thumb { aspect-ratio: 16 / 11; }
  .featured .lead h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
  .featured .rail { display: flex; flex-direction: column; gap: 22px; }
  .featured .rail .card { flex: 1; }
  .featured .rail .thumb { aspect-ratio: 16 / 9; }
  .featured .rail h3 { font-size: 1.3rem; }

  /* Grid of latest */
  .grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 22px;
  }

  /* ---------- Broadcast / newsletter ---------- */
  .broadcast {
    margin-top: clamp(48px, 7vw, 88px);
    border-radius: 30px;
    background: var(--p-char);
    color: var(--p-char-ink);
    padding: clamp(30px, 5vw, 60px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    overflow: hidden;
    position: relative;
  }
  .broadcast .glow {
    position: absolute; inset: auto -10% -60% auto;
    width: 60%; aspect-ratio: 1; border-radius: 999px;
    background: radial-gradient(circle, var(--accent-strong), transparent 68%);
    opacity: .28; pointer-events: none;
  }
  .broadcast .meta { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
  .broadcast h2 {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1;
  }
  .broadcast h2 em { font-style: normal; color: var(--accent-bright); }
  .broadcast p { margin: 16px 0 0; opacity: .82; max-width: 40ch; }
  form.subscribe { position: relative; z-index: 2; }
  .field-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .subscribe input {
    flex: 1 1 180px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--p-char-ink) 26%, transparent);
    background: color-mix(in srgb, var(--p-char-ink) 8%, transparent);
    color: var(--p-char-ink);
    padding: 0 22px;
    font-family: inherit; font-size: 1rem;
    outline: none;
    transition: border-color .18s ease;
  }
  .subscribe input::placeholder { color: color-mix(in srgb, var(--p-char-ink) 55%, transparent); }
  .subscribe input:focus { border-color: var(--accent-strong); }
  .subscribe .submit {
    height: 54px; padding: 0 30px;
    border-radius: 999px; border: none;
    background: var(--p-char-ink); color: var(--p-char);
    font-family: inherit; font-weight: 600; font-size: 1rem;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease;
  }
  .subscribe .submit:hover { transform: translateY(-1px); opacity: .9; }
  .subscribe .note { margin-top: 14px; font-size: .82rem; opacity: .7; }
  .subscribe.done .field-row { display: none; }
  .subscribe .success { display: none; align-items: center; gap: 12px; font-size: 1.15rem; font-family: var(--font-display); font-weight: 500; }
  .subscribe.done .success { display: flex; }
  .subscribe .success svg { width: 26px; height: 26px; flex: none; }

  /* ---------- Category tiles ---------- */
  .cats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 22px; }
  .cat-tile {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 26px 24px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 190px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
  .cat-tile .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-strong); }
  .cat-tile h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1; }
  .cat-tile p { margin: 0; color: var(--muted); font-size: .92rem; }
  .cat-tile .foot { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
  .cat-tile .foot svg { width: 14px; height: 14px; }

  /* ---------- Footer ---------- */
  footer.site {
    margin-top: clamp(56px, 8vw, 100px);
    background: var(--brand-deep);
    color: var(--brand-deep-ink);
    padding-block: 56px 44px;
  }
  .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
  .foot-grid .brand p { color: rgba(238,243,234,.72); max-width: 32ch; font-size: .95rem; margin: 16px 0 0; }
  .foot-col h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(238,243,234,.6); margin: 6px 0 14px; }
  .foot-col a { display: block; padding: 5px 0; font-size: .95rem; color: var(--brand-deep-ink); opacity: .85; }
  .foot-col a:hover { opacity: 1; color: var(--accent-bright); }
  .foot-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; color: rgba(238,243,234,.6); font-size: .84rem; }

  /* mobile menu panel */
  .mobile-panel { display: none; }

  /* ---------- Dropdown nav ---------- */
  .has-menu { position: relative; }
  .nav-trigger {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: .92rem; font-weight: 500;
    color: var(--brand-deep-ink); padding: 0;
  }
  .nav-trigger .caret { width: 14px; height: 14px; transition: transform .2s ease; }
  .has-menu:hover .caret, .has-menu.open .caret { transform: rotate(180deg); }
  .dropdown {
    position: absolute; top: calc(100% + 16px); left: 0;
    width: 300px; background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease; z-index: 50;
  }
  .has-menu:hover .dropdown, .has-menu.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
  .dropdown a { display: block; padding: 11px 14px; border-radius: 12px; transition: background .15s ease; }
  .dropdown a b { display: block; font-size: .98rem; font-weight: 600; color: var(--ink); }
  .dropdown a span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
  .dropdown a:hover { background: var(--surface-2); }
  .dropdown a:hover b { color: var(--accent-strong); }

  /* ---------- About / masthead ---------- */
  .about-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 30px; align-items: start; }
  .about-lead .lead-p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.18; margin: 0 0 16px; letter-spacing: -.01em; }
  .about-lead p { color: var(--muted); font-size: 1.02rem; margin: 0 0 14px; max-width: 58ch; }
  .about-lead p:last-child { margin-bottom: 0; }
  .glance-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
  .glance-card h4 { margin: 0 0 16px; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
  .glance-card dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
  .glance-card dl > div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .glance-card dl > div:last-child { border-bottom: none; padding-bottom: 0; }
  .glance-card dt { color: var(--muted); font-size: .9rem; }
  .glance-card dd { margin: 0; font-weight: 600; text-align: right; font-size: .92rem; }

  /* ---------- Editorial standards ---------- */
  .standards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .std { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
  .std-n { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--accent-strong); }
  .std h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
  .std p { margin: 0; color: var(--muted); font-size: .92rem; }

  @media (max-width: 940px) {
    .about-grid { grid-template-columns: 1fr; }
    .standards-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .standards-grid { grid-template-columns: 1fr; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 940px) {
    .featured { grid-template-columns: 1fr; }
    .featured .rail { flex-direction: row; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 820px) {
    nav.primary, .actions .pill { display: none; }
    .menu-btn { display: grid; }
    .grid3 { grid-template-columns: 1fr 1fr; }
    .cats { grid-template-columns: 1fr; }
    .broadcast { grid-template-columns: 1fr; }
    .mobile-panel.open {
      display: block;
      border-top: 1px solid rgba(255,255,255,.12);
      background: var(--brand-deep);
    }
    .mobile-panel .shell { display: flex; flex-direction: column; padding-block: 14px 20px; }
    .mobile-panel a { padding: 12px 0; font-size: 1.15rem; font-family: var(--font-display); color: var(--brand-deep-ink); border-bottom: 1px solid rgba(255,255,255,.12); }
    .mobile-panel a:last-child { border-bottom: none; }
  }
  @media (max-width: 560px) {
    .grid3 { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .field-row { flex-direction: column; }
    .subscribe input, .subscribe .submit { width: 100%; }
    .featured .rail { flex-direction: column; }
  }
  @media (max-width: 400px) {
    .foot-grid { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
  }

/* ---------- Article pages ---------- */
.article-main { padding-top: clamp(28px,5vw,52px); }
.article-shell { width:100%; max-width: 760px; margin-inline:auto; padding-inline: clamp(16px,5vw,32px); }
.crumbs { font-size:.82rem; color:var(--muted); margin-bottom:18px; }
.crumbs a{ color:var(--muted); } .crumbs a:hover{ color:var(--accent-strong); }
.article-head .tag { margin-bottom:14px; }
.article-title { font-family:var(--font-display); font-weight:600; font-size:clamp(2.1rem,5vw,3.4rem); line-height:1.03; letter-spacing:-.015em; margin:6px 0 0; text-wrap:balance; }
.article-dek { font-size:1.18rem; color:var(--muted); margin:18px 0 0; line-height:1.5; }
.article-meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:22px 0 0; font-size:.9rem; color:var(--muted); }
.article-meta .who { font-weight:600; color:var(--ink); }
.article-meta .dot { width:4px;height:4px;border-radius:999px;background:var(--muted);display:inline-block; }
.article-hero-panel { border-radius:var(--radius); overflow:hidden; aspect-ratio:16/8; display:grid; place-items:center; color:var(--panel-ink); margin:26px 0 8px; }
.article-hero-panel .art{ width:44%; height:56%; opacity:.9; }
.article-hero-panel.sage{background:var(--p-sage)} .article-hero-panel.tan{background:var(--p-tan)}
.article-hero-panel.sky{background:var(--p-sky)} .article-hero-panel.clay{background:var(--p-clay)}
.article-hero-panel.char{background:var(--p-char); color:var(--p-char-ink)}
.article-body { margin-top:28px; }
.article-body p { font-size:1.09rem; line-height:1.72; margin:0 0 22px; color:var(--ink); }
.article-body h2 { font-family:var(--font-display); font-weight:600; font-size:clamp(1.5rem,3vw,2rem); line-height:1.15; letter-spacing:-.01em; margin:38px 0 14px; }
.article-body blockquote { margin:30px 0; padding:6px 0 6px 22px; border-left:3px solid var(--accent); font-family:var(--font-display); font-size:1.4rem; line-height:1.35; color:var(--ink); }
.article-body a { color:var(--accent-strong); text-decoration:underline; text-underline-offset:2px; }
.article-foot { margin:40px 0 0; padding:24px 0; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; }
.article-foot .by { font-size:.95rem; color:var(--muted); }
.article-foot .by b { color:var(--ink); }
.related { margin-top:8px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:820px){ .related-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .related-grid{ grid-template-columns:1fr;} }
