:root {
      --ink: #10212b; /* Night */
      --ink-soft: #1c3340; /* Night Soft */
      --ink-mute: #4a6270;
      --snow: #f3efe6; /* Snow */
      --paper: #faf7f1;
      --card: #fffcf7;
      --ice: #d5e2e6; /* Ice */
      --glacier: #5d8490; /* Glacier — illustration/rules, not body text */
      --glacier-deep: #3e6a76; /* Glacier Deep — links on light */
      --pine: #2a4a40;
      --copper: #c4844a; /* Copper — CTA fills; Night text on top */
      --copper-deep: #a66a35; /* hover/large accent only */
      --copper-text: #8a5524; /* copper TEXT on light (WCAG AA) */
      --aurora: #7ea898; /* Aurora — accent; links on dark */
      --line: rgba(16, 33, 43, 0.12);
      --line-strong: rgba(16, 33, 43, 0.22);
      --shadow: 0 10px 30px rgba(16, 33, 43, 0.08);
      --serif: "Fraunces", "Instrument Serif", "Iowan Old Style", Georgia, serif;
      --sans: "Instrument Sans", "Geist", "Source Sans 3", "Segoe UI", sans-serif;
      --max: 1120px;
      --radius: 14px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 84px; }
    /* Clear the sticky header when jumping to in-page anchors. */
    [id] { scroll-margin-top: 84px; }
    body {
      font-family: var(--sans);
      color: var(--ink);
      background: var(--snow);
      line-height: 1.55;
      font-size: 17px;
      -webkit-font-smoothing: antialiased;
    }
    img, svg { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }

    .wrap {
      width: min(var(--max), calc(100% - 40px));
      margin-inline: auto;
    }

    /* Header */
    header.site {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(243, 239, 230, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      min-height: 72px;
    }
    .logo {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 3px;
      flex-shrink: 0;
    }
    .logo-img {
      display: block;
      width: 221px;
      height: 40px;
    }
    .logo-mark {
      font-family: var(--serif);
      font-weight: 560;
      font-size: 1.35rem;
      letter-spacing: -0.02em;
      line-height: 1;
      color: var(--ink);
    }
    .logo-mark span { color: var(--glacier-deep); }
    .logo-sub {
      font-size: 0.68rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--ink-mute);
      font-weight: 500;
    }
    nav.primary {
      display: flex;
      align-items: center;
      gap: 1.35rem;
    }
    nav.primary a {
      font-size: 0.92rem;
      font-weight: 500;
      color: var(--ink-soft);
      padding: 6px 0;
      border-bottom: 2px solid transparent;
    }
    nav.primary a:hover,
    nav.primary a:focus-visible {
      color: var(--ink);
      border-bottom-color: var(--copper);
    }

    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: var(--paper);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      color: inherit;
      font: inherit;
    }
    .nav-toggle span {
      display: block;
      width: 18px;
      height: 1.5px;
      background: var(--ink);
    }
    .nav-toggle:focus-visible {
      outline: 2px solid var(--ink);
      outline-offset: 2px;
    }

    /* Hero */
    .hero {
      position: relative;
      background: var(--ink);
      color: var(--paper);
      overflow: hidden;
      min-height: 560px;
      display: grid;
      align-items: end;
    }
    .hero-art {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .hero-art svg { width: 100%; height: 100%; object-fit: cover; }
    .aurora-band-a {
      animation: aurora-drift 22s ease-in-out infinite alternate;
      transform-origin: 70% 30%;
    }
    .aurora-band-b {
      animation: aurora-drift 16s ease-in-out infinite alternate-reverse;
      transform-origin: 75% 25%;
    }
    .aurora-band-c {
      animation: aurora-shimmer 12s ease-in-out infinite alternate;
      transform-origin: 80% 20%;
    }
    @keyframes aurora-drift {
      from { transform: translate3d(-16px, 4px, 0) scale(1); opacity: 0.88; }
      to { transform: translate3d(20px, -8px, 0) scale(1.03); opacity: 1; }
    }
    @keyframes aurora-shimmer {
      from { opacity: 0.7; transform: translate3d(8px, 0, 0); }
      to { opacity: 1; transform: translate3d(-10px, -6px, 0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .aurora-band-a, .aurora-band-b, .aurora-band-c { animation: none; }
    }
    .hero-content {
      position: relative;
      z-index: 1;
      padding: 88px 0 72px;
      width: min(var(--max), calc(100% - 40px));
      margin-inline: auto;
    }
    .kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 0.75rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--aurora);
      font-weight: 550;
      margin-bottom: 18px;
    }
    .kicker::before {
      content: "";
      width: 28px;
      height: 1px;
      background: var(--copper);
    }
    .hero h1 {
      font-family: var(--serif);
      font-weight: 520;
      font-size: clamp(2.4rem, 5.4vw, 4.4rem);
      letter-spacing: -0.03em;
      line-height: 1.05;
      max-width: 14ch;
      margin-bottom: 20px;
      text-shadow: 0 2px 28px rgba(7, 15, 24, 0.65);
    }
    .hero-lead {
      font-size: clamp(1.02rem, 1.6vw, 1.2rem);
      color: rgba(250, 247, 241, 0.88);
      max-width: 38rem;
      margin-bottom: 32px;
      text-shadow: 0 1px 18px rgba(7, 15, 24, 0.6);
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--copper);
      color: var(--ink);
      font-weight: 600;
      font-size: 0.95rem;
      padding: 12px 20px;
      border-radius: 999px;
      border: 0;
      cursor: pointer;
    }
    .btn:hover { background: #d09256; }
    .btn-ghost {
      background: transparent;
      color: var(--paper);
      border: 1px solid rgba(250, 247, 241, 0.28);
      margin-left: 10px;
    }
    .btn-ghost:hover { border-color: var(--paper); background: transparent; }

    /* Sections */
    main { background: var(--snow); }
    section { padding: 80px 0; }
    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 20px;
      margin-bottom: 36px;
    }
    .eyebrow {
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      /* Glacier Deep on Snow = 5.19:1 AA (Glacier itself is only 3.54:1). */
      color: var(--glacier-deep);
      font-weight: 600;
      margin-bottom: 8px;
    }
    h2 {
      font-family: var(--serif);
      font-weight: 540;
      font-size: clamp(1.8rem, 3vw, 2.4rem);
      letter-spacing: -0.03em;
      line-height: 1.15;
    }
    .section-note {
      color: var(--ink-mute);
      font-size: 0.92rem;
      max-width: 28rem;
      text-align: right;
    }

    /* Guide cards */
    .guide-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }
    .card {
      position: relative;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow);
      min-height: 100%;
    }
    .card:hover { border-color: rgba(93, 132, 144, 0.45); }
    .card:focus-within {
      outline: 2px solid var(--ink);
      outline-offset: 2px;
    }
    .thumb {
      height: 150px;
      background: var(--ink-soft);
      position: relative;
      overflow: hidden;
      border-radius: var(--radius) var(--radius) 0 0;
    }
    .thumb svg { width: 100%; height: 100%; }
    .card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
    .tag {
      align-self: flex-start;
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 650;
      color: var(--copper-text);
      background: rgba(196, 132, 74, 0.12);
      padding: 4px 8px;
      border-radius: 999px;
    }
    .card h3 {
      font-family: var(--serif);
      font-weight: 540;
      font-size: 1.28rem;
      letter-spacing: -0.02em;
      line-height: 1.25;
    }
    .excerpt {
      color: var(--ink-mute);
      font-size: 0.95rem;
      flex: 1;
    }
    .sample-flag {
      display: inline-block;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 650;
      color: var(--ink-mute);
      border: 1px solid var(--line-strong);
      padding: 2px 6px;
      border-radius: 4px;
      margin-right: 6px;
    }
    .card-link {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--glacier-deep);
      margin-top: 6px;
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 10px 0;
    }
    .card-link:focus {
      outline: none;
    }
    .card-link:focus-visible {
      outline: none;
    }
    /* Stretch the one card link over the whole card; title/thumb stay unlinked. */
    .card-link::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: var(--radius);
    }

    /* Gear */
    .gear {
      background: var(--ink);
      color: var(--paper);
    }
    .gear .eyebrow { color: var(--aurora); }
    .gear .section-note { color: rgba(250, 247, 241, 0.62); text-align: left; }
    .example-banner {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(196, 132, 74, 0.16);
      color: #e8c8a0;
      border: 1px solid rgba(196, 132, 74, 0.35);
      font-size: 0.75rem;
      font-weight: 650;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 6px 10px;
      border-radius: 6px;
      margin-bottom: 14px;
    }
    .gear-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }
    .gear-card {
      background: rgba(250, 247, 241, 0.05);
      border: 1px solid rgba(250, 247, 241, 0.12);
      border-radius: var(--radius);
      padding: 22px;
      min-height: 220px;
      display: flex;
      flex-direction: column;
    }
    .gear-icon {
      width: 48px;
      height: 48px;
      margin-bottom: 18px;
      color: var(--aurora);
    }
    .gear-card h3 {
      font-family: var(--serif);
      font-size: 1.15rem;
      font-weight: 540;
      margin-bottom: 8px;
    }
    .gear-card p {
      color: rgba(250, 247, 241, 0.68);
      font-size: 0.92rem;
    }
    .gear-meta {
      margin-top: auto;
      padding-top: 16px;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--copper);
      font-weight: 600;
      white-space: nowrap;
    }

    /* Newsletter */
    .news-box {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 40px 44px;
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 36px;
      align-items: center;
      box-shadow: var(--shadow);
    }
    .news-box h2 { margin-bottom: 10px; }
    .news-box p { color: var(--ink-mute); }
    form.newsletter {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    form.newsletter input[type="email"] {
      flex: 1 1 200px;
      min-width: 0;
      border: 1px solid var(--line-strong);
      background: #fff;
      border-radius: 999px;
      padding: 12px 16px;
      color: var(--ink);
    }
    form.newsletter input:focus {
      outline: 2px solid var(--glacier);
      outline-offset: 1px;
    }
    .form-help {
      width: 100%;
      margin-top: 8px;
      font-size: 0.8rem;
      color: var(--ink-mute);
    }

    /* Footer */
    footer.site {
      background: #0c1a22;
      color: rgba(250, 247, 241, 0.78);
      padding: 56px 0 32px;
      font-size: 0.92rem;
    }
    .footer-top {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr;
      gap: 32px;
      padding-bottom: 36px;
      border-bottom: 1px solid rgba(250, 247, 241, 0.1);
    }
    footer .footer-logo { display: inline-block; }
    footer .footer-logo img {
      display: block;
      width: 176px;
      height: 80px;
    }
    footer .logo-mark { color: var(--paper); }
    footer .logo-sub { color: rgba(250, 247, 241, 0.5); }
    footer a { color: var(--aurora); }
    footer h4 {
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--aurora);
      margin-bottom: 12px;
    }
    footer ul { list-style: none; display: grid; gap: 8px; }
    footer a:hover { color: var(--paper); }
    .disclosure {
      margin-top: 28px;
      padding: 18px 20px;
      border: 1px solid rgba(250, 247, 241, 0.12);
      border-radius: 12px;
      background: rgba(250, 247, 241, 0.03);
      font-size: 0.84rem;
      line-height: 1.55;
      color: rgba(250, 247, 241, 0.68);
    }
    .disclosure strong { color: var(--paper); font-weight: 600; }
    .legal {
      margin-top: 22px;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      font-size: 0.78rem;
      /* Paper at 62% on #0c1a22 ≈ 6.96:1 (AA). Was 0.45, 4.23:1. */
      color: rgba(250, 247, 241, 0.62);
    }

    /* Responsive */
    @media (max-width: 900px) {
      .guide-grid { grid-template-columns: 1fr 1fr; }
      .gear-grid { grid-template-columns: 1fr 1fr; }
      .news-box { grid-template-columns: 1fr; padding: 32px 24px; }
      .section-head { flex-direction: column; align-items: start; }
      .section-note { text-align: left; }
      .footer-top { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 720px) {
      .wrap { width: min(var(--max), calc(100% - 32px)); }
      .header-inner { min-height: 62px; }
      /* No-JS fallback: in-flow stacked nav, no toggle. With JS: overlay until .open. */
      nav.primary {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
      }
      nav.primary a {
        padding: 12px 8px;
        border-bottom: 1px solid var(--line);
      }
      html.js .nav-toggle { display: flex; }
      html.js nav.primary {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 12px 16px 18px;
      }
      html.js nav.primary.open { display: flex; }
      .hero { min-height: 520px; }
      .hero-content { padding: 64px 0 56px; }
      .btn-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
      .btn-ghost { margin-left: 0; }
      .guide-grid, .gear-grid, .footer-top { grid-template-columns: 1fr; }
      section { padding: 56px 0; }
    }

    /* Article pages */
    .article-wrap {
      width: min(740px, calc(100% - 40px));
      margin: 0 auto;
      padding: 48px 0 80px;
    }
    @media (max-width: 720px) {
      .article-wrap { width: min(740px, calc(100% - 32px)); padding: 36px 0 64px; }
    }
    .crumb {
      font-size: 0.86rem;
      color: var(--ink-mute);
      margin-bottom: 22px;
    }
    .crumb a { font-weight: 550; color: var(--glacier-deep); }
    .crumb a:hover { border-bottom: 1px solid var(--copper); }
    .article-wrap .eyebrow { margin-bottom: 10px; }
    .article-wrap h1 {
      font-family: var(--serif);
      font-weight: 540;
      font-size: clamp(2rem, 4.2vw, 3.05rem);
      letter-spacing: -0.03em;
      line-height: 1.12;
      margin-bottom: 14px;
    }
    .dek {
      font-size: 1.12rem;
      color: var(--ink-soft);
      line-height: 1.5;
      margin-bottom: 14px;
    }
    .article-meta {
      font-size: 0.86rem;
      color: var(--ink-mute);
      margin-bottom: 36px;
      padding-bottom: 22px;
      border-bottom: 1px solid var(--line);
    }
    .prose p { margin-bottom: 1.05em; }
    .prose h2 {
      font-family: var(--serif);
      font-weight: 540;
      font-size: 1.55rem;
      letter-spacing: -0.02em;
      margin: 1.7em 0 0.7em;
    }
    .prose h3 {
      font-family: var(--sans);
      font-weight: 650;
      font-size: 1.05rem;
      margin: 1.4em 0 0.5em;
    }
    .prose ul, .prose ol { margin: 0 0 1.15em 1.2em; }
    .prose li { margin-bottom: 0.45em; }
    .prose a { color: var(--glacier-deep); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
    .john-note {
      background: #f7efe3;
      border-left: 4px solid var(--copper);
      border-radius: 0 12px 12px 0;
      padding: 16px 18px 16px 16px;
      margin: 1.4em 0;
    }
    .john-note .note-label {
      display: block;
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 700;
      color: var(--copper-text);
      margin-bottom: 6px;
    }
    .john-note p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
    .sources {
      margin-top: 48px;
      padding-top: 28px;
      border-top: 1px solid var(--line);
    }
    .sources h2 { margin-top: 0; }
    .sources ol { padding-left: 1.25em; }
    .sources li { margin-bottom: 0.55em; color: var(--ink-mute); font-size: 0.92rem; }
    .related {
      margin-top: 36px;
      padding: 20px 22px;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 14px;
    }
    .related h2 { font-size: 1.2rem; margin: 0 0 10px; }
    .related ul { margin: 0; padding-left: 1.1em; }


/* Polish pass additions */
.takeaway {
  background: #e9f0ee;
  border-left: 4px solid var(--pine);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px 16px 16px;
  margin: 2em 0 0.5em;
}
.takeaway .note-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: 6px;
}
.takeaway p { margin: 0; color: var(--ink); }
.prose #faq { margin-top: 1.9em; }
.prose h2 + ul, .prose h2 + ol { margin-top: 0.4em; }
.sources-note { font-size: 0.86rem; color: var(--ink-mute); margin-top: 14px; }
.placeholder { background: #f7efe3; border-bottom: 1px dashed var(--copper); padding: 0 4px; border-radius: 3px; }
.fine { font-size: 0.9rem; color: var(--ink-mute); }
.disclosure a { text-decoration: underline; text-underline-offset: 3px; }


/* Polish round 2: byline link, data tables */
.article-meta a { color: var(--glacier-deep); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.data-table { margin: 1.5em 0 1.6em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.data-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.93rem; line-height: 1.4; }
.data-table caption { caption-side: top; text-align: left; font-weight: 650; font-size: 0.95rem; padding: 0 0 8px; color: var(--ink); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--ice); color: var(--ink); font-size: 0.82rem; letter-spacing: 0.02em; }
.data-table tbody th { font-weight: 650; color: var(--ink); background: rgba(213, 226, 230, 0.25); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: 0.86rem; color: var(--ink-mute); margin: 8px 0 0; }
.brand-note { font-size: 0.8rem; color: rgba(250, 247, 241, 0.62); margin: 14px 0 0; max-width: 70ch; }

.editor-note {
  background: #e9f0ee;
  border-left: 4px solid var(--pine);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px 16px 16px;
  margin: 1.4em 0;
}
.editor-note .note-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: 6px;
}
.editor-note p { margin: 0; color: var(--ink); font-size: 0.98rem; }

/* Article hero (LCP) and photo thumbs on home cards */
.article-hero {
  margin: 0 0 2em;
}
.article-hero picture,
.article-hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--ink-soft);
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
