/* ==========================================================================
   PAIRLY
   Editorial design system. Hand-written, no framework.

   The look is built from four devices, used consistently:
     1. A cream ground with white surfaces separated by hairlines, not shadows.
     2. Playfair Display set large and tight against generously-leaded Inter.
     3. A tracked uppercase "eyebrow" label above most headings.
     4. One accent (wine) used sparingly, so it still means something.

   Sections below: tokens, reset, typography, layout, header, buttons, hero,
   cards, homepage, category, article, prose, quiz, forms, newsletter, ads,
   consent, footer, 404, motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette. Wine is the brand; blush is an accent only. The cream and
     charcoal ground is what keeps this reading as editorial, not adult. */
  --wine:        #6E2639;
  --wine-deep:   #4A1926;
  --wine-soft:   #8C3B4E;
  --rose:        #B4566B;
  --blush:       #F3DFE2;
  --blush-soft:  #FAEEF0;
  --cream:       #FBF7F3;
  --cream-deep:  #F4ECE4;
  --sand:        #E4D8CE;
  --sand-soft:   #EFE7DF;
  --ink:         #1C1A1B;
  --ink-mid:     #3D3739;
  --ink-soft:    #5A5356;
  --ink-faint:   #857D80;
  --white:       #FFFFFF;

  --surface:      var(--white);
  --ground:       var(--cream);
  --border:       var(--sand);
  --border-faint: #EDE4DB;

  /* Type */
  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.55rem, 1.55rem + 4.3vw, 4.5rem);
  --fs-h1:      clamp(2.05rem, 1.5rem + 2.5vw, 3.3rem);
  --fs-h2:      clamp(1.6rem, 1.32rem + 1.3vw, 2.2rem);
  --fs-h3:      clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-h4:      clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  --fs-body:    clamp(1.0325rem, 1rem + 0.16vw, 1.1125rem);
  --fs-lede:    clamp(1.14rem, 1.06rem + 0.42vw, 1.34rem);
  --fs-small:   0.9125rem;
  --fs-tiny:    0.78rem;

  /* Spacing */
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;     --s7: 3rem;     --s8: 4rem;
  --s9: 6rem;     --s10: 8rem;

  --section-y: clamp(3.25rem, 2rem + 5vw, 6rem);

  /* Shape */
  --r-sm: 4px;  --r-md: 10px;  --r-lg: 16px;  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 26, 27, 0.04);
  --shadow-md: 0 4px 16px -6px rgba(28, 26, 27, 0.10);
  --shadow-lg: 0 18px 48px -22px rgba(74, 25, 38, 0.28);

  --container: 1200px;
  --measure: 68ch;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --t-fast: 140ms var(--ease);
  --t-mid:  240ms var(--ease);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; }

a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--wine-deep); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s6) 0; }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--blush); color: var(--wine-deep); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: var(--s4); z-index: 200;
  background: var(--wine); color: var(--white);
  padding: var(--s3) var(--s5); border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }

.display {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* The tracked label that sits above most headings. Used everywhere, which is
   what makes it read as a system rather than decoration. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow--plain::before { display: none; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.5rem + 2.6vw, 2.5rem);
}
.container--narrow { max-width: 820px; }
.container--prose  { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--cream { background: var(--cream-deep); }
.section--white { background: var(--surface); }
.section--ink   { background: var(--wine-deep); color: var(--blush-soft); }

/* Section heading with a rule that fills the remaining width. */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s6);
}
.section-head__text { max-width: 46rem; }
.section-head__text p { color: var(--ink-soft); margin-top: var(--s3); }
.section-head__link {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.section-head__link:hover { text-decoration: underline; }

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.grid { display: grid; gap: var(--s5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--s3); }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 243, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid), background var(--t-mid);
}
.header[data-scrolled='true'] {
  border-bottom-color: var(--border);
  background: rgba(251, 247, 243, 0.96);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--wine-deep);
  text-decoration: none;
  line-height: 1;
  flex: none;
}
.logo:hover { color: var(--wine); }
.logo__dot { color: var(--rose); }

.nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.6rem); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  list-style: none;
  margin: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 1.5px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav__link:hover { color: var(--wine); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--wine); font-weight: 600; }

.header__cta { flex: none; }

/* Mobile drawer */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--ink);
}
.nav-toggle:hover { background: var(--cream-deep); }
.nav-toggle__bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0; height: 1.5px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-fast);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6.25px; }
.nav-toggle__bars span:nth-child(3) { top: 12.5px; }
[data-nav-open='true'] .nav-toggle__bars span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
[data-nav-open='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
[data-nav-open='true'] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(28, 26, 27, 0.42);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-mid), visibility var(--t-mid);
}

/* On desktop the shell is inert. On mobile it becomes a viewport-sized
   clipping box for the drawer -- see the note in header.html. */
.nav-shell { display: contents; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-shell {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }
  [data-nav-open='true'] .nav-shell { visibility: visible; pointer-events: auto; }

  .nav {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(21rem, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5.5rem var(--s5) var(--s6);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--t-mid);
    overflow-y: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: var(--s4) 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border-faint);
  }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: var(--s5); width: 100%; }

  [data-nav-open='true'] .nav { transform: translateX(0); }
  [data-nav-open='true'] .nav-scrim { opacity: 1; visibility: visible; }
  [data-nav-open='true'] { overflow: hidden; }
  .header__cta--desktop { display: none; }
}

@media (min-width: 901px) {
  .nav .btn { display: none; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(74, 25, 38, 0.2);
}
.btn--primary:hover {
  background: var(--wine-deep);
  color: var(--white);
  box-shadow: 0 6px 18px -8px rgba(74, 25, 38, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--wine-deep);
  border-color: var(--sand);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--wine);
  color: var(--wine-deep);
}

.btn--light {
  background: var(--white);
  color: var(--wine-deep);
}
.btn--light:hover { background: var(--blush-soft); color: var(--wine-deep); }

.btn--outline-light {
  background: transparent;
  color: var(--blush-soft);
  border-color: rgba(243, 223, 226, 0.4);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(243, 223, 226, 0.75);
}

.btn--lg { min-height: 54px; padding: 0.9rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Quiet text link with arrow. min-height keeps it a comfortable touch target
   without changing how it looks. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.arrow-link span { transition: transform var(--t-fast); }
.arrow-link:hover span { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Media
   -------------------------------------------------------------------------- */

.media { display: block; overflow: hidden; background: var(--cream-deep); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Shown until Stage 4 downloads real photography, and as a safety net if an
   image key is ever wrong. Tinted rather than grey so nothing looks broken. */
.media--placeholder {
  width: 100%;
  background:
    radial-gradient(120% 90% at 18% 12%, var(--blush) 0%, transparent 58%),
    radial-gradient(100% 80% at 88% 88%, var(--sand-soft) 0%, transparent 60%),
    linear-gradient(140deg, var(--blush-soft) 0%, var(--cream-deep) 55%, var(--sand-soft) 100%);
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid);
}

/* Stretched link: the title anchor covers the whole card, so the tap target is
   the card rather than one line of text, and the article has a single link
   instead of a duplicate one on the image. */
.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card:focus-within {
  border-color: var(--wine);
  box-shadow: 0 0 0 2px var(--wine);
}
.card:hover {
  border-color: var(--sand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__media { position: relative; }
.card__media .media { aspect-ratio: 3 / 2; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s5); gap: var(--s3); }
.card__title { font-size: var(--fs-h3); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--wine); }
.card__excerpt { color: var(--ink-soft); font-size: var(--fs-small); flex: 1; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); margin-top: var(--s2);
}

.tag {
  display: inline-block;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
}
a.tag:hover { color: var(--wine); }

.meta {
  font-size: var(--fs-tiny);
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.meta__sep { margin-inline: 0.45rem; opacity: 0.5; }

/* Value proposition card (homepage) */
.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s6) var(--s5) var(--s5);
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  border-top: 3px solid var(--wine);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar__icon { color: var(--wine); }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: var(--fs-h3); }
.pillar p { color: var(--ink-soft); font-size: var(--fs-small); flex: 1; }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border-faint);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.hero__copy { max-width: 34rem; }
.hero__title { margin-bottom: var(--s5); }
.hero__title em {
  font-style: italic;
  color: var(--wine);
}
.hero__lede { margin-bottom: var(--s6); }
.hero__actions { margin-bottom: var(--s6); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--border-faint);
  font-size: var(--fs-tiny);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.hero__trust li { display: flex; align-items: center; gap: 0.45rem; list-style: none; }
.hero__trust svg { width: 14px; height: 14px; color: var(--rose); flex: none; }

.hero__media { position: relative; }
.hero__media .media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
/* Offset frame behind the hero image -- a small editorial flourish. */
.hero__media::before {
  content: '';
  position: absolute;
  inset: auto -1.1rem -1.1rem auto;
  width: 62%; height: 58%;
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s6); }
  .hero__copy { max-width: none; order: 1; }
  .hero__media { order: 2; }
  .hero__media .media { aspect-ratio: 3 / 2; }
  .hero__media::before { display: none; }
}

/* --------------------------------------------------------------------------
   10. Homepage: featured quiz + editorial list
   -------------------------------------------------------------------------- */

.quiz-promo {
  position: relative;
  overflow: hidden;
  background: var(--wine-deep);
  color: var(--blush-soft);
  border-radius: var(--r-lg);
}
.quiz-promo::before,
.quiz-promo::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.quiz-promo::before {
  width: 26rem; height: 26rem;
  top: -12rem; right: -8rem;
  background: radial-gradient(circle, rgba(180, 86, 107, 0.42) 0%, transparent 68%);
}
.quiz-promo::after {
  width: 20rem; height: 20rem;
  bottom: -10rem; left: -6rem;
  background: radial-gradient(circle, rgba(243, 223, 226, 0.13) 0%, transparent 66%);
}
.quiz-promo__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
}
.quiz-promo .eyebrow { color: var(--blush); }
.quiz-promo h2 { color: var(--white); margin-bottom: var(--s4); }
.quiz-promo p { color: rgba(243, 223, 226, 0.86); margin-bottom: var(--s5); }
.quiz-promo__note {
  margin-top: var(--s5);
  font-size: var(--fs-tiny);
  color: rgba(243, 223, 226, 0.62);
  max-width: 34rem;
}
.quiz-promo__types { display: grid; gap: var(--s2); }
.quiz-promo__type {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(243, 223, 226, 0.14);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  color: var(--blush-soft);
}
.quiz-promo__type b {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 860px) {
  .quiz-promo__inner { grid-template-columns: 1fr; }
}

/* Numbered editorial list */
.ed-list { list-style: none; display: grid; gap: 0; }
.ed-list__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s5);
  align-items: baseline;
  padding: var(--s5) 0;
  border-top: 1px solid var(--border);
}
/* Whole row is the tap target -- see the note on .card__title a::after. */
.ed-list__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ed-list__item:last-child { border-bottom: 1px solid var(--border); }
.ed-list__num {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--sand);
  min-width: 2.2rem;
  transition: color var(--t-fast);
}
.ed-list__item:hover .ed-list__num { color: var(--rose); }
.ed-list__title { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.ed-list__title a { color: inherit; text-decoration: none; }
.ed-list__title a:hover { color: var(--wine); }
.ed-list__excerpt { color: var(--ink-soft); font-size: var(--fs-small); }

/* Category highlight strip */
.cat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 13rem;
  padding: var(--s5);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  isolation: isolate;
}
.cat-tile .media { position: absolute; inset: 0; z-index: -2; }
/* The scrim has to hold up over bright, busy and dark photos alike, so it is
   deliberately heavy at the base where the text sits. */
.cat-tile::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(28, 10, 16, 0.94) 0%,
    rgba(28, 10, 16, 0.80) 34%,
    rgba(28, 10, 16, 0.42) 68%,
    rgba(28, 10, 16, 0.26) 100%);
  transition: opacity var(--t-mid);
}
.cat-tile:hover::after { opacity: 0.86; }
.cat-tile h3 { color: var(--white); font-size: var(--fs-h3); }
.cat-tile p {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-small);
  line-height: 1.5;
  margin-top: 0.35rem;
}
.cat-tile__count {
  font-size: var(--fs-tiny);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: var(--s2);
}

@media (max-width: 900px) { .cat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-strip { grid-template-columns: 1fr; } }

/* Safety callout band */
.safety-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s5);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--blush-soft);
  border: 1px solid var(--blush);
  border-radius: var(--r-lg);
}
.safety-band__icon { color: var(--wine); flex: none; }
.safety-band__icon svg { width: 34px; height: 34px; }
.safety-band h3 { margin-bottom: 0.25rem; }
.safety-band p { color: var(--ink-soft); font-size: var(--fs-small); max-width: 46rem; }

@media (max-width: 760px) {
  .safety-band { grid-template-columns: 1fr; text-align: left; }
}

/* --------------------------------------------------------------------------
   11. Category hub
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border-faint);
  padding-block: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
}
.page-head__inner { max-width: 46rem; }
.page-head h1 { margin-bottom: var(--s4); }
.page-head .lede { font-size: var(--fs-lede); }

.subcats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
  list-style: none;
}
.subcats li {
  padding: 0.4rem 0.9rem;
  background: var(--cream-deep);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-pill);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.cat-intro { max-width: var(--measure); }
.cat-intro p { color: var(--ink-soft); }
.cat-intro p + p { margin-top: var(--s4); }

/* --------------------------------------------------------------------------
   12. Breadcrumbs
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  font-size: var(--fs-tiny);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--wine); text-decoration: underline; }
.crumbs li::after { content: '/'; margin-left: 0.45rem; opacity: 0.45; }
.crumbs li:last-child::after { display: none; }
.crumbs li[aria-current] { color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   13. Article
   -------------------------------------------------------------------------- */

.article-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border-faint);
  padding-block: var(--s6) var(--s7);
}
.article-head__inner { max-width: 780px; }
.article-head .crumbs { margin-bottom: var(--s5); }
.article-head h1 { margin: var(--s3) 0 var(--s5); }
.article-head .lede { margin-bottom: var(--s5); }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem var(--s3);
  padding-top: var(--s4);
  border-top: 1px solid var(--border-faint);
  font-size: var(--fs-tiny);
  color: var(--ink-faint);
}
.byline__author { color: var(--ink-mid); font-weight: 600; }

.article-hero {
  margin-block: 0;
  background: var(--surface);
}
.article-hero .media {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.article-hero figcaption {
  margin-top: var(--s3);
  font-size: var(--fs-tiny);
  color: var(--ink-faint);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  padding-block: var(--s7);
}
.article-main { min-width: 0; max-width: 760px; }
.article-aside {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: var(--s5);
}

@media (max-width: 1040px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; max-width: 760px; }
}

.aside-card {
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
}
.aside-card h4 { margin-bottom: var(--s3); }
.aside-card p { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--s4); }
.aside-list { list-style: none; display: grid; gap: var(--s3); }
.aside-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-mid);
  text-decoration: none;
  padding: var(--s2) 0 var(--s2) var(--s4);
  border-left: 2px solid var(--sand);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.aside-list a:hover { color: var(--wine); border-left-color: var(--wine); }

/* --------------------------------------------------------------------------
   14. Prose
   -------------------------------------------------------------------------- */

.prose { font-size: var(--fs-body); line-height: 1.78; color: var(--ink-mid); }
.prose > * + * { margin-top: var(--s5); }

.prose h2 {
  margin-top: var(--s8);
  margin-bottom: var(--s2);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  color: var(--ink);
}
.prose h3 {
  margin-top: var(--s6);
  margin-bottom: var(--s2);
  color: var(--ink);
}
.prose h2 + *, .prose h3 + * { margin-top: var(--s3); }

.prose p { text-wrap: pretty; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }

.prose a { color: var(--wine); text-decoration: underline; text-decoration-color: var(--sand); }
.prose a:hover { text-decoration-color: var(--wine); }

.prose ul, .prose ol { padding-left: var(--s5); display: grid; gap: var(--s3); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: var(--s5); }
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0.35rem; top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rose);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--rose); font-weight: 600; }
.prose li > ul, .prose li > ol { margin-top: var(--s3); }

.prose blockquote {
  margin-block: var(--s6);
  padding: var(--s2) 0 var(--s2) var(--s5);
  border-left: 2px solid var(--wine);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--wine-deep);
}
.prose blockquote p + p { margin-top: var(--s3); }

.prose img, .prose picture { border-radius: var(--r-md); margin-block: var(--s6); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  margin-block: var(--s5);
}
.prose th, .prose td {
  padding: var(--s3) var(--s4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose th {
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-deep);
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.table-scroll { overflow-x: auto; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--cream-deep);
  padding: 0.12em 0.36em;
  border-radius: var(--r-sm);
}

/* Drop cap on the opening paragraph -- a classic magazine signal. */
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.35em;
  line-height: 0.82;
  font-weight: 600;
  color: var(--wine);
  padding-right: 0.09em;
  margin-top: 0.06em;
}

/* Callouts, produced by the ::: syntax in build.py */
.callout {
  margin-block: var(--s6);
  padding: var(--s5);
  border-radius: var(--r-md);
  background: var(--cream-deep);
  border: 1px solid var(--border-faint);
  border-left: 3px solid var(--rose);
  font-size: var(--fs-small);
}
.callout > * + * { margin-top: var(--s3); }
.callout__title {
  font-family: var(--sans);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--wine);
}
.callout ul, .callout ol { display: grid; gap: var(--s2); }
.callout--takeaway { background: var(--blush-soft); border-left-color: var(--wine); border-color: var(--blush); }
.callout--caution  { background: #FDF6EC; border-left-color: #C07A24; border-color: #F1E2CA; }
.callout--caution .callout__title { color: #945C15; }
.callout--tip      { border-left-color: var(--rose); }
.callout--example  { background: var(--surface); border-left-color: var(--sand); }
.callout--example .callout__title { color: var(--ink-soft); }

/* Article footer blocks */
.article-foot {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); }
.share-row__label {
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0.4rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-small);
  color: var(--ink-mid);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.share-btn:hover { border-color: var(--wine); color: var(--wine); }
.share-btn svg { width: 15px; height: 15px; }

.inline-quiz {
  display: grid;
  gap: var(--s4);
  margin-block: var(--s7);
  padding: var(--s6);
  background: var(--blush-soft);
  border: 1px solid var(--blush);
  border-radius: var(--r-lg);
}
.inline-quiz h3 { font-size: var(--fs-h3); }
.inline-quiz p { font-size: var(--fs-small); color: var(--ink-soft); }
.inline-quiz .btn { justify-self: start; }

/* --------------------------------------------------------------------------
   14b. Quiz
   -------------------------------------------------------------------------- */

.quiz-intro, .quiz-run, .quiz-result { padding-block: var(--s7) var(--s8); }
.quiz-intro h1 { margin-bottom: var(--s4); }

.quiz-progress { margin-bottom: var(--s6); }
.quiz-progress__bar {
  height: 4px;
  background: var(--sand-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.quiz-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--wine);
  border-radius: var(--r-pill);
  transition: width 320ms var(--ease);
}
.quiz-progress__label {
  margin-top: var(--s3);
  font-size: var(--fs-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.quiz-progress__label b { color: var(--wine); font-weight: 600; }

.quiz-q { border: 0; padding: 0; margin: 0 0 var(--s6); }
.quiz-q__text {
  display: block;
  padding: 0;
  margin-bottom: var(--s5);
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.quiz-q__text:focus { outline: none; }

.quiz-options { display: grid; gap: var(--s3); }

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  min-height: 56px;
  padding: var(--s4) var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast),
              box-shadow var(--t-fast);
}
.quiz-option:hover { border-color: var(--rose); background: var(--blush-soft); }
.quiz-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz-option:focus-within {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
.quiz-option__marker {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 0.18em;
  border: 2px solid var(--sand);
  border-radius: 50%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.quiz-option__text { font-size: var(--fs-small); line-height: 1.55; }
.quiz-option.is-selected {
  border-color: var(--wine);
  background: var(--blush-soft);
  box-shadow: 0 0 0 1px var(--wine);
}
.quiz-option.is-selected .quiz-option__marker {
  border-color: var(--wine);
  box-shadow: inset 0 0 0 4px var(--wine);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.quiz-nav .btn { min-width: 8.5rem; }
.quiz-nav .btn:disabled { opacity: 0.4; cursor: not-allowed; }

.quiz-result__title { margin-bottom: var(--s4); }
.quiz-result__title:focus { outline: none; }

.quiz-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-block: var(--s6);
}
.quiz-result__panel {
  padding: var(--s5);
  background: var(--blush-soft);
  border: 1px solid var(--blush);
  border-radius: var(--r-lg);
}
.quiz-result__panel--muted { background: var(--cream-deep); border-color: var(--border-faint); }
.quiz-result__panel h2 {
  font-family: var(--sans);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--s3);
}
.quiz-result__panel--muted h2 { color: var(--ink-soft); }
.quiz-result__panel ul { list-style: none; display: grid; gap: var(--s2); }
.quiz-result__panel li {
  position: relative;
  padding-left: var(--s5);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.quiz-result__panel li::before {
  content: '';
  position: absolute; left: 0.35rem; top: 0.66em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--rose);
}
.quiz-result__panel--muted li::before { background: var(--ink-faint); }

@media (max-width: 700px) { .quiz-result__grid { grid-template-columns: 1fr; } }

.quiz-result__tips { margin-block: var(--s6); }
.quiz-result__tips h2, .quiz-result__reading h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s4);
}
.quiz-result__tips ol { padding-left: var(--s5); display: grid; gap: var(--s3); }
.quiz-result__tips li { font-size: var(--fs-small); line-height: 1.65; }
.quiz-result__tips li::marker { color: var(--rose); font-weight: 600; }

.quiz-result__reading { margin-block: var(--s7); }
.quiz-recs { display: grid; gap: var(--s3); }
.quiz-rec {
  display: grid;
  gap: 0.3rem;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
              transform var(--t-fast);
}
.quiz-rec:hover {
  border-color: var(--sand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.quiz-rec__title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.quiz-rec:hover .quiz-rec__title { color: var(--wine); }
.quiz-rec__excerpt { font-size: var(--fs-small); color: var(--ink-soft); }

.quiz-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.quiz-result__note {
  margin-top: var(--s5);
  font-size: var(--fs-tiny);
  color: var(--ink-faint);
  max-width: 44rem;
}

/* --------------------------------------------------------------------------
   15. Newsletter
   -------------------------------------------------------------------------- */

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.newsletter h2 { margin-bottom: var(--s3); }
.newsletter p { color: var(--ink-soft); }
.newsletter__note { font-size: var(--fs-tiny); color: var(--ink-faint); margin-top: var(--s3); }

@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: var(--s4); }
.form__row { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field > label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-mid);
}
.field__hint { font-size: var(--fs-tiny); color: var(--ink-faint); }

.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 1rem;
  background: var(--surface);
  border: 1px solid var(--sand);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(110, 38, 57, 0.11);
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235A5356' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.field[data-invalid='true'] .input,
.field[data-invalid='true'] .textarea,
.field[data-invalid='true'] .select { border-color: #B3261E; }
.field__error { font-size: var(--fs-tiny); color: #B3261E; }

/* Honeypot: hidden from people, visible to naive bots. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__status {
  padding: var(--s4);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
}
.form__status[data-state='success'] { background: #EAF4EC; border: 1px solid #BEDCC5; color: #1F5130; }
.form__status[data-state='error']   { background: #FBEDEC; border: 1px solid #EBC6C3; color: #8C2119; }
.form__status[hidden] { display: none; }

/* Inline newsletter form */
.subscribe { display: flex; gap: var(--s2); }
.subscribe .input { flex: 1; min-width: 0; border-radius: var(--r-pill); padding-inline: 1.25rem; }
.subscribe .btn { flex: none; }
@media (max-width: 480px) {
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   17. Advertisement slots
   -------------------------------------------------------------------------- */

/* Ads must be unmistakably separate from editorial content: a labelled,
   tinted, hairline-bounded block. Height is reserved so enabling a slot
   never shifts the layout. */
.adslot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  margin-block: var(--s6);
  padding: var(--s3);
  background: var(--cream-deep);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-md);
}
.adslot__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.adslot__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ad-w, 100%);
  max-width: 100%;
  min-height: var(--ad-h, 90px);
  overflow: hidden;
}
.adslot--sidebar { margin-block: 0; }

/* Below the desktop breakpoint each slot switches to its mobile dimensions.
   A slot configured with mobile_width 0 is hidden outright rather than
   squeezed, so ads never crowd a small screen. */
@media (max-width: 780px) {
  .adslot__frame { width: var(--ad-mw, 300px); min-height: var(--ad-mh, 250px); }
  .adslot[style*='--ad-mw:0px'] { display: none; }
}

/* --------------------------------------------------------------------------
   18. Cookie consent
   -------------------------------------------------------------------------- */

.consent {
  position: fixed;
  left: var(--s4); right: var(--s4); bottom: var(--s4);
  z-index: 150;
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform 320ms var(--ease);
}
.consent[data-visible='true'] { transform: translateY(0); }
.consent h2 { font-size: 1.1rem; margin-bottom: var(--s2); }
.consent p { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--s4); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.consent__actions .btn { flex: 1 1 auto; min-height: 44px; }
.consent__prefs { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.consent__prefs[hidden] { display: none; }
.consent__pref {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3);
  background: var(--cream-deep);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
}
.consent__pref input { margin-top: 0.3rem; accent-color: var(--wine); width: 18px; height: 18px; flex: none; }
.consent__pref b { display: block; font-weight: 600; }
.consent__pref span { font-size: var(--fs-tiny); color: var(--ink-soft); }
.consent__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  font-size: var(--fs-tiny);
  color: var(--ink-soft);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--wine-deep);
  color: rgba(243, 223, 226, 0.78);
  padding-block: var(--s8) var(--s5);
  font-size: var(--fs-small);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s6) var(--s5);
  padding-bottom: var(--s7);
  border-bottom: 1px solid rgba(243, 223, 226, 0.16);
}
.footer__brand .logo { color: var(--white); font-size: 1.5rem; }
.footer__brand .logo:hover { color: var(--blush); }
.footer__tagline {
  margin-top: var(--s3);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blush);
}
.footer__blurb { margin-top: var(--s4); max-width: 26rem; font-size: var(--fs-small); }

.footer h2 {
  font-family: var(--sans);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: var(--s4);
}
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer a { color: rgba(243, 223, 226, 0.78); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s5);
  font-size: var(--fs-tiny);
  color: rgba(243, 223, 226, 0.58);
}
.footer__disclaimer { max-width: 44rem; line-height: 1.6; }

@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: var(--s6); } }

/* --------------------------------------------------------------------------
   20. 404
   -------------------------------------------------------------------------- */

.notfound { text-align: center; padding-block: clamp(3.5rem, 2rem + 8vw, 8rem); }
.notfound__code {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 3rem + 12vw, 10rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--blush);
  margin-bottom: var(--s4);
}
.notfound h1 { margin-bottom: var(--s4); }
.notfound .lede { max-width: 34rem; margin-inline: auto; margin-bottom: var(--s6); }
.notfound .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   21. Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
