/* Guns & Gear HQ — Editorial mockup */
:root {
  --bg: #faf6ef;             /* warm cream */
  --bg-alt: #f3ecdf;         /* deeper cream for alt sections */
  --surface: #ffffff;
  --ink: #1a1613;
  --ink-soft: #4a4540;
  --ink-muted: #7a736c;
  --rule: #e6dfd0;
  --rule-soft: #efe8d7;
  --accent: #b8432a;         /* burnt orange — primary */
  --accent-dark: #8f3320;
  --teal: #2d6a6a;           /* deep teal — secondary */
  --olive: #5a6b3a;          /* olive — tertiary */
  --navy: #1f3a5f;           /* navy — quaternary */
  --gold: #b88a2a;           /* warm gold */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1240px;
  --max-narrow: 720px;
}

/* Category color tokens — applied via data-cat or .cat-* */
.cat-news     { --cat: var(--accent); }
.cat-reviews  { --cat: var(--teal); }
.cat-guides   { --cat: var(--olive); }
.cat-gear     { --cat: var(--gold); }
.cat-pistols  { --cat: var(--navy); }
.cat-rifles   { --cat: var(--accent-dark); }
.cat-optics   { --cat: var(--teal); }
.cat-cc       { --cat: var(--olive); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #f3ecdf;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a {
  color: #f3ecdf;
  transition: color .15s;
}
.topbar a:hover { color: var(--gold); }
.topbar-nav { display: flex; gap: 22px; }

/* ---------- Masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  padding: 36px 32px 28px;
  text-align: center;
}
.masthead .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.masthead .wordmark .amp {
  font-style: italic;
  color: var(--accent);
}
.masthead .tagline {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Primary nav ---------- */
.primary-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.primary-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  position: relative;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  gap: 12px;
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.primary-nav.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.primary-nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.primary-nav.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  align-items: stretch;
}
.primary-menu > .menu-item { position: static; }
.primary-menu > .menu-item.has-dropdown { position: relative; }
.primary-menu .menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
.primary-menu .menu-link:hover,
.primary-menu .menu-item.is-active > .menu-link {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.primary-menu .caret {
  font-size: 10px;
  transition: transform .2s;
  color: var(--ink-muted);
}
.primary-menu .menu-item:hover > .menu-link .caret,
.primary-menu .menu-item.is-open > .menu-link .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 28px rgba(26, 22, 19, 0.09);
  min-width: 220px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s;
  z-index: 50;
}
.menu-item:hover > .dropdown,
.menu-item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s, transform .18s, visibility 0s;
}
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a {
  display: block;
  padding: 9px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown li a:hover { color: var(--accent); background: var(--bg-alt); }

.dropdown.mega {
  left: 50%;
  transform: translate(-50%, -6px);
  width: min(760px, calc(100vw - 48px));
  padding: 28px 32px 24px;
}
.menu-item:hover > .dropdown.mega,
.menu-item.is-open > .dropdown.mega { transform: translate(-50%, 0); }
.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mega-col ul { padding: 0; }
.mega-col li { margin: 0; }
.mega-col li a { padding: 7px 0; font-size: 14px; }
.mega-col li a:hover { background: none; color: var(--accent); padding-left: 4px; }
.mega-title {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

/* ---------- Search ---------- */
.nav-search-btn {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px;
  transition: color .15s;
}
.nav-search-btn:hover { color: var(--accent); }

.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 28px rgba(26, 22, 19, 0.09);
  z-index: 110;
  opacity: 0;
  transition: opacity .2s;
}
.search-overlay.is-visible { opacity: 1; }

.search-overlay-form {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
}
.search-overlay-input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  padding: 8px 0;
}
.search-overlay-input::placeholder { color: var(--ink-muted); }
.search-overlay-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.search-overlay-close:hover { color: var(--ink); }

.search-overlay-results {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  max-height: 400px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: color .15s;
}
.search-result:first-child { border-top: none; }
.search-result:hover { color: var(--accent); }
.search-result-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.search-result-meta {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.search-no-results {
  padding: 16px 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.search-form-page {
  display: flex;
  gap: 12px;
  margin: 32px 0 0;
  max-width: 560px;
}
.search-form-page input[type="search"] {
  flex: 1;
  font-family: var(--sans);
  font-size: 16px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
}
.search-form-page input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}
.search-empty {
  margin: 48px 0;
  color: var(--ink-muted);
  font-size: 16px;
}

/* ---------- Hero ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.hero-lead figure { margin: 0; }
.hero-lead img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cat, var(--accent));
  margin-top: 18px;
  position: relative;
  padding-left: 22px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--cat, var(--accent));
  transform: translateY(-50%);
}
.hero-lead h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 10px 0 14px;
  color: var(--ink);
}
.hero-lead h1 a:hover { color: var(--accent); }
.hero-lead .dek {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 16px;
}
.byline {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.byline .sep { margin: 0 8px; color: var(--rule); }
.byline strong { color: var(--ink-soft); font-weight: 600; }

/* hero secondary column */
.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-secondary article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule-soft);
}
.hero-secondary article:last-child { border-bottom: none; padding-bottom: 0; }
.hero-secondary img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 2px;
}
.hero-secondary .eyebrow { margin-top: 0; font-size: 10px; }
.hero-secondary h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}

/* ---------- Section titles ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 64px 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  background: var(--cat, var(--accent));
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cat, var(--accent));
}
.section-head a:hover { color: var(--ink); }

/* ---------- Story grid ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}
.story-card figure { margin: 0 0 14px; }
.story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}
.story-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
}
.story-card .excerpt {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 10px;
}

/* ---------- Alt-toned section band ---------- */
.band {
  background: var(--bg-alt);
  margin: 64px -9999px 0;
  padding: 8px 9999px 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band .section-head { margin-top: 48px; }

/* ---------- Latest list (sidebar style on 2-col layout) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 56px;
  margin-top: 0;
}
.latest-list { counter-reset: rank; }
.latest-list article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  counter-increment: rank;
  align-items: center;
}
.latest-list article:first-child { padding-top: 0; }
.latest-list article::before {
  content: counter(rank, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cat, var(--accent));
  letter-spacing: -0.02em;
}
.latest-list h4 {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 4px;
}
.latest-list .meta {
  font-size: 11px;
  color: var(--cat, var(--ink-muted));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Newsletter box ---------- */
.callout {
  background: #201a16;
  color: #f6f1ea;
  padding: 36px 32px;
  margin: 72px 0 0;
  border-radius: 2px;
  text-align: center;
}
.callout h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.callout p {
  color: #c9bfb3;
  margin: 0 0 20px;
  font-size: 15px;
}
.callout-msg { margin: 0 0 14px !important; font-size: 14px !important; font-weight: 500; }
.callout-msg.success { color: #a9d6a0; }
.callout-msg.error   { color: #e8a28f; }
.callout form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto;
}
.callout .callout-inline {
  display: flex;
  gap: 8px;
}
.cadence-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.cadence-pills .pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #3a302a;
  background: #2a221d;
  color: #c9bfb3;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: background .15s, border-color .15s, color .15s;
}
.cadence-pills .pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cadence-pills .pill small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
  margin-top: 2px;
}
.cadence-pills .pill:hover { border-color: #5a4c42; color: #f6f1ea; }
.cadence-pills .pill:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.cadence-pills .pill:has(input:checked) small { opacity: 0.85; }
.cadence-pills .pill:has(input:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cadence-pills--light .pill {
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink-soft);
}
.cadence-pills--light .pill:hover { border-color: var(--accent); color: var(--ink); }
.cadence-pills--light .pill:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cadence-pills--light .pill:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Async subscribe feedback — inline error + success-swap */
.subscribe-status {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.subscribe-status[data-kind="error"] {
  background: rgba(232,162,143,0.12);
  color: #e8a28f;
  border: 1px solid rgba(232,162,143,0.35);
}
.callout .subscribe-status[data-kind="error"] {
  background: rgba(232,162,143,0.1);
}
/* Light variant overrides when placed in article body / newsletter page */
.article-body .subscribe-status[data-kind="error"],
.newsletter-signup .subscribe-status[data-kind="error"] {
  background: #fdecea;
  color: #a5362b;
  border: 1px solid #f4c6be;
}

.subscribe-success {
  text-align: center;
  padding: 24px 16px;
  animation: subscribeFadeIn .3s ease-out;
}
.subscribe-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.subscribe-success-title {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 4px;
  font-weight: 500;
}
.subscribe-success-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}
.callout .subscribe-success-title { color: #f6f1ea; }
.callout .subscribe-success-note  { color: #c9bfb3; }
@keyframes subscribeFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.callout input {
  flex: 1;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid #3a302a;
  background: #2a221d;
  color: #f6f1ea;
  border-radius: 2px;
}
.callout input::placeholder { color: #8a7e70; }
.callout button {
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}
.callout button:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
footer.site-footer {
  margin-top: 80px;
  padding: 48px 32px 36px;
  background: var(--surface);
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-inner h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.footer-inner li { margin-bottom: 8px; }
.footer-inner li a { color: var(--ink-soft); }
.footer-wordmark {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 10px;
}
.footer-wordmark .amp { color: var(--accent); font-style: italic; }
.footer-about {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 36ch;
  line-height: 1.55;
}
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
}

/* ---------- Article page ---------- */
.article-hero {
  padding: 48px 0 32px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.article-hero .eyebrow { margin-top: 0; }
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 14px 0 18px;
}
.article-hero .dek {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0 auto 22px;
}
.article-hero .byline {
  font-size: 13px;
  color: var(--ink-muted);
}
.article-feature img {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}
.article-feature .caption,
.article-feature .article-feature-credit {
  max-width: var(--max-narrow);
  margin: 10px auto 0;
  padding: 0 32px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  font-style: italic;
}

.article-body {
  max-width: calc(960px + 64px);
  margin: 48px auto 0;
  padding: 0 32px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article-body p { margin: 0 0 1.4em; }
.article-body .dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  float: left;
  font-size: 68px;
  line-height: 0.85;
  padding: 8px 10px 0 0;
  color: var(--ink);
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 1.6em 0 0.5em;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
}
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.4em auto;
  width: 80px;
}
.inline-reads {
  margin: 2.5em 0 0.5em;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.inline-reads-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.inline-reads ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inline-reads li { margin-bottom: 6px; }
.inline-reads li:last-child { margin-bottom: 0; }
.inline-reads a {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.inline-reads a:hover { color: var(--accent); }

/* Inline figures inside article body */
.article-body figure {
  margin: 2em 0;
}

/* Video embeds — fill article content column, 16:9 aspect ratio.
   Covers both hand-authored wrappers and Quill's bare <iframe class="ql-video">. */
.article-body .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5em 0;
}
.article-body .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-body iframe.ql-video,
.article-body iframe[src*="youtube.com/embed"],
.article-body iframe[src*="youtu.be"],
.article-body iframe[src*="player.vimeo.com"] {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 1.5em 0;
  border: 0;
}
.article-body figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  background: var(--bg-alt);
}
.article-body figure figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
  font-style: italic;
  padding: 0 8px;
}

/* Affiliate disclosure — sits under byline as a quiet one-liner */
.article-hero .affiliate-disclosure {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-muted);
  margin: 8px 0 0;
  letter-spacing: 0.01em;
}
.article-hero .affiliate-disclosure a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.article-hero .affiliate-disclosure a:hover {
  color: var(--accent);
}

/* Per-product buy box (used inside listicle/review articles) */
.article-body .buy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid #e6dccb;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 1.6em 0 2em;
  box-shadow: 0 1px 2px rgba(26, 22, 19, 0.04);
}
.article-body .buy-box-info { flex: 1 1 240px; min-width: 0; }
.article-body .buy-box-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.25;
}
.article-body .buy-box-spec {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.4;
}
.article-body .buy-box-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 1 auto;
}
.article-body .buy-box-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--surface) !important;
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.article-body .buy-box-cta:hover {
  background: var(--accent-dark);
  color: var(--surface) !important;
}
@media (max-width: 540px) {
  .article-body .buy-box { padding: 14px; }
  .article-body .buy-box-ctas { width: 100%; }
  .article-body .buy-box-cta { flex: 1 1 auto; text-align: center; }
}

/* Comparison & spec tables inside articles */
.article-body figure.wp-block-table {
  margin: 2.2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e6dccb;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(26, 22, 19, 0.04);
}
.article-body figure.wp-block-table img { display: none; }
.article-body figure.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.article-body figure.wp-block-table thead {
  background: var(--bg-alt);
}
.article-body figure.wp-block-table th {
  text-align: left;
  font-weight: 700;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 12px 14px;
  border-bottom: 2px solid #d9ccb4;
  white-space: nowrap;
}
.article-body figure.wp-block-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #efe6d5;
  vertical-align: top;
}
.article-body figure.wp-block-table tbody tr:nth-child(even) td {
  background: rgba(243, 236, 223, 0.4);
}
.article-body figure.wp-block-table tbody tr:hover td {
  background: rgba(184, 67, 42, 0.06);
}
.article-body figure.wp-block-table tbody tr:last-child td {
  border-bottom: none;
}
.article-body figure.wp-block-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.article-body figure.wp-block-table .table-buy-cell {
  text-align: center;
  white-space: nowrap;
}
.article-body figure.wp-block-table .table-buy-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--surface);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}
.article-body figure.wp-block-table .table-buy-link:hover {
  background: var(--accent-dark);
  color: var(--surface) !important;
}
.article-body figure.wp-block-table figcaption {
  padding: 10px 14px 14px;
  text-align: left;
  border-top: 1px solid #efe6d5;
  background: var(--bg-alt);
}
@media (max-width: 600px) {
  .article-body figure.wp-block-table table { font-size: 14px; }
  .article-body figure.wp-block-table th,
  .article-body figure.wp-block-table td { padding: 10px 11px; }
}

/* Standalone newsletter signup (rendered on /newsletter/ page) */
.article-body .newsletter-signup {
  margin: 3em 0 1em;
  padding: 40px 44px 36px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 3px;
  text-align: center;
}
.article-body .newsletter-signup h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.article-body .newsletter-signup .newsletter-lede {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.article-body .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}
.article-body .newsletter-cadence {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 12px 16px;
  margin: 0;
  background: #fff;
}
.article-body .newsletter-cadence legend {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0 6px;
}
.article-body .newsletter-cadence label {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.article-body .newsletter-cadence input[type="radio"] {
  margin-right: 8px;
}
.article-body .newsletter-inline {
  display: flex;
  gap: 8px;
}
.article-body .newsletter-inline input[type="email"] { flex: 1; min-width: 0; }

/* Home-page callout cadence */
.callout-cadence {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.callout-cadence label { cursor: pointer; }
.callout-cadence input[type="radio"] { margin-right: 4px; }
.article-body .newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.article-body .newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.article-body .newsletter-form button {
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .12s;
}
.article-body .newsletter-form button:hover { background: var(--accent-dark); }
.article-body .newsletter-footnote {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.article-body .newsletter-msg {
  max-width: 480px;
  margin: 0 auto 16px;
  padding: 11px 16px;
  border-radius: 3px;
  font-size: 14px;
}
.article-body .newsletter-msg.success {
  background: #e9f5ea;
  color: #254b1a;
  border: 1px solid #c7e0c9;
}
.article-body .newsletter-msg.error {
  background: #fbe8e3;
  color: #7a2712;
  border: 1px solid #e9c4b8;
}
@media (max-width: 640px) {
  .article-body .newsletter-signup { padding: 32px 22px 28px; margin-left: -22px; margin-right: -22px; border-radius: 0; }
  .article-body .newsletter-signup h2 { font-size: 26px; }
  .article-body .newsletter-form { flex-direction: column; gap: 10px; }
  .article-body .newsletter-form button { padding: 14px; }
}

/* Visually-hidden label utility */
.article-body .sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Multi-image grid (e.g. colorway lineups) */
.article-body figure.four-up {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.article-body figure.four-up img { border-radius: 3px; }
.article-body figure.four-up figcaption {
  grid-column: 1 / -1;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .article-body figure.four-up { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .article-body figure.four-up { grid-template-columns: 1fr; }
}

/* ---------- Article TOC ---------- */
.article-toc {
  margin: 0 0 40px;
  padding: 22px 26px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}
.article-toc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.article-toc-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.article-toc-toggle {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.article-toc-toggle:hover { color: var(--accent); }
.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.article-toc-list li {
  break-inside: avoid;
  margin: 0 0 8px;
}
.article-toc-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px dotted transparent;
}
.article-toc-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.article-toc-list .toc-num {
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 22px;
}
.article-toc-list .toc-text { flex: 1; }
.article-toc-list .toc-level-3 { padding-left: 28px; }
.article-toc-list .toc-level-3 a { font-size: 14px; color: var(--ink-muted); }
.article-toc[data-collapsed="true"] .article-toc-list { display: none; }
.article-toc[data-collapsed="true"] .article-toc-head { margin-bottom: 0; }

/* Smooth scroll + offset so headings aren't hidden under sticky nav */
html { scroll-behavior: smooth; }
.article-body h2, .article-body h3 { scroll-margin-top: 80px; }

@media (max-width: 720px) {
  .article-toc-list { columns: 1; }
  .article-toc { padding: 20px 20px 22px; }
}

.article-footer {
  max-width: var(--max-narrow);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tags a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: all .15s;
}
.tags a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.author-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
}
.author-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink-soft);
}
.author-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 4px;
}
.author-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- Comments ---------- */
.comments {
  margin: 72px 0 0;
}
.comments h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.comments-count {
  color: var(--ink-muted);
  font-size: 16px;
  font-weight: 400;
  margin-left: 6px;
}
.comment-flash {
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
  font-size: 14px;
}
.comment-flash.success {
  background: #e9f5ea;
  border-left: 3px solid var(--olive);
  color: #254b1a;
}
.comment-flash.error {
  background: #fbeae7;
  border-left: 3px solid var(--accent);
  color: #5c1f10;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.comment-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.comment-author { font-weight: 600; color: var(--ink); font-family: var(--serif); font-size: 16px; }
.comment-date { color: var(--ink-muted); }
.comment-body {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 16px;
}
.comment-form {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 24px 26px 26px;
  border-radius: 2px;
}
.comment-form h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
}
.comment-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.comment-form label .muted {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 11px;
}
.comment-form input, .comment-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--surface);
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.comment-form .btn-submit {
  margin-top: 6px;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
}
.comment-form .btn-submit:hover { background: var(--accent-dark); }

@media (max-width: 720px) {
  .comments { padding: 0 22px; }
  .comment-fields { grid-template-columns: 1fr; }
  .comment-form { padding: 20px 20px 22px; }
}

.related {
  margin-top: 72px;
}
.related h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .story-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* Mobile nav: show toggle, hide menu until open */
  .primary-nav-inner {
    justify-content: flex-start;
    padding: 0 22px;
  }
  .nav-toggle { display: inline-flex; }

  .primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
    padding: 4px 0 14px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }
  .primary-nav.is-open .primary-menu { display: flex; }

  .primary-menu .menu-item { position: relative !important; width: 100%; }
  .primary-menu .menu-link {
    padding: 14px 22px;
    border-bottom: 1px solid var(--rule-soft);
    justify-content: space-between;
    width: 100%;
  }
  .primary-menu .menu-link:hover,
  .primary-menu .menu-item.is-active > .menu-link {
    border-bottom-color: var(--rule-soft);
  }

  /* Sub-dropdowns: static, hidden unless parent .is-open */
  .dropdown, .dropdown.mega {
    display: none;
    position: static !important;
    box-shadow: none;
    border: none;
    background: var(--bg-alt);
    padding: 6px 0 10px;
    min-width: 0;
    width: auto !important;
    transform: none !important;
    opacity: 1;
    visibility: visible;
  }
  .menu-item.is-open > .dropdown,
  .menu-item.is-open > .dropdown.mega { display: block; }

  /* Neutralize desktop hover-open */
  .menu-item:hover > .dropdown { display: none; }
  .menu-item.is-open:hover > .dropdown { display: block; }

  .dropdown li a { padding: 10px 38px; }
  .mega-inner {
    display: block;
    padding: 4px 22px;
  }
  .mega-col {
    border-bottom: 1px solid var(--rule-soft);
    padding: 10px 0;
  }
  .mega-col:last-child { border-bottom: none; padding-bottom: 6px; }
  .mega-col ul { padding: 0; }
  .mega-title { margin: 0 0 6px; padding-bottom: 4px; }
  .mega-col li a { padding: 8px 0; }
  .nav-search-btn { right: 22px; }
  .search-overlay-form { padding: 0 22px; }
  .search-overlay-results { padding: 0 22px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .topbar-inner { padding: 10px 22px; flex-direction: column; gap: 6px; }
  .masthead { padding: 26px 22px 20px; }
  .hero { padding: 32px 0 28px; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-secondary article { grid-template-columns: 100px 1fr; gap: 14px; }
  .hero-secondary img { width: 100px; height: 75px; }
  .two-col > div > .story-grid { grid-template-columns: 1fr !important; }
  .article-body {
    font-size: 17px;
    padding: 0 22px;
    line-height: 1.65;
  }
  .article-body .dropcap::first-letter { font-size: 56px; }
  .article-body blockquote { font-size: 20px; padding-left: 18px; }
  .article-body h2 { font-size: 26px; }
  .article-hero { padding: 32px 0 20px; }
  .article-feature .caption { padding: 0 22px; }
  .callout {
    padding: 32px 22px;
    margin: 56px 0 0;
  }
  .callout form { flex-direction: column; }
  footer.site-footer { padding: 40px 22px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom {
    padding: 20px 22px 0;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .section-head { margin: 48px 0 22px; }
}
@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}
