/* =========================================================================
   Future Health with DR GPT™ — companion site
   Clinical editorial brutalism on the METAL/DR GPT black-and-signal-green.
   ========================================================================= */

:root {
  --canvas: #000000;
  --panel: #0c120d;
  --panel-2: #141c15;
  --brand: #3ab409;
  --brand-bright: #7be04a;
  --brand-deep: #1f6b06;
  --white: #ffffff;
  --muted: #9aa6a0;
  --line: #22301f;
  --max: 1180px;
  --pad: 24px;
  --radius: 12px;
  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-head: "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dock-h: 104px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + 32px);
}

img { max-width: 100%; display: block; }
a { color: var(--brand-bright); }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--brand); color: #04140a; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }

/* ------------------------------- top bar ------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__bar { width: 6px; height: 22px; background: var(--brand); display: inline-block; }
.wordmark__text {
  font-family: var(--font-display); font-size: 20px; letter-spacing: .04em;
  color: var(--white);
}
.wordmark__text sup { font-size: .5em; color: var(--brand-bright); }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.topnav a:hover { color: var(--brand-bright); }
.topbar__site {
  color: var(--brand-bright); text-decoration: none; font-size: 14px; font-weight: 600;
}
.topbar__site:hover { text-decoration: underline; }

/* -------------------------------- hero -------------------------------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px var(--pad) 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px;
  align-items: center;
}
.kicker {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-bright);
  margin: 0 0 18px;
}
.kicker__chip {
  display: inline-block; background: var(--brand); color: #04140a;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 9px; border-radius: 6px; margin-right: 12px;
}
.display { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: .98; }
.display__line { display: block; font-size: clamp(40px, 7.4vw, 76px); letter-spacing: -.01em; }
.display__line--green { color: var(--brand); }
.display sup { font-size: .34em; vertical-align: super; }
.hero__episode {
  font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 27px);
  color: var(--white); margin: 22px 0 14px; font-weight: 600;
}
.hero__lede { color: var(--muted); max-width: 62ch; margin: 0 0 18px; font-size: 17px; }
.hero__meta {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-bright); margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px;
}
.hero__meta span[aria-hidden] { color: var(--line); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__byline { color: var(--muted); font-size: 14px; margin: 0; }

/* ----------------------------- disclaimer ----------------------------- */
.disclaimer {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad);
  display: flex; gap: 14px; align-items: flex-start;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.disclaimer__mark {
  flex: none; width: 6px; height: 22px; background: var(--brand); margin-top: 3px;
}
.disclaimer__text { color: var(--muted); font-size: 14px; margin: 0; max-width: 92ch; }
.disclaimer__text strong { color: var(--white); font-weight: 600; }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  background: transparent; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--brand); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #04140a; }
.btn--primary:hover { background: var(--brand-bright); }
.btn--small { padding: 9px 16px; font-size: 14px; }

.hero__qr { text-align: center; }
.qr-card {
  background: var(--white); padding: 16px; border-radius: var(--radius);
  display: inline-block; line-height: 0;
}
.qr-card img { width: 100%; max-width: 260px; height: auto; }
.qr-card__title {
  font-family: var(--font-head); font-size: 17px; margin: 18px 0 6px; color: var(--white);
}
.qr-card__copy { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.qr-card__url {
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  color: var(--brand-bright); margin: 0;
}

/* -------------------------------- bands -------------------------------- */
.band { max-width: var(--max); margin: 0 auto; padding: 40px var(--pad); }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; justify-content: space-between; }
.band__note { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.band__note--tight { margin-top: 26px; }

.section-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  margin: 0 0 22px; letter-spacing: .01em;
}
.marker { width: 6px; height: 30px; background: var(--brand); display: inline-block; flex: none; }

.band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card__label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-bright); margin: 0 0 12px; font-weight: 600;
}
.card__body { margin: 0; color: var(--muted); font-size: 16px; }
.card__body--lead { color: var(--white); font-size: 19px; font-family: var(--font-head); font-weight: 600; }

/* ------------------------------ slide grid ------------------------------ */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.slide-card {
  width: 100%; text-align: left; cursor: pointer; padding: 0;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: inherit;
  font: inherit; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  display: flex; flex-direction: column; height: 100%;
}
.slide-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.slide-card__thumb { position: relative; aspect-ratio: 16 / 9; background: #060806; }
.slide-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.slide-card__chip {
  position: absolute; left: 12px; top: 12px;
  background: rgba(0, 0, 0, .82); border: 1px solid var(--brand-deep);
  color: var(--brand-bright); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.slide-card__num {
  position: absolute; right: 12px; top: 12px; font-family: var(--font-head);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--white); background: rgba(0, 0, 0, .72); padding: 4px 9px; border-radius: 999px;
}
.slide-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.slide-card__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin: 0; }
.slide-card__take { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.slide-card__more {
  color: var(--brand-bright); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; margin-top: 4px;
}
.slide-card.is-hit { animation: pulse 1s ease 1; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 224, 74, .7); }
  100% { box-shadow: 0 0 0 16px rgba(122, 224, 74, 0); }
}

/* ------------------------------ downloads ------------------------------ */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dl {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; color: var(--white); transition: transform .16s ease, border-color .16s ease;
}
.dl:hover { transform: translateY(-3px); border-color: var(--brand); }
.dl__icon {
  align-self: flex-start; font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: #04140a; background: var(--brand);
  padding: 5px 10px; border-radius: 6px;
}
.dl__name { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.dl__desc { color: var(--muted); font-size: 15px; }
.dl__meta { color: var(--brand-bright); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-top: auto; }

/* -------------------------------- footer -------------------------------- */
.footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 48px var(--pad) 56px; text-align: center;
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin-bottom: 20px; }
.footer__links a { font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__social {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  margin: 0 0 22px;
}
.footer__social a {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .16s ease, border-color .16s ease;
}
.footer__social a:hover { color: var(--brand-bright); border-bottom-color: var(--brand); }
.footer__line { color: var(--muted); font-size: 14px; margin: 6px auto; max-width: 70ch; }
.footer__line--muted { font-size: 13px; color: #6f7a74; }

/* ------------------------------ search dock ------------------------------ */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: linear-gradient(to top, rgba(0, 0, 0, .98), rgba(0, 0, 0, .92));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 12px var(--pad) 14px;
}
.dock__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
}
.dock__label {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-bright);
  flex: none;
}
.dock__input {
  flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; color: var(--white); font-size: 16px; font-family: var(--font-body);
  padding: 13px 20px;
}
.dock__input::placeholder { color: #6f7a74; }
.dock__input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(58, 180, 9, .25); }
.dock__hint { color: var(--muted); font-size: 13px; flex: none; }
.dock__results {
  list-style: none; margin: 10px auto 0; padding: 0;
  max-width: var(--max); display: flex; flex-wrap: wrap; gap: 8px;
}
.dock__results li { margin: 0; }
.dock__results button {
  background: var(--panel); border: 1px solid var(--line); color: var(--white);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer;
  font-family: var(--font-body);
}
.dock__results button:hover { border-color: var(--brand); color: var(--brand-bright); }
.dock__results .empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }
.dock__chips {
  max-width: var(--max); margin: 8px auto 0; display: flex; flex-wrap: wrap; gap: 8px;
  overflow: hidden;
}
.dock__chips button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
  font-family: var(--font-body);
}
.dock__chips button:hover { color: var(--brand-bright); border-color: var(--brand-deep); }

/* ------------------------------- dialog ------------------------------- */
.dialog {
  border: 1px solid var(--line); border-radius: 16px; padding: 0;
  background: #070a07; color: var(--white); max-width: 1080px; width: calc(100% - 32px);
  max-height: 92vh;
}
.dialog::backdrop { background: rgba(0, 0, 0, .78); }
.dialog__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.dialog__media { background: #000; display: flex; align-items: center; }
.dialog__media img { width: 100%; height: auto; }
.dialog__body { padding: 30px 32px 34px; overflow-y: auto; max-height: 92vh; }
.dialog__close {
  position: absolute; right: 14px; top: 12px; z-index: 2;
  background: rgba(0, 0, 0, .7); border: 1px solid var(--line); color: var(--white);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.dialog__close:hover { border-color: var(--brand); color: var(--brand-bright); }
.dialog__chip {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-bright); font-weight: 700; margin: 0 0 10px;
}
.dialog__title { font-family: var(--font-head); font-size: 27px; margin: 0 0 6px; line-height: 1.2; }
.dialog__kicker { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.dialog__points { list-style: none; margin: 0 0 20px; padding: 0; }
.dialog__points li {
  position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 16px; color: #e6ebe8;
}
.dialog__points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 2px; background: var(--brand);
}
.dialog__takeaway {
  font-family: var(--font-head); font-size: 18px; font-weight: 600;
  color: var(--brand-bright); border-left: 3px solid var(--brand);
  padding-left: 16px; margin: 0 0 24px;
}
.dialog__meta { margin: 0 0 24px; font-size: 14px; }
.dialog__meta dt {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 14px;
}
.dialog__meta dd { margin: 4px 0 0; color: #cfd6d2; }
.dialog__nav { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------ editions ------------------------------ */
.editions {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.edition {
  display: flex; gap: 16px; align-items: flex-start; width: 100%; height: 100%;
  text-align: left; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; color: inherit; font: inherit;
  cursor: pointer; transition: transform .16s ease, border-color .16s ease;
}
.edition:hover { border-color: var(--brand); transform: translateY(-2px); }
.edition.is-active { border-color: var(--brand); background: var(--panel-2); }
.edition__label {
  flex: none; font-family: var(--font-display); font-size: 21px;
  letter-spacing: .04em; color: var(--brand);
}
.edition.is-active .edition__label { color: var(--brand-bright); }
.edition__body { display: flex; flex-direction: column; gap: 5px; }
.edition__month {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.edition__ep { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.edition__state {
  font-size: 12px; letter-spacing: .06em; font-weight: 600; color: var(--brand-bright);
}
.edition--soon {
  border-style: dashed; opacity: .62; cursor: default; align-items: flex-start;
}
.edition--soon:hover { border-color: var(--line); transform: none; }
.edition--soon .edition__label { color: var(--muted); }
.edition--soon .edition__state { color: var(--muted); }

/* ---------------------------- monthly visual ---------------------------- */
.visual {
  margin: 0; display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}
.visual__frame {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.visual__frame img { width: 100%; height: auto; border-radius: 6px; }
.visual__chip {
  position: absolute; left: 26px; top: 26px; background: var(--brand); color: #04140a;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; padding: 5px 12px; border-radius: 999px;
}
.visual__title {
  font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 12px; line-height: 1.2;
}
.visual__sub { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 48ch; }

/* ------------------------------- reveal ------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide-card.is-hit { animation: none; }
  .btn:hover, .slide-card:hover, .dl:hover { transform: none; }
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; }
  .hero__qr { text-align: left; }
  .grid, .band__grid, .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual { grid-template-columns: 1fr; gap: 24px; }
  .dialog__inner { grid-template-columns: 1fr; }
  .dialog__media { max-height: 34vh; overflow: hidden; }
}

@media (max-width: 680px) {
  :root { --pad: 18px; --dock-h: 132px; }
  .topnav { display: none; }
  .topbar { gap: 12px; }
  .topbar__site { font-size: 12px; }
  .hero__meta { flex-direction: column; gap: 2px; }
  .hero__meta span[aria-hidden] { display: none; }
  .grid, .band__grid, .dl-grid { grid-template-columns: 1fr; }
  .editions { grid-template-columns: 1fr; }
  .hero { padding: 40px var(--pad) 32px; }
  .section-title { font-size: 22px; }
  .dock__inner { flex-wrap: wrap; gap: 8px; }
  .dock__label { width: 100%; }
  .dock__hint { display: none; }
  .dock__input { width: 100%; padding: 12px 16px; }
  .dock__chips { display: none; }
  .dialog__body { padding: 22px 20px 28px; }
}
.dialog__disclaimer {
  color: var(--muted); font-size: 13px; margin: 0 0 18px;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 20px; }
/* ===================== reading aids and page chrome ===================== */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  pointer-events: none; background: transparent;
}
.progress span {
  display: block; height: 100%; width: 100%; background: var(--brand);
  transform: scaleX(0); transform-origin: 0 50%;
}

.topnav a[aria-current="true"] {
  color: var(--brand-bright);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.totop {
  position: fixed; right: 20px; bottom: calc(var(--dock-h) + 56px); z-index: 55;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--brand-bright); font-size: 18px; line-height: 1;
  transition: border-color .16s ease, transform .16s ease;
}
.totop:hover { border-color: var(--brand); transform: translateY(-2px); }

.footer__share { margin-top: 20px; }

/* ------------------------------- listen ------------------------------- */
.listen {
  display: grid; gap: 32px; align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.listen__main {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.listen__chip {
  display: inline-block; background: var(--brand); color: #04140a;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; padding: 4px 10px; border-radius: 999px; margin: 0 0 14px;
}
.listen__title {
  font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 27px);
  margin: 0 0 10px; line-height: 1.2;
}
.listen__desc { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.listen__player { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.listen__audio { width: 100%; max-width: 560px; color-scheme: dark; }
.listen__ext { color: var(--muted); font-size: 14px; margin: 0; flex: 1 1 220px; }

.notice {
  display: flex; gap: 14px; align-items: flex-start; margin: 0;
  padding: 20px 22px; border-radius: var(--radius);
  background: rgba(58, 180, 9, .07); border: 1px solid var(--brand-deep);
  color: var(--muted); font-size: 15px;
}
.notice__mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
  background: var(--brand); color: #04140a; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.notice strong { color: var(--white); }

@media (max-width: 1000px) {
  .listen { grid-template-columns: 1fr; gap: 20px; }
}

/* -------------------------------- print -------------------------------- */
@media print {
  .topbar, .dock, .totop, .progress, #slide-dialog,
  .hero__actions, .footer__share { display: none !important; }
  body { background: #fff; color: #111; padding: 0; }
  .band, .hero, .listen__main { break-inside: avoid; }
  .section-title, .display__line { color: #111; }
  a { color: #111; text-decoration: underline; }
}
