/* Reel Matchup — retro-modern, mint & teal, serif throughout */

:root {
  --mint: #e6f2ea;
  --mint-tint: #d4e9dc;
  --mint-deep: #c3ddce;
  --sage: #8fcdb4;
  --teal: #0d5247;
  --teal-deep: #08372f;
  --cream: #f6efdd;
  --ink: #1b2420;
  --ink-soft: #3d4b45;
  --paper: #fbfdf9;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;

  --measure: 66ch;
  --radius: 10px;
  --rule: 2px dashed rgba(13, 82, 71, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mint);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;

  & .accent { color: var(--teal); }
}

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }

p, li { max-width: var(--measure); }

a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.prose {
  & p + p { margin-top: var(--s-2); }
  & h2 { margin: var(--s-5) 0 var(--s-2); }
  & h3 { margin: var(--s-4) 0 var(--s-1); }
  & ul, & ol { margin: var(--s-2) 0 var(--s-2) 1.4rem; }
  & li + li { margin-top: 0.4rem; }
}

/* small-caps section labels (wildcard: all section labels in small caps) */
.label {
  display: block;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: var(--s-1);

  &::before {
    content: attr(data-suit) " ";
    letter-spacing: 0;
  }
}

/* underline-style text CTAs (seed: no buttons) */
.cta {
  display: inline-block;
  font-weight: 900;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 5px;

  &:hover { color: var(--teal-deep); }
}

.cta--big { font-size: 1.15rem; }

.cta--quiet {
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  color: var(--ink-soft);
}

/* badges: leading dot, stamp-flavoured */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.65rem 0.2rem;
  background: var(--mint-tint);
  border: 1px solid rgba(13, 82, 71, 0.25);
  border-radius: 999px;
  color: var(--teal-deep);
  white-space: nowrap;

  &::before {
    content: "●";
    font-size: 0.55em;
    vertical-align: 0.25em;
    margin-right: 0.45em;
    color: var(--teal);
  }
}

/* dashed rules as recurring divider motif */
.rule {
  border: none;
  border-top: var(--rule);
  margin: var(--s-6) 0;
}

/* ---------- age notice bar ---------- */
.age-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--mint);
  font-size: 0.82rem;
  padding: 0.4rem 0;
  text-align: center;

  & p { max-width: none; }

  & strong { color: var(--sage); }

  & a {
    color: var(--sage);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
  }
}

/* ---------- header band (two-tone split) ---------- */
.site-head {
  background: var(--teal-deep);
  color: var(--mint);
  padding: var(--s-3) 0;

  & .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-4);
    justify-content: space-between;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--mint);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;

  & svg { width: 38px; height: 38px; flex: none; }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.95rem;

  & a {
    color: var(--sage);
    font-weight: 700;

    &:hover, &[aria-current="page"] { color: var(--cream); }
  }
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(rgba(8, 55, 47, 0.82), rgba(8, 55, 47, 0.82)),
    url("/images/hero-collage.jpg") center / cover no-repeat var(--teal-deep);
  color: var(--mint);
  padding: var(--s-6) 0;

  & h1 {
    max-width: 21ch;
    color: var(--cream);
    margin-bottom: var(--s-3);

    & .accent { color: var(--sage); }
  }

  & .hero-copy {
    max-width: 58ch;
    font-size: 1.14rem;

    & a { color: var(--sage); }
  }

  & .hero-note {
    margin-top: var(--s-4);
    font-size: 0.86rem;
    color: var(--mint-deep);
    max-width: 60ch;

    & a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
  }
}

/* inner-page hero variant */
.hero--page { padding: var(--s-5) 0; }

/* ---------- trust strip ---------- */
.trust {
  border-bottom: var(--rule);
  padding: var(--s-3) 0;

  & .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    align-items: baseline;
  }

  & .trust-item {
    font-size: 0.95rem;
    color: var(--ink-soft);

    & strong {
      display: block;
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--teal);
    }
  }

  & .trust-updated {
    margin-left: auto;
    font-size: 0.86rem;
    font-style: italic;
    color: var(--ink-soft);
  }
}

/* ---------- generic section spacing ---------- */
.band { padding: var(--s-6) 0; }

.band--tint { background: var(--mint-tint); }

.band-head {
  margin-bottom: var(--s-4);

  & p { color: var(--ink-soft); margin-top: var(--s-1); }
}

/* ---------- disclosure box ---------- */
.disclosure {
  border-left: 5px solid var(--teal);
  background: var(--paper);
  padding: var(--s-2) var(--s-3);
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 58rem;

  & p { max-width: none; }
}

/* ---------- showcase cards ---------- */
.stack { display: grid; gap: var(--s-3); }

.op-card {
  background: var(--paper);
  border-left: 6px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: grid;
  grid-template-columns: 1fr 15rem;

  & .op-facts { padding: var(--s-3) var(--s-4); }

  & .op-side {
    background: var(--mint-tint);
    padding: var(--s-3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}

.op-card--featured {
  border-left-color: var(--teal-deep);

  & .op-facts { padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); }
}

.featured-stamp {
  display: inline-block;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--cream);
  background: var(--teal);
  padding: 0.15rem 0.8rem 0.3rem;
  border-radius: 3px;
  transform: rotate(-1.5deg);
  margin-bottom: var(--s-2);
}

.op-top {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  flex-wrap: wrap;
}

.op-logo {
  width: 92px;
  height: 60px;
  flex: none;
  background: #fff;
  border: 1px solid rgba(13, 82, 71, 0.18);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;

  & img { max-height: 44px; width: auto; max-width: 100%; object-fit: contain; }
}

.op-logo--fallback {
  font-weight: 900;
  color: var(--teal);
  font-size: 1.4rem;
}

.op-name { font-size: 1.3rem; }

.op-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: var(--s-2) 0;
}

.op-offer {
  font-size: 0.95rem;
  border-top: var(--rule);
  padding-top: var(--s-2);
  margin-top: var(--s-2);
  color: var(--ink-soft);

  & .offer-terms { font-size: 0.8rem; font-style: italic; }
}

.op-side-note { font-size: 0.76rem; color: var(--ink-soft); max-width: none; }

/* stars with halves */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 2px;
  color: rgba(13, 82, 71, 0.22);

  & .stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--teal);
  }
}

.score-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  & .score-num { font-weight: 900; color: var(--teal-deep); font-size: 1.05rem; }
}

/* ---------- criterion breakdown ---------- */
.criteria { display: grid; gap: var(--s-4); }

.criterion {
  background: var(--paper);
  border-left: 5px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-4);

  & h3 { margin-bottom: var(--s-1); }

  & > p { color: var(--ink-soft); }
}

.rank-list {
  list-style: none;
  margin-top: var(--s-3);
  display: grid;
  gap: 0.65rem;

  & li {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    max-width: none;
    border-top: 1px dashed rgba(13, 82, 71, 0.25);
    padding-top: 0.65rem;

    & .rank-n {
      font-weight: 900;
      font-size: 1.15rem;
      color: var(--teal);
      flex: none;
      width: 1.4rem;
    }

    & .rank-name { font-weight: 700; }

    & .rank-why { color: var(--ink-soft); font-size: 0.94rem; }
  }
}

/* ---------- split figure sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-5);
  align-items: center;

  & figure img { border-radius: var(--radius); border: 1px solid rgba(13, 82, 71, 0.2); }

  & figcaption {
    font-size: 0.83rem;
    font-style: italic;
    color: var(--ink-soft);
    margin-top: 0.5rem;
  }
}

.split--flip { grid-template-columns: 0.8fr 1.2fr; }

.check-list {
  list-style: none;
  margin-top: var(--s-3);
  display: grid;
  gap: var(--s-2);

  & li {
    padding-left: 1.7rem;
    position: relative;

    &::before {
      content: "✓";
      position: absolute;
      left: 0;
      font-weight: 900;
      color: var(--teal);
    }

    & strong { display: block; }
  }
}

/* ---------- FAQ ---------- */
.mythfact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);

  & > div {
    background: var(--paper);
    border-left: 5px solid var(--teal);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: var(--s-3);
  }

  & .myth { border-left-color: var(--ink); }

  & .mf-tag {
    display: inline-block;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.18em;
    font-weight: 900;
    margin-bottom: var(--s-1);
  }

  & .myth .mf-tag { color: var(--ink-soft); }
  & .fact .mf-tag { color: var(--teal); }
}

.faq-list {
  display: grid;
  gap: var(--s-3);

  & div {
    border-top: var(--rule);
    padding-top: var(--s-3);

    & h3 { margin-bottom: 0.5rem; }
    & p { color: var(--ink-soft); }
    & p + p { margin-top: 0.6rem; }
  }
}

/* ---------- safety cards ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);

  & a {
    background: var(--paper);
    border-left: 5px solid var(--teal);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: var(--s-3);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;

    &:hover { background: #fff; }

    & .safety-logo {
      height: 52px;
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 6px;
      padding: 6px 10px;
      border: 1px solid rgba(13, 82, 71, 0.15);

      & img { max-height: 38px; width: auto; max-width: 100%; object-fit: contain; }
    }

    & strong { font-size: 1.02rem; }

    & span { font-size: 0.88rem; color: var(--ink-soft); font-weight: 400; }
  }
}

/* ---------- disclaimer + footer ---------- */
.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: var(--rule);
  padding: var(--s-4) 0;

  & p { max-width: 75ch; }
  & p + p { margin-top: 0.6rem; }
}

.site-foot {
  background: var(--teal-deep);
  color: var(--mint-deep);
  padding: var(--s-5) 0 var(--s-4);
  font-size: 0.92rem;

  & .foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
  }

  & .foot-brand {
    & .brand { margin-bottom: var(--s-2); }
    & p { font-size: 0.88rem; max-width: 34ch; }
  }

  & h4 {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.18em;
    font-size: 0.98rem;
    color: var(--sage);
    margin-bottom: 0.7rem;
  }

  & ul { list-style: none; display: grid; gap: 0.45rem; }

  & a {
    color: var(--mint);
    font-weight: 700;

    &:hover { color: var(--cream); }
  }

  & .foot-legal {
    border-top: 1px dashed rgba(230, 242, 234, 0.3);
    padding-top: var(--s-3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-4);
    align-items: center;
    font-size: 0.82rem;

    & .age-chip {
      flex: none;
      font-weight: 900;
      border: 2px solid var(--sage);
      color: var(--sage);
      border-radius: 50%;
      width: 2.4rem;
      height: 2.4rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
    }

    & p { max-width: 62ch; }
  }
}

/* ---------- cookie banner ---------- */
.cookie-bar {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  background: var(--paper);
  border-left: 6px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 4px 24px rgba(8, 55, 47, 0.25);
  padding: var(--s-2) var(--s-3);
  max-width: 30rem;
  font-size: 0.9rem;
  display: none;

  &.is-open { display: block; }

  & p { max-width: none; color: var(--ink-soft); margin-bottom: 0.6rem; }

  & .cookie-actions { display: flex; gap: var(--s-3); }
}

/* ---------- contact form ---------- */
.contact-form {
  display: grid;
  gap: var(--s-2);
  max-width: 34rem;
  margin-top: var(--s-3);

  & label { font-weight: 700; font-size: 0.95rem; }

  & input, & textarea {
    font: inherit;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(13, 82, 71, 0.35);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    margin-top: 0.3rem;
  }

  & textarea { min-height: 8rem; resize: vertical; }
}

/* ---------- timeline (history page) ---------- */
.timeline {
  list-style: none;
  margin-top: var(--s-4);
  border-left: var(--rule);
  padding-left: var(--s-4);
  display: grid;
  gap: var(--s-4);

  & li {
    position: relative;
    max-width: var(--measure);

    &::before {
      content: "◆";
      position: absolute;
      left: calc(-1 * var(--s-4) - 0.55rem);
      color: var(--teal);
      background: var(--mint);
      line-height: 1.6;
    }

    & .tl-year {
      display: block;
      font-weight: 900;
      font-size: 1.3rem;
      color: var(--teal);
    }
  }
}

/* page hero band for inner pages */
.page-band {
  background: var(--teal-deep);
  color: var(--mint);
  padding: var(--s-5) 0;

  & h1 { color: var(--cream); max-width: 24ch; }

  & .label { color: var(--sage); }

  & p { color: var(--mint-deep); margin-top: var(--s-2); max-width: 58ch; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .site-foot .foot-grid { grid-template-columns: 1fr 1fr; }
  .split, .split--flip { grid-template-columns: 1fr; gap: var(--s-4); }
  .split figure { order: -1; }
}

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

  .op-card .op-side {
    border-radius: 0 0 var(--radius) 0;
    border-top: var(--rule);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .mythfact { grid-template-columns: 1fr; }
  .trust .trust-updated { margin-left: 0; }
}

@media (max-width: 480px) {
  .safety-grid { grid-template-columns: 1fr; }
  .site-foot .foot-grid { grid-template-columns: 1fr; }
  .op-card .op-facts { padding: var(--s-3); }
  .op-card--featured .op-facts { padding: var(--s-3); }
}
