/* Layout concept: calm botanical wash, cream panels with one arched corner (echoing Your Cancer Notebook), arched portrait windows, forest-green ink. */
:root {
  --bg: #f1f4ee;
  --wash-1: #dfe8da;
  --wash-2: #e9efe4;
  --panel: #fbf9f3;
  --fg: #12301f;
  --muted: #4b5f52;
  --line: #c8d3c4;
  --sage: #dce6d8;
  --accent: #2c5a41;
  --accent-ink: #ffffff;
  --focus: #6b9a7c;

  --font-display: "Libre Caslon Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4vw, 2.6rem);
  --step-4: clamp(2.6rem, 6.5vw, 4.4rem);

  --radius: 18px;
  --arch: 0 min(38%, 220px) 0 0 / 0 min(30%, 200px) 0 0;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1913; --wash-1: #16271d; --wash-2: #122017; --panel: #15241b;
    --fg: #e5ede4; --muted: #a9baae; --line: #2b3e32; --sage: #1b2e23;
    --accent: #93c3a3; --accent-ink: #0e1913; --focus: #93c3a3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1913; --wash-1: #16271d; --wash-2: #122017; --panel: #15241b;
  --fg: #e5ede4; --muted: #a9baae; --line: #2b3e32; --sage: #1b2e23;
  --accent: #93c3a3; --accent-ink: #0e1913; --focus: #93c3a3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60% 45% at 8% 0%, var(--wash-1) 0%, transparent 70%),
    radial-gradient(50% 40% at 100% 18%, var(--wash-2) 0%, transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.prose { max-width: 66ch; display: grid; gap: 1.05em; }
.prose h2 { margin-top: 0.8em; }
.prose h3 { margin-top: 0.6em; font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.prose blockquote { margin: 0.4em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 2px solid var(--line); font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; color: var(--fg); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.35em; }

.eyebrow { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--fg); max-width: 40ch; }
.muted { color: var(--muted); }
.rule { width: 56px; height: 1px; background: var(--fg); opacity: 0.6; border: 0; margin: 0; }

/* Header */
.site-header { padding-block: 22px 8px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.brand { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--fg); text-decoration: none; white-space: nowrap; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { list-style: none; margin: 0; padding: 6px; display: flex; gap: 2px; background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); border-radius: 999px; width: max-content; }
.nav a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover { background: var(--sage); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--sage); filter: none; }
.btn svg { width: 16px; height: 16px; }

/* Sections */
main { display: grid; gap: clamp(56px, 8vw, 96px); padding-block: 28px 80px; }
.section-head { display: grid; gap: 12px; margin-bottom: 28px; max-width: 60ch; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: stretch; }
.arch-panel { background: var(--panel); border-radius: var(--radius); border-top-right-radius: min(42%, 260px) min(38%, 240px); padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; align-content: center; min-width: 0; }
.postnominals { font-size: var(--step--1); letter-spacing: 0.08em; color: var(--muted); }
.portrait { margin: 0; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--sage); align-self: stretch; min-height: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.page-hero { display: grid; gap: 16px; max-width: 62ch; }

/* Two-column text + image */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.split figure { margin: 0; }
.split figure img { border-radius: 999px 999px var(--radius) var(--radius); }
.split figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card h3 { font-size: var(--step-2); }
.card address { font-style: normal; color: var(--muted); }
.card .actions { margin-top: 6px; }

/* Band */
.band { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); border-top-right-radius: min(30%, 200px) min(60%, 180px); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 24px; align-items: center; }
.band h2 { color: var(--accent-ink); }
.band p { opacity: 0.92; max-width: 55ch; }
.band .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }

/* Facts list */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; margin: 0; }
.facts dt { font-weight: 700; color: var(--muted); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; background: var(--panel); }
.chips a { text-decoration: none; color: var(--fg); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 72ch; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--fg); }

/* Resources */
.res-group { display: grid; gap: 18px; scroll-margin-top: 20px; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.res-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; min-width: 0; }
.res-list a { font-weight: 700; text-decoration: none; }
.res-list a:hover { text-decoration: underline; }
.res-list p { color: var(--muted); font-size: 0.97rem; }
.note { background: var(--sage); border-radius: 14px; padding: 18px 22px; max-width: 72ch; }

/* Article */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: var(--step--1); }
.author-box { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 72ch; }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }

/* Media */
.media-feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.media-feature img { border-radius: 10px; border: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 36px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.site-footer h2 { font-size: 1.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--fg); }
.small { font-size: var(--step--1); color: var(--muted); }
.disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }

@media (max-width: 860px) {
  .hero, .split, .media-feature, .band, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; width: 100%; justify-self: center; aspect-ratio: 4 / 5; min-height: 0; }
  .split figure { max-width: 420px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  .author-box { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color 0.2s, filter 0.2s; }
}
.prose figure img { border-radius: 12px; }

/* Slow zoom on photos (hover-capable devices only) */
.split figure picture, .media-feature picture, .prose figure picture { display: block; overflow: hidden; }
.split figure picture { border-radius: 999px 999px var(--radius) var(--radius); }
.media-feature picture { border-radius: 10px; }
.prose figure picture { border-radius: 12px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .portrait img, .split figure img, .media-feature img, .prose figure img { transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .portrait:hover img, .split figure:hover img, .media-feature figure:hover img, .prose figure:hover img { transform: scale(1.045); }
}
