/* ==========================================================================
   WomenWelly — site stylesheet
   Editorial design system for an online-only women's health magazine.
   Sections: 1 tokens · 2 reset · 3 layout · 4 chrome · 5 cards · 6 blocks
             7 article · 8 category · 9 forms · 10 footer · 11 utilities
   ========================================================================== */

/* 1 ─ Design tokens ------------------------------------------------------- */
:root {
  /* Ink & paper */
  --ink:        #0b0b0c;
  --ink-2:      #3f3f46;
  --ink-3:      #71717a;
  --ink-4:      #a1a1aa;
  --paper:      #ffffff;
  --paper-2:    #faf8f5;
  --paper-3:    #f1eee8;
  --line:       #e5e1d9;
  --line-2:     #cfcabf;

  /* Brand */
  --brand:      #d81b60;
  --brand-dark: #a8134a;
  --brand-tint: #fdeef4;
  --lime:       #d9f26b;
  --lime-dark:  #b9d445;

  /* Category accent — overridden per section via [data-cat] */
  --cat:        var(--brand);
  --cat-tint:   var(--brand-tint);

  /* Type */
  --font-sans:  'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display:'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;

  /* Metrics */
  --maxw:       1280px;
  --gutter:     24px;
  --radius:     3px;
  --shadow:     0 1px 2px rgba(11,11,12,.06), 0 8px 24px -12px rgba(11,11,12,.18);

  color-scheme: light;
}

/* Per-category accent colours. Applied on <body data-cat="…"> or any wrapper. */
[data-cat="fitness"]      { --cat:#d81b60; --cat-tint:#fdeef4; }
[data-cat="health"]       { --cat:#0e7c7b; --cat-tint:#e6f4f4; }
[data-cat="food"]         { --cat:#c2410c; --cat-tint:#fdf0e8; }
[data-cat="beauty"]       { --cat:#7c3aed; --cat-tint:#f3edfe; }
[data-cat="weight-loss"]  { --cat:#1d4ed8; --cat-tint:#e8eefc; }
[data-cat="sex-and-love"] { --cat:#9d174d; --cat-tint:#fbebf1; }
[data-cat="life"]         { --cat:#4d7c0f; --cat-tint:#f0f6e6; }
[data-cat="mind"]         { --cat:#0369a1; --cat-tint:#e6f2f9; }
[data-cat="reviews"]      { --cat:#0f172a; --cat-tint:#eef1f5; }

/* 2 ─ Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.018em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* 3 ─ Layout -------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.wrap--narrow { max-width: 760px; }
.wrap--mid { max-width: 1020px; }
main { display: block; }
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }

/* 4 ─ Site chrome --------------------------------------------------------- */
.topbar {
  background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar__editions { display: flex; gap: 14px; align-items: center; color: #d4d4d8; }
.topbar__editions b { color: #fff; }
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar a { color: #d4d4d8; }
.topbar a:hover { color: #fff; }

.masthead { border-bottom: 1px solid var(--ink); background: var(--paper); }
.masthead__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 20px 0 18px;
}
.masthead__left { display: flex; gap: 6px; align-items: center; }
.masthead__right { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

.logo { display: inline-flex; align-items: baseline; gap: 0; justify-self: center; }
.logo__type {
  font-family: var(--font-display);
  font-weight: 900; font-size: clamp(30px, 5.4vw, 54px); line-height: .9;
  letter-spacing: -.035em; text-transform: uppercase;
}
.logo__type em { font-style: normal; color: var(--brand); }
.logo__dot { color: var(--brand); }
.logo--sm .logo__type { font-size: 24px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
}
.icon-btn:hover { background: var(--paper-3); }
.icon-btn svg { width: 20px; height: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand); border-color: var(--brand); }
.btn--brand { background: var(--brand); border-color: var(--brand); }
.btn--brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-dark); border-color: var(--lime-dark); }
.btn--sm { padding: 8px 14px; font-size: 11px; }
.btn--block { width: 100%; }

/* Primary nav */
.navbar { position: sticky; top: 0; z-index: 90; background: var(--paper); border-bottom: 1px solid var(--line); }
.navbar.is-stuck { box-shadow: 0 1px 0 var(--line), 0 6px 18px -12px rgba(0,0,0,.35); }
.navbar__inner { display: flex; align-items: center; gap: 8px; }
.navbar__compact-logo { display: none; margin-right: 12px; }
.navbar.is-stuck .navbar__compact-logo { display: block; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav > a {
  position: relative; padding: 14px 12px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; letter-spacing: .085em; text-transform: uppercase;
}
.nav > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 3px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .18s;
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a[aria-current="page"] { color: var(--brand); }
.navbar__cta { display: flex; align-items: center; gap: 8px; padding-left: 12px; }

/* Off-canvas drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(11,11,12,.45); z-index: 110;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.drawer-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(370px, 88vw); z-index: 120;
  background: var(--paper); transform: translateX(-100%); transition: transform .24s ease;
  overflow-y: auto; padding: 18px 26px 44px; box-shadow: var(--shadow);
}
.drawer[data-open="true"] { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.drawer__group { padding: 20px 0 4px; border-bottom: 1px solid var(--line); }
.drawer__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.drawer__group a { display: block; padding: 8px 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.drawer__group a:hover { color: var(--brand); }
.drawer__cta { padding-top: 22px; display: grid; gap: 10px; }

/* Search overlay */
.searchbar { display: none; border-bottom: 1px solid var(--line); background: var(--paper-2); padding: 18px 0; }
.searchbar[data-open="true"] { display: block; }
.searchbar form { display: flex; gap: 10px; }
.searchbar input {
  flex: 1; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: 16px; font-family: inherit; background: #fff;
}

/* 5 ─ Cards --------------------------------------------------------------- */
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cat); margin-bottom: 7px;
}
.eyebrow--rule { border-left: 3px solid var(--cat); padding-left: 8px; }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__art {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--paper-3); border-radius: var(--radius);
}
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__art img { transform: scale(1.035); }
.card__body { padding-top: 12px; min-width: 0; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.24; letter-spacing: -.015em; overflow-wrap: break-word; }
.card__dek, .block__sub, .cathead__desc { overflow-wrap: break-word; }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.card__dek { margin: 7px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.byline { margin-top: 9px; font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; font-weight: 600; }
.byline b { color: var(--ink-2); font-weight: 700; }

.card--lg .card__title { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.06; letter-spacing: -.028em; }
.card--lg .card__dek { font-size: 17px; margin-top: 12px; }
.card--md .card__title { font-size: 21px; }
.card--sm .card__title { font-size: 15px; }

/* Horizontal card (art left, text right) */
.card--row { flex-direction: row; gap: 16px; align-items: flex-start; }
.card--row .card__art { flex: 0 0 132px; aspect-ratio: 1 / 1; }
.card--row .card__body { padding-top: 0; flex: 1 1 auto; min-width: 0; }

/* Text-only list item */
.linklist { display: grid; }
.linklist li { list-style: none; padding: 14px 0; border-top: 1px solid var(--line); }
.linklist li:first-child { border-top: 0; padding-top: 0; }
.linklist .card__title { font-size: 16px; }

.badge {
  display: inline-block; padding: 3px 8px; background: var(--lime); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px;
}
.badge--ink { background: var(--ink); color: #fff; }
.badge--brand { background: var(--brand); color: #fff; }

/* 6 ─ Homepage / feed blocks --------------------------------------------- */
.block { padding: 40px 0; border-top: 1px solid var(--line); }
.block:first-of-type { border-top: 0; }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.block__head > div:first-child { flex: 1 1 auto; min-width: 0; }
.block__title {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 800;
  letter-spacing: -.025em; display: flex; align-items: center; gap: 14px;
}
.block__title::after { content: ""; flex: 1; height: 2px; background: var(--ink); min-width: 30px; }
.block__sub { margin: 8px 0 0; font-size: 15.5px; color: var(--ink-2); max-width: 62ch; }
.block__more { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid var(--cat); padding-bottom: 3px; }
.block__more:hover { color: var(--cat); }

/* stack — the hero */
.hero { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(0,1fr); gap: 34px; }
.hero__side { display: grid; align-content: start; }
.hero__side li { list-style: none; padding: 16px 0; border-top: 1px solid var(--line); }
.hero__side li:first-child { border-top: 0; padding-top: 0; }
.hero__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; padding-top: 30px; border-top: 2px solid var(--ink); }

/* 4-across */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

/* big-story — banded feature */
.bigstory { background: var(--cat-tint); border-radius: var(--radius); padding: 34px; }
.bigstory__inner { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 34px; align-items: center; }
.bigstory__kicker { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.028em; }
.bigstory__sub { margin: 10px 0 18px; font-size: 16px; color: var(--ink-2); max-width: 52ch; }

/* big-story-feed — feature + list */
.feed { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 36px; }
.feed__list li { list-style: none; padding: 15px 0; border-top: 1px solid var(--line); }
.feed__list li:first-child { border-top: 0; padding-top: 0; }

/* 3-column link columns */
.threecol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.threecol__col h3 {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px;
}

/* trending — most popular rail */
.trending { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trending li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; border-top: 2px solid var(--ink); }
.trending__num { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: .8; color: var(--brand); letter-spacing: -.05em; }

/* topic chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 7 ─ Article ------------------------------------------------------------- */
.breadcrumb { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); padding: 22px 0 0; }
.breadcrumb a:hover { color: var(--cat); }
.breadcrumb span { color: var(--ink-4); margin: 0 6px; }

.article__head { padding: 14px 0 26px; }
.article__title {
  font-family: var(--font-display); font-size: clamp(31px, 4.6vw, 54px); font-weight: 800;
  line-height: 1.04; letter-spacing: -.03em; margin-bottom: 16px; overflow-wrap: break-word;
}
.article__dek { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.42; color: var(--ink-2); font-family: var(--font-serif); }

.bylinebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 18px 0; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.bylinebar__who { display: flex; align-items: center; gap: 11px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--paper-3); flex: 0 0 auto; overflow: hidden; }
.bylinebar__name { font-size: 14px; font-weight: 700; }
.bylinebar__name a:hover { color: var(--cat); text-decoration: underline; }
.bylinebar__meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.bylinebar__actions { margin-left: auto; display: flex; gap: 8px; }
.reviewed { font-size: 12px; color: var(--ink-3); }
.reviewed b { color: var(--ink-2); }

.figure { margin: 26px 0; }
/* height:auto is required — without it the img height attribute wins over width:100%
   and the picture renders stretched. */
.figure img { width: 100%; height: auto; border-radius: var(--radius); }
.figure--hero img { height: clamp(240px, 34vw, 500px); object-fit: cover; }
.figure figcaption { margin-top: 9px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; }
.figure figcaption .credit { text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; color: var(--ink-4); white-space: nowrap; }

.keypoints { background: var(--cat-tint); border-left: 4px solid var(--cat); padding: 22px 26px; margin: 30px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.keypoints h2 { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 12px; }
.keypoints ul { padding-left: 20px; }
.keypoints li { margin-bottom: 8px; font-size: 15.5px; line-height: 1.5; }
.keypoints li:last-child { margin-bottom: 0; }

.toc { border: 1px solid var(--line); padding: 18px 22px; margin: 28px 0; border-radius: var(--radius); }
.toc h2 { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc li { list-style: none; padding: 5px 0; }
.toc a { font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.toc a:hover { color: var(--cat); border-color: var(--cat); }

.prose { font-family: var(--font-serif); font-size: 18.5px; line-height: 1.72; color: #1a1a1d; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.15em; }
.prose h2 {
  font-family: var(--font-sans); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800;
  letter-spacing: -.022em; margin: 1.9em 0 .55em; scroll-margin-top: 90px;
}
.prose h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 700; margin: 1.6em 0 .45em; }
.prose a { color: var(--cat); border-bottom: 1px solid currentColor; font-weight: 500; }
.prose a:hover { background: var(--cat-tint); }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--cat);
  font-family: var(--font-display); font-size: 24px; line-height: 1.32; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
}
.prose blockquote cite { display: block; margin-top: 12px; font-family: var(--font-sans); font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* Comparison tables inside article prose */
.prose .table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 14.5px; min-width: 560px; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.prose thead th { background: var(--paper-2); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody th { font-weight: 700; width: 30%; }
.prose td.is-yes { color: var(--cat); font-weight: 700; }

/* FAQ accordion — also the source of the page's FAQPage structured data */
.faq { margin: 34px 0; border-top: 2px solid var(--ink); }
.faq > h2 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); padding-top: 16px; margin-bottom: 6px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; position: relative;
  font-family: var(--font-sans); font-size: 16.5px; font-weight: 700; letter-spacing: -.012em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 21px; font-weight: 400; color: var(--cat); line-height: 1;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--cat); }
.faq__a { padding: 0 0 18px; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.faq__a p { margin: 0 0 .8em; }
.faq__a p:last-child { margin-bottom: 0; }

.experts { background: var(--paper-2); border: 1px solid var(--line); padding: 22px 26px; margin: 30px 0; border-radius: var(--radius); font-family: var(--font-sans); font-size: 15px; line-height: 1.6; }
.experts h2 { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 10px; }
.experts b { font-weight: 700; }

.inline-related { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 16px 0; margin: 32px 0; }
.inline-related h2 { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--cat); margin-bottom: 10px; }
.inline-related li { list-style: none; padding: 6px 0; }
.inline-related a { font-family: var(--font-sans); font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.inline-related a:hover { color: var(--cat); }

.disclosure { font-size: 12.5px; color: var(--ink-3); font-style: italic; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }

.authorcard { display: flex; gap: 18px; padding: 26px; background: var(--paper-2); border-radius: var(--radius); margin: 32px 0; }
.authorcard .avatar { width: 70px; height: 70px; }
.authorcard h2 { font-size: 18px; margin-bottom: 2px; }
.authorcard .role { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cat); font-weight: 700; margin-bottom: 10px; }
.authorcard p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.tagrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0; }
.tagrow__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* 8 ─ Category & listing pages ------------------------------------------- */
.cathead { padding: 40px 0 30px; border-bottom: 2px solid var(--ink); }
.cathead__name { font-family: var(--font-display); font-size: clamp(40px, 7vw, 82px); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; line-height: .92; color: var(--cat); }
.cathead__desc { margin: 14px 0 0; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 66ch; }
.cathead__subnav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; }
.cathead__subnav a { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.cathead__subnav a:hover { color: var(--cat); }

.pagehead { padding: 46px 0 22px; }
.pagehead h1 { font-family: var(--font-display); font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.032em; }
.pagehead p { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 68ch; }

.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 34px 0; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; border-radius: var(--radius);
}
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { opacity: .4; }

/* 9 ─ Forms, newsletter & membership ------------------------------------- */
.signup { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; }
.signup--lime { background: var(--lime); color: var(--ink); }
/* Container-driven, not viewport-driven: this block sits in a 1150px homepage
   wrap and a 630px article column. auto-fit stacks it whenever two 320px columns
   plus the gap will not fit, so the heading never gets squeezed to one word a line. */
.signup__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 30px 34px;
  align-items: center;
}
.signup__kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 10px; }
.signup h2 { font-family: var(--font-display); font-size: clamp(26px, 3.3vw, 40px); font-weight: 800; letter-spacing: -.028em; }
.signup p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.55; opacity: .85; max-width: 52ch; }

.form { display: grid; gap: 10px; }
.form__row { display: flex; gap: 10px; }
.form__row .field { flex: 1; }
.field {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.field::placeholder { color: var(--ink-4); }
.field:focus { border-color: var(--brand); }
.form__note { font-size: 12px; line-height: 1.5; opacity: .7; margin: 2px 0 0; max-width: 60ch; }
.form__note a { text-decoration: underline; }
.form__msg {
  display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.5;
  background: var(--lime); color: var(--ink); font-weight: 600;
}
.form__msg[data-state="ok"], .form__msg[data-state="error"] { display: block; }
.form__msg[data-state="error"] { background: #fee2e2; color: #7f1d1d; }
.signup--lime .form__msg[data-state="ok"] { background: var(--ink); color: #fff; }
.form label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.perk { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.perk__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--cat-tint); color: var(--cat); margin-bottom: 14px; }
.perk__icon svg { width: 21px; height: 21px; }
.perk h3 { font-size: 17px; margin-bottom: 8px; }
.perk p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--paper); padding: 26px 22px; }
.fact__num { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1; }
.fact__label { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* 10 ─ Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: #d4d4d8; margin-top: 60px; padding: 52px 0 34px; font-size: 14px; }
.footer__top { display: grid; grid-template-columns: minmax(0,1.3fr) repeat(4, minmax(0,1fr)); gap: 34px; padding-bottom: 38px; border-bottom: 1px solid #27272a; }
.footer__brand .logo__type { color: #fff; font-size: 34px; }
.footer__brand p { margin: 14px 0 18px; line-height: 1.6; max-width: 34ch; color: #a1a1aa; }
.footer__col h3 { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__col li { list-style: none; padding: 5px 0; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #3f3f46; border-radius: 50%; }
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.social svg { width: 16px; height: 16px; }
.footer__legal { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; font-size: 12px; color: #a1a1aa; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer__legal a:hover { color: #fff; }
.footer__disclaimer { margin: 20px 0 0; font-size: 12px; line-height: 1.6; color: #8b8b93; max-width: 92ch; }

/* 11 ─ Utilities ---------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack-gap > * + * { margin-top: 16px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.rule { height: 2px; background: var(--ink); margin: 0; border: 0; }
.mt-0 { margin-top: 0; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }

/* Search results (client-side) */
.results { display: grid; gap: 0; }
.results li { list-style: none; padding: 20px 0; border-top: 1px solid var(--line); }
.results__empty { padding: 30px 0; color: var(--ink-3); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 24px 22px; }
  .trending { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero__side { border-top: 2px solid var(--ink); padding-top: 20px; }
  .hero__side li:first-child { padding-top: 16px; border-top: 0; }
  .hero__strip { grid-template-columns: 1fr; gap: 20px; }
  .hero__strip .card { flex-direction: row; gap: 16px; }
  .hero__strip .card__art { flex: 0 0 132px; aspect-ratio: 1/1; }
  .hero__strip .card__body { padding-top: 0; }
  .feed { grid-template-columns: 1fr; gap: 26px; }
  .bigstory__inner { grid-template-columns: 1fr; gap: 24px; }
  .threecol { grid-template-columns: 1fr; gap: 26px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: 1fr; }
  .signup { padding: 30px 24px; }
  .navbar__cta .btn--ghost { display: none; }
}
@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .topbar__editions { display: none; }
  .masthead__inner { grid-template-columns: auto 1fr auto; padding: 14px 0 12px; gap: 8px; }
  .masthead__left [data-search-toggle] { display: none; }
  .logo__type { font-size: clamp(21px, 6vw, 30px); }
  .masthead__right .btn--sm { padding: 8px 13px; font-size: 10.5px; }
  .logo { justify-self: center; }
  .masthead__right .btn--ghost { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 22px; }
  .grid-4 .card, .grid-3 .card { flex-direction: row; gap: 14px; }
  .grid-4 .card__art, .grid-3 .card__art { flex: 0 0 118px; aspect-ratio: 1/1; }
  .grid-4 .card__body, .grid-3 .card__body { padding-top: 0; }
  .grid-4 .card__dek, .grid-3 .card__dek { display: none; }
  .trending { grid-template-columns: 1fr; gap: 14px; }
  .authorcard { flex-direction: column; gap: 14px; }
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .bylinebar__actions { margin-left: 0; width: 100%; }
  .prose { font-size: 17.5px; }
  .article__title { font-size: clamp(28px, 8vw, 38px); }
  .form__row { flex-direction: column; }
}
@media print {
  .topbar, .navbar, .masthead__left, .masthead__right, .footer, .signup, .inline-related, .drawer, .drawer-backdrop { display: none !important; }
  .prose { font-size: 12pt; }
}
