/* ============================================================
   Cancer Clues — design system
   A steady hand in a storm: calm teal on warm cream,
   evidence-grade stamps as the signature element.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 450 700;
  font-display: swap;
}

:root {
  --paper: #FAF6EF;
  --paper-2: #F3EDE0;
  --card: #FFFFFF;
  --ink: #223034;
  --ink-soft: #536068;
  --teal: #0E4D5C;
  --teal-deep: #0A3844;
  --teal-wash: #E8F0EF;
  --amber: #B97A16;
  --amber-wash: #FBF3DF;
  --line: #E6DECD;
  --g-proven: #1E6E3C;
  --g-promising: #0E6E6B;
  --g-unknown: #5A6570;
  --g-unlikely: #AC5316;
  --g-danger: #A31621;
  --radius: 12px;
  --serif: "Fraunces", "Iowan Old Style", Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(34, 48, 52, 0.06), 0 8px 24px rgba(34, 48, 52, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration-color: rgba(14, 77, 92, 0.35); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--amber); }

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

::selection { background: var(--teal); color: var(--paper); }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.18; color: var(--teal-deep); margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.05rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: 1.17rem; margin-top: 1.5em; color: var(--ink); }

p { margin: 0 0 1em; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.prose { max-width: 45.5rem; }
.prose li { margin-bottom: 0.45em; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 0.6em;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.6; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- Skip link (accessibility) ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal-deep); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(18px, 4vw, 32px);
  max-width: 1060px; margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { flex: 0 0 auto; }
.logo .word { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--teal-deep); letter-spacing: -0.01em; white-space: nowrap; }
.logo .word em { font-style: normal; color: var(--teal); }

.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav a { text-decoration: none; color: var(--ink); font-size: 0.98rem; }
.nav a:hover { color: var(--teal); }
.nav a.active { color: var(--teal); font-weight: 600; }
.nav a.btn, .nav a.btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--teal-deep); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 22px 18px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; border-bottom: 1px dashed var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--teal); color: #fff;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 0.72em 1.35em; border-radius: 9px; border: 1px solid var(--teal);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal-wash); }
.btn.amber { background: var(--amber); border-color: var(--amber); }
.btn.amber:hover { background: #9c660f; }

/* ---------- Grade badges — the signature ---------- */
.grade {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; padding: 0.38em 0.75em;
  border-radius: 5px; font-family: var(--sans); white-space: nowrap;
}
.grade::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.85); }
.grade.proven    { background: var(--g-proven); }
.grade.promising { background: var(--g-promising); }
.grade.unknown   { background: var(--g-unknown); }
.grade.unlikely  { background: var(--g-unlikely); }
.grade.danger    { background: var(--g-danger); }
.grade.guide     { background: var(--teal); }

/* ---------- Verdict card ---------- */
.verdict {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; position: relative; overflow: hidden;
}
.verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--vcolor, var(--teal)); }
.verdict .v-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.verdict .v-text { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--ink); margin: 0; font-weight: 450; }
.verdict .v-meta { margin-top: 12px; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Warning flags ---------- */
.flag { border-radius: 10px; padding: 14px 18px; margin: 1.2rem 0; font-size: 0.97rem; border: 1px solid; }
.flag.warn { background: var(--amber-wash); border-color: #ecd9ae; }
.flag.danger { background: #FBEBEC; border-color: #ecc3c7; }
.flag strong { display: inline-flex; gap: 0.4em; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 1.5rem 0; }
.t-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.t-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.t-card h3 { margin: 2px 0 0; font-size: 1.22rem; color: var(--teal-deep); }
.t-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.t-card .go { margin-top: auto; font-weight: 600; color: var(--teal); font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.6rem, 7vw, 4.6rem) 0 clamp(2rem, 5vw, 3.2rem); }
.hero .split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .hero .split { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { margin-bottom: 1.4em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .specimen { transform: rotate(-1.2deg); }
@media (max-width: 860px) { .hero .specimen { transform: none; max-width: 480px; } }

/* ---------- Promise strip ---------- */
.promise-strip { background: var(--teal-deep); color: #F6EFDF; padding: 16px 0; }
.promise-strip .container { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; flex-wrap: wrap; }
.promise-strip strong { font-family: var(--serif); font-weight: 560; font-size: 1.08rem; letter-spacing: 0.01em; }
.promise-strip a { color: #EFC981; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 0.4rem; }

/* ---------- Grade legend ---------- */
.legend { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 1.4rem 0; }
.legend .item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.legend .item p { margin: 8px 0 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Service cards ---------- */
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; box-shadow: var(--shadow); }
.svc .price { font-family: var(--serif); font-size: 2rem; color: var(--teal-deep); font-weight: 600; }
.svc .price span { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }
.svc ul { padding-left: 1.1em; margin: 0.8em 0 1.2em; }
.svc li { margin-bottom: 0.4em; font-size: 0.97rem; }
.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 1.6rem 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; margin: 1.5rem 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 16px 58px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}

/* ---------- Newsletter ---------- */
.newsletter { background: var(--teal-wash); border: 1px solid #d5e2e0; border-radius: 16px; padding: clamp(22px, 4vw, 34px); }
.newsletter h2, .newsletter h3 { margin-top: 0; }
.newsletter .nl-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.newsletter input[type="email"] {
  flex: 1 1 220px; padding: 0.7em 1em; font-size: 1rem; border: 1px solid #bfcfcd;
  border-radius: 9px; background: #fff; color: var(--ink); font-family: var(--sans);
}
.newsletter .fineprint { font-size: 0.85rem; color: var(--ink-soft); margin: 10px 0 0; }
.newsletter iframe { width: 100%; border: 0; border-radius: 9px; }

/* ---------- Treatment article ---------- */
.article-head { padding: clamp(2rem, 5vw, 3rem) 0 1rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--ink-soft); }
.article-head .title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 0.4em; }
.article-head h1 { margin-bottom: 0.2em; }
.byline { font-size: 0.9rem; color: var(--ink-soft); }

.review-note {
  border: 1px dashed #d8b35e; background: var(--amber-wash); border-radius: 10px;
  padding: 12px 16px; font-size: 0.92rem; margin: 1.2rem 0;
}

.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-size: 0.93rem; margin: 1.4rem 0; }
.toc a { margin-right: 14px; white-space: nowrap; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: 10px; padding: 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 18px; color: var(--teal-deep); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--amber); font-weight: 700; font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 18px 16px; color: var(--ink); }

/* Sources */
.sources { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 2rem 0; }
.sources h2 { margin-top: 0; font-size: 1.25rem; }
.sources ol { margin: 0; padding-left: 1.3em; font-size: 0.9rem; line-height: 1.55; }
.sources li { margin-bottom: 0.6em; }
.sources .tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); background: var(--teal-wash); border-radius: 4px; padding: 0.1em 0.5em; margin-right: 0.4em; }

/* Reviewer box */
.reviewer { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 1.6rem 0; font-size: 0.95rem; }
.reviewer .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-wash); display: flex; align-items: center; justify-content: center; color: var(--teal); font-weight: 700; flex: 0 0 auto; }

/* ---------- Story / about ---------- */
.story-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 1.6rem 0; }
.story { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.story .who { font-family: var(--serif); font-size: 1.3rem; color: var(--teal-deep); font-weight: 600; }

/* ---------- Promises list ---------- */
.promises { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 12px; }
.promises li { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 10px; padding: 16px 20px; }
.promises li strong { font-family: var(--serif); font-weight: 600; color: var(--teal-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #D8E2DF; margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(2rem, 5vw, 3rem) 0 2rem; font-size: 0.93rem; }
.site-footer a { color: #EFC981; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer .legalline { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 28px; padding-top: 18px; font-size: 0.82rem; color: #A8BCB8; }
.site-footer .wordmark { font-family: var(--serif); font-size: 1.25rem; color: #fff; font-weight: 600; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .newsletter, .btn { display: none !important; }
  body { background: #fff; }
}
