/* Layout: one calm reading column (~42rem) on a warm off-white page; colored bands (deep teal, mist blue, peach) mark each section. Matches the original Still Needed look. Single light theme by design. */
:root {
  --bg: #f6f4ef;
  --ink: #26414a;
  --teal: #2b4a53;
  --teal-ink: #f6f4ef;
  --muted: #5d6f74;
  --eyebrow: #6a8c95;
  --mist: #dce7e9;
  --mist-card: #e5edef;
  --mist-line: #c5d6da;
  --peach: #fcf2ea;
  --rose: #a8604f;
  --line: #d9dcd8;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.12; text-wrap: balance;
  margin: 0; color: var(--teal); letter-spacing: -0.02em;
}
h1 { font-size: clamp(3.4rem, 15vw, 6.2rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
h3 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
p { margin: 0; }

.wrap {
  width: 100%; max-width: 68rem; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.col { max-width: 42rem; }
.stack { display: grid; gap: 1.3rem; }
.eyebrow {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--eyebrow);
}
.lede { font-family: var(--font-display); font-size: clamp(1.3rem, 4.2vw, 1.55rem); line-height: 1.5; color: var(--ink); }
.fine { font-size: 0.92rem; color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; flex-wrap: wrap; }
.logo { font-family: var(--font-display); font-size: 1.55rem; color: var(--teal); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--rose); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--mist-line); color: var(--teal);
  font: inherit; font-size: 0.9rem; letter-spacing: .08em; text-transform: uppercase; padding: 0.35rem 0.9rem; cursor: pointer;
}
.nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav a { color: var(--teal); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--rose); }
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-block: 0.5rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
}

/* Buttons and links */
.btn {
  display: inline-block; background: var(--teal); color: var(--teal-ink); text-decoration: none;
  padding: 1.05rem 1.8rem; border: 0; border-radius: 0; font: inherit; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: #1f3a42; }
.text-link {
  display: inline-block; background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  color: var(--rose); cursor: pointer; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Sections */
section { padding-block: clamp(4rem, 12vw, 7rem); }
.band-mist { background: var(--mist); }
.band-peach { background: var(--peach); }
.band-teal { background: var(--teal); color: var(--teal-ink); }
.band-teal h2 { color: var(--teal-ink); }
.band-teal .eyebrow { color: #8fadb4; }
.band-teal p { color: #dfe7e8; }

/* Hero with the faint circle */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 10vw, 6rem); }
.hero::before {
  content: ""; position: absolute; width: min(56rem, 160vw); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--mist-line); top: 1.5rem; left: 50%; transform: translateX(-62%); pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-intro { display: grid; gap: .6rem; margin-top: .6rem; }
.hero-intro .label { font-size: 1.15rem; }

.card {
  background: var(--mist-card); border: 1px solid var(--mist-line); padding: clamp(1.6rem, 6vw, 2.6rem);
  display: grid; gap: 1.2rem;
}
.card-light { background: var(--bg); color: var(--ink); padding: clamp(1.6rem, 6vw, 2.6rem); display: grid; gap: 1rem; }
.card-light p { color: var(--ink); }
.card-light h3 { color: var(--teal); }

.pull { font-family: var(--font-display); font-size: clamp(1.7rem, 5.5vw, 2.3rem); color: var(--teal); line-height: 1.25; }
.quote { font-family: var(--font-display); font-size: clamp(1.9rem, 6.5vw, 2.8rem); line-height: 1.25; color: var(--ink); }
.big-num { font-family: var(--font-display); font-size: 1rem; color: var(--rose); letter-spacing: .1em; }

/* Workbook */
.cover-band { background: var(--peach); }
.cover { max-width: 34rem; margin: 0 auto; position: relative; }
.cover img { width: 100%; }
.cover-fallback {
  display: none; aspect-ratio: 3 / 4; background: var(--peach); color: var(--teal); border: 1px solid #efdccd;
  padding: 2rem; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .6rem;
}
.cover.missing img { display: none; }
.cover.missing .cover-fallback { display: flex; }
.cover-fallback strong { font-family: var(--font-display); font-size: 3rem; font-weight: 400; line-height: 1; }
.cover-fallback em { font-family: var(--font-display); color: var(--muted); }
.links-row { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; align-items: center; }

.voice { font-family: var(--font-display); font-size: clamp(2.3rem, 8vw, 3.4rem); line-height: 1.5; color: var(--rose); letter-spacing: -0.01em; }
.about-sign { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--rose); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.8rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a, .footer-links button { color: var(--muted); font-size: .95rem; }
.footer-links button { background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* Pop-ups */
dialog {
  border: 1px solid var(--mist-line); border-radius: 0; background: var(--bg); color: var(--ink);
  width: min(36rem, calc(100% - 32px)); max-height: 85vh; padding: 2rem;
}
dialog::backdrop { background: rgba(31, 52, 58, .6); }
.dialog-close { float: right; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
dialog textarea {
  width: 100%; min-height: 9rem; font: inherit; padding: .9rem; border-radius: 0;
  border: 1px solid var(--mist-line); background: #fff; color: var(--ink); resize: vertical;
}
dialog h2 { font-size: 2rem; margin-bottom: .3rem; }
dialog h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-top: 1.3rem; }

/* Stories */
.story-card {
  display: grid; gap: .7rem; text-decoration: none; color: var(--ink); background: var(--mist-card);
  border: 1px solid var(--mist-line); padding: clamp(1.6rem, 6vw, 2.4rem); max-width: 42rem;
}
.story-card:hover { border-color: var(--teal); }
.story-card h3 { font-size: clamp(1.7rem, 5.5vw, 2.2rem); }
.story-card .more { color: var(--rose); font-weight: 600; }
.story { max-width: 40rem; display: grid; gap: 1.2rem; font-size: 1.1rem; }
.story h2 { margin-top: 1.8rem; }
.story strong { color: var(--teal); }
.story .divider { width: 3rem; height: 1px; background: var(--rose); margin-block: 1.2rem; }
.story .question { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2rem); color: var(--rose); line-height: 1.3; }
.question-lg { font-family: var(--font-display); font-size: clamp(1.9rem, 6.5vw, 2.6rem); color: var(--teal); line-height: 1.2; letter-spacing: -0.01em; }

/* Logo image */
.logo-img { display: inline-flex; line-height: 0; }
.site-header .logo-img img { width: 72px; height: auto; }
.site-footer .logo-img img { width: 96px; height: auto; margin-bottom: .4rem; }
