:root {
  --ink: #141210;
  --ink-soft: #4a443b;
  --muted: #726b60;
  --paper: #fffdf8;
  --canvas: #f5efe4;
  --line: #d8cdbb;
  --orange: #e8541d;
  --orange-pale: #ffe8d6;
  --yellow: #ffd84d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.6 "Source Serif 4", Georgia, serif;
}
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 10;
  background: var(--yellow); border: 2px solid var(--ink); padding: .65rem 1rem;
  font: 800 .9rem/1 "Archivo", sans-serif;
}
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.site-header__inner, .site-footer__inner {
  max-width: 1120px; margin: 0 auto; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-brand img { display: block; height: 44px; width: auto; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.site-header nav a, .site-footer nav a {
  font: 800 .78rem/1.3 "Archivo", sans-serif; text-transform: uppercase;
  letter-spacing: .055em; text-decoration: none; border-bottom: 2px solid transparent;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-color: var(--orange); }

.guide-shell { max-width: 920px; margin: 0 auto; padding: 2rem 1.25rem 5rem; }
.guide-breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted);
  font: 700 .75rem/1.4 "Archivo", sans-serif; text-transform: uppercase; letter-spacing: .055em;
  margin-bottom: 2.5rem;
}
.guide-article { max-width: 760px; margin: 0 auto; }
.guide-header { border-bottom: 3px solid var(--ink); padding-bottom: 2rem; margin-bottom: 2rem; }
.guide-kicker, .guide-card__category, .guide-product__eyebrow {
  color: var(--orange); font: 900 .74rem/1.3 "Archivo", sans-serif;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .75rem;
}
.guide-header h1, .guides-masthead h1 {
  font: 900 clamp(2.4rem, 7vw, 5rem)/.98 "Archivo", sans-serif;
  letter-spacing: -.045em; margin: 0; text-wrap: balance;
}
.guide-deck {
  color: var(--ink-soft); font: 600 clamp(1.2rem, 2.6vw, 1.55rem)/1.42 "Source Serif 4", serif;
  margin: 1.25rem 0;
}
.guide-byline { color: var(--muted); font: 600 .82rem/1.6 "Archivo", sans-serif; margin: 0; }
.guide-hero { margin: 0 0 2.5rem; }
.guide-hero img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); }
.guide-body { font-size: clamp(1.08rem, 2.2vw, 1.22rem); }
.guide-body > p:first-child { font-size: 1.3em; line-height: 1.45; font-weight: 600; }
.guide-body h2, .guide-sources h2, .guide-related h2, .guide-promo h2 {
  font: 900 clamp(1.5rem, 4vw, 2.15rem)/1.1 "Archivo", sans-serif;
  letter-spacing: -.025em; margin: 2.8rem 0 1rem;
}
.guide-body h3 { font: 800 1.15rem/1.3 "Archivo", sans-serif; margin: 2rem 0 .6rem; }
.guide-body li { margin: .45rem 0; }
.guide-body strong { font-weight: 700; }
.guide-body hr { border: 0; border-top: 2px solid var(--ink); margin: 3rem 0; }
.guide-body blockquote, .guide-quote {
  background: var(--paper); border: 2px solid var(--ink); border-left: .55rem solid var(--orange);
  margin: 2rem 0; padding: 1.1rem 1.3rem;
}
.guide-quote blockquote { border: 0; background: transparent; margin: 0; padding: 0; font-size: 1.1em; }
.guide-quote figcaption { color: var(--muted); font: 700 .8rem/1.5 "Archivo", sans-serif; margin-top: .8rem; }
.guide-disclosure {
  background: var(--orange-pale); border: 2px solid var(--ink); padding: 1rem 1.15rem; margin: 2rem 0;
  font: 650 .9rem/1.55 "Archivo", sans-serif;
}
.guide-product {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  margin: 2.2rem 0 2.6rem; padding: 1.3rem;
}
.guide-product h3 { font: 900 1.45rem/1.15 "Archivo", sans-serif; margin: 0 0 .2rem; }
.guide-product__author { color: var(--muted); font: 700 .82rem/1.4 "Archivo", sans-serif; margin: 0 0 .8rem; }
.guide-product__cta {
  display: inline-block; background: var(--orange); color: white; border: 2px solid var(--ink);
  padding: .7rem 1rem; font: 900 .88rem/1.2 "Archivo", sans-serif; text-decoration: none;
}
.guide-product__cta:hover { background: var(--ink); }
.guide-product__fineprint { color: var(--muted); font: 600 .72rem/1.45 "Archivo", sans-serif; margin: .7rem 0 0; }
.guide-promo { margin: 2rem 0 0; }
.guide-promo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-promo__card {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 1.3rem; display: flex; flex-direction: column;
}
.guide-promo__card h3 { font: 900 1.45rem/1.15 "Archivo", sans-serif; margin: 0 0 .5rem; }
.guide-promo__card p { margin: 0 0 1rem; }
.guide-promo__kicker {
  color: var(--orange); font: 900 .68rem/1.3 "Archivo", sans-serif;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .35rem !important;
}
.guide-promo__cta {
  margin-top: auto; align-self: flex-start; background: var(--orange); color: white;
  border: 2px solid var(--ink); padding: .7rem 1rem; font: 900 .88rem/1.2 "Archivo", sans-serif;
  text-decoration: none;
}
.guide-promo__cta:hover { background: var(--ink); }
.guide-promo__note { color: var(--muted); font: 600 .78rem/1.5 "Archivo", sans-serif; margin: .9rem 0 0; }
.guide-sources { border-top: 2px solid var(--ink); margin-top: 3rem; }
.guide-sources ol { padding-left: 1.4rem; }
.guide-sources li { margin: .65rem 0; overflow-wrap: anywhere; }
.guide-related { margin-top: 3.5rem; }
.guide-related__grid, .guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-related__card, .guide-card {
  display: block; background: var(--paper); border: 2px solid var(--ink); padding: 1.1rem;
  text-decoration: none;
}
.guide-related__card:hover, .guide-card:hover { box-shadow: 5px 5px 0 var(--orange); transform: translate(-2px, -2px); }
.guide-related__card span { color: var(--orange); font: 900 .68rem/1.3 "Archivo", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.guide-related__card strong { display: block; font: 850 1.05rem/1.25 "Archivo", sans-serif; margin: .35rem 0; }
.guide-related__card small { display: block; color: var(--ink-soft); line-height: 1.45; }

.guides-index { max-width: 1120px; margin: 0 auto; padding: 4rem 1.25rem 6rem; }
.guides-masthead { max-width: 900px; margin-bottom: 4rem; }
.guides-masthead > p:not(.guide-kicker) { color: var(--ink-soft); font-size: 1.35rem; max-width: 68ch; }
.guides-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.guides-filters a {
  background: var(--paper); border: 2px solid var(--ink); padding: .55rem .8rem;
  font: 800 .78rem/1.2 "Archivo", sans-serif; text-decoration: none;
}
.guides-filters a:hover { background: var(--yellow); }
.featured-section > h2, .guide-section > h2 {
  border-bottom: 3px solid var(--ink); padding-bottom: .55rem;
  font: 900 1.55rem/1.1 "Archivo", sans-serif; text-transform: uppercase; letter-spacing: -.02em;
}
.guide-card h2 { font: 900 1.35rem/1.15 "Archivo", sans-serif; margin: .25rem 0 .6rem; }
.guide-card h2 a { text-decoration: none; }
.guide-card p { color: var(--ink-soft); margin: .5rem 0; }
.guide-card__meta { font: 650 .75rem/1.4 "Archivo", sans-serif; }
.guide-card--featured { background: var(--yellow); box-shadow: 7px 7px 0 var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); }
.guide-card--featured h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 20ch; }
.guide-section { margin-top: 4rem; scroll-margin-top: 1rem; }
.guides-discovery {
  display: flex; align-items: end; justify-content: space-between; gap: 2rem;
  background: var(--ink); color: var(--paper); margin-top: 4rem; padding: 2rem;
}
.guides-discovery h2 { font: 900 1.8rem/1.1 "Archivo", sans-serif; margin: .2rem 0; }
.guides-discovery p:not(.guide-kicker) { margin: .5rem 0 0; }
.guides-discovery > a { flex: none; color: var(--ink); background: var(--orange); border: 2px solid var(--paper); padding: .8rem 1rem; font: 900 .85rem/1.2 "Archivo", sans-serif; text-decoration: none; }

.site-footer { background: var(--paper); border-top: 2px solid var(--ink); }
.site-footer__inner { align-items: flex-start; padding-top: 2rem; padding-bottom: 2rem; }
.site-footer p { color: var(--ink-soft); margin: 0; }

@media (max-width: 720px) {
  .site-header__inner, .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .guide-related__grid, .guide-grid, .guide-promo__grid { grid-template-columns: 1fr; }
  .guides-discovery { align-items: flex-start; flex-direction: column; }
  .guides-discovery > a { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-related__card:hover, .guide-card:hover { transform: none; }
}
