/* Dr. Adam Tice, ND — hub stylesheet
   Tokens copied verbatim from complex-case-review.html so the two pages read as one site. */

:root{
  color-scheme: dark;
  --bg:#1a1b1e;
  --bg-2:#232428;
  --card:#2a2b30;
  --ivory:#f5f1e8;
  --text:#e9e5da;
  --muted:#a9aab1;
  --gold:#c9a45c;
  --gold-soft:#e8d4ae;
  --blue-light:#9fbdd8;
  --rule:rgba(245,241,232,.14);
  --max:680px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;background:#1a1b1e}
body{
  font-family:'Public Sans',system-ui,-apple-system,sans-serif;
  font-size:17px;line-height:1.65;color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:'Fraunces',Georgia,serif;font-weight:500;line-height:1.18;letter-spacing:-0.01em}
h1{font-size:clamp(2rem,6.5vw,3.1rem);color:#fff}
h2{font-size:clamp(1.5rem,4.5vw,2.05rem);color:#fff;margin-bottom:1rem}
p{margin-bottom:1.1rem}
a{color:var(--gold-soft)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 1.35rem}
section{padding:3.4rem 0;background:var(--bg);color:var(--text)}
.alt{background:var(--bg-2)}
.eyebrow{
  font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold);font-weight:600;margin-bottom:.9rem;display:block;
}
.brandline{
  font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold);margin-bottom:1.6rem;font-weight:600;
}
.btn{
  display:inline-block;background:var(--gold);color:#1a1b1e;border:none;
  font-family:inherit;font-weight:600;font-size:1rem;letter-spacing:.01em;
  padding:1rem 2rem;border-radius:3px;text-decoration:none;cursor:pointer;
  transition:background .18s ease,transform .18s ease;
}
.btn:hover{background:var(--gold-soft);transform:translateY(-1px)}
.btn:focus-visible{outline:3px solid var(--blue-light);outline-offset:3px}
.btn-block{display:block;width:100%;text-align:center}
@media (min-width:520px){.btn-block{display:inline-block;width:auto}}
.btn-quiet{
  background:transparent;color:var(--gold-soft);
  border:1px solid var(--rule);font-weight:500;
}
.btn-quiet:hover{background:rgba(201,164,92,.09);color:var(--gold-soft)}
.pullline{
  font-family:'Fraunces',Georgia,serif;font-size:1.28rem;line-height:1.4;
  color:var(--gold-soft);border-left:3px solid var(--gold);
  padding-left:1.1rem;margin:1.6rem 0;
}

/* ---------- NAV ---------- */
.topbar{background:var(--bg);border-bottom:1px solid var(--rule)}
.topbar .wrap{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;padding-top:.95rem;padding-bottom:.95rem;flex-wrap:wrap;
}
.topbar .name{
  font-family:'Fraunces',Georgia,serif;font-size:1.02rem;color:#fff;
  text-decoration:none;letter-spacing:-0.01em;
}
.topbar nav{display:flex;gap:1.15rem;font-size:.83rem}
.topbar nav a{color:var(--muted);text-decoration:none;letter-spacing:.03em}
.topbar nav a:hover{color:var(--gold-soft)}

/* ---------- HERO ---------- */
.hero{
  background:var(--bg);color:var(--ivory);
  padding:4rem 0 0;border-bottom:3px solid var(--gold);
}
.hero .sub{color:var(--text);font-size:1.06rem;max-width:560px;margin:1.2rem 0 1.6rem}
.hero .meta{margin-top:1.1rem;font-size:.88rem;color:var(--gold-soft);letter-spacing:.02em}
.hero .meta .dot{color:#9a9ba2;margin:0 .5rem}
.hero .meta span{white-space:nowrap}

/* signature: resting cardiac rhythm, 0.1Hz — the throughline of the practice */
.rhythm{display:block;width:100%;height:70px;margin-top:2.2rem;opacity:.5}
@media (prefers-reduced-motion:no-preference){
  .rhythm .trace{
    stroke-dasharray:1400;stroke-dashoffset:1400;
    animation:draw 9s ease-in-out infinite;
  }
}
@keyframes draw{
  0%{stroke-dashoffset:1400}
  55%{stroke-dashoffset:0}
  100%{stroke-dashoffset:0;opacity:0}
}

/* ---------- PHOTO BAND ---------- */
.photo-band{background:var(--bg-2);border-bottom:1px solid rgba(201,164,92,.3)}
.photo-band .wrap{display:flex;align-items:center;gap:1.2rem;padding:1.4rem 1.35rem}
.headshot{
  width:84px;height:84px;border-radius:50%;flex-shrink:0;
  border:2px solid var(--gold);object-fit:cover;object-position:50% 22%;background:#3a3b40;
}
.photo-band p{margin:0;color:var(--text);font-size:.92rem}
.photo-band strong{color:#fff;font-weight:600}

/* ---------- PILLARS ---------- */
.pillar{padding:1.35rem 0;border-top:1px solid var(--rule)}
.pillar:first-of-type{border-top:none}
.pillar h3{font-size:1.08rem;color:var(--gold-soft);margin-bottom:.35rem}
.pillar p{margin:0;font-size:.97rem}

/* ---------- BAND IMAGE ---------- */
.band{display:block;width:100%;height:190px;object-fit:cover;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}

/* ---------- BIO ---------- */
.bio-portrait{
  display:block;width:100%;height:auto;      /* natural 3:1 ratio, never stretched or cropped */
  aspect-ratio:3 / 1;object-fit:cover;object-position:50% 30%;
  border-radius:4px;border:1px solid var(--rule);
  margin-bottom:1.6rem;
}

/* ---------- QUIZ ---------- */
.quiz{
  background:var(--card);border:1px solid var(--rule);border-top:4px solid var(--gold);
  border-radius:6px;padding:1.7rem 1.4rem 1.6rem;margin-top:1.5rem;
  box-shadow:0 2px 14px rgba(0,0,0,.35);
}
.quiz-bar{height:3px;background:var(--rule);border-radius:2px;margin-bottom:1.5rem;overflow:hidden}
.quiz-bar i{display:block;height:100%;width:0;background:var(--gold);transition:width .3s ease}
.quiz-step{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-bottom:.75rem}
.quiz h3{font-size:1.3rem;color:#fff;margin-bottom:1.15rem;line-height:1.3}
.opts{display:grid;gap:.55rem}
.opt{
  display:block;width:100%;text-align:left;font-family:inherit;font-size:1rem;
  color:var(--text);background:var(--bg-2);border:1px solid var(--rule);
  border-radius:4px;padding:.9rem 1.05rem;cursor:pointer;line-height:1.4;
  transition:border-color .15s ease,background .15s ease;
}
.opt:hover{border-color:var(--gold);background:rgba(201,164,92,.07)}
.opt:focus-visible{outline:3px solid var(--blue-light);outline-offset:2px}
.quiz-back{
  margin-top:1.2rem;background:none;border:none;font-family:inherit;
  color:var(--muted);font-size:.85rem;cursor:pointer;padding:.3rem 0;
}
.quiz-back:hover{color:var(--gold-soft)}
.quiz textarea, .quiz input[type=email]{
  width:100%;font-family:inherit;font-size:1rem;color:var(--text);
  background:var(--bg-2);border:1px solid var(--rule);border-radius:4px;
  padding:.85rem 1rem;line-height:1.5;
}
.quiz textarea{min-height:88px;resize:vertical}
.quiz textarea:focus, .quiz input[type=email]:focus{outline:none;border-color:var(--gold)}
.skip{
  display:block;margin-top:.85rem;background:none;border:none;font-family:inherit;
  color:var(--muted);font-size:.85rem;cursor:pointer;text-decoration:underline;padding:0;
}
.skip:hover{color:var(--gold-soft)}

/* result */
.read h3{font-size:1.32rem;color:#fff;margin-bottom:1rem}
.read p{font-size:1rem}
.read .close{
  margin-top:1.6rem;padding-top:1.4rem;border-top:1px solid var(--rule);
}
.read .close p{color:var(--gold-soft);font-family:'Fraunces',Georgia,serif;font-size:1.14rem;line-height:1.45}
.capture{display:grid;gap:.6rem;margin-top:1rem}
.note{font-size:.84rem;color:var(--muted);margin:.9rem 0 0}
.msg{font-size:.92rem;margin:.9rem 0 0;padding:.75rem .9rem;border-radius:4px;display:none}
.msg.ok{display:block;background:rgba(201,164,92,.12);border:1px solid var(--gold);color:var(--gold-soft)}
.msg.err{display:block;background:rgba(159,189,216,.1);border:1px solid var(--blue-light);color:var(--blue-light)}
.restart{margin-top:1.5rem}

/* ---------- FOOTER ---------- */
footer{background:var(--bg);padding:2rem 0 2.4rem;text-align:center;border-top:1px solid var(--rule)}
footer p{color:#b9bac0;font-size:.8rem;margin:0 0 .4rem}
footer a{color:#d4d5da}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.opt{transition:none}
}
