:root{
  --navy:#10283B;
  --teal:#317F7A;
  --ivory:#F7F5EF;
  --charcoal:#2A2E33;
  --rule:#DAD6CB;
  --muted:#5E6873;
  --link:#1E5B95;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Source Sans 3","Inter","Segoe UI",system-ui,-apple-system,sans-serif;
  color:var(--charcoal);
  background:var(--ivory);
  line-height:1.6;
  font-size:18px;
}
h1,h2,h3,h4,.serif{
  font-family:"Source Serif 4","Source Serif Pro",Cambria,"Palatino Linotype",Georgia,serif;
  color:var(--navy);
  font-weight:600;
  line-height:1.25;
}
h1{font-size:clamp(2.2rem,4.6vw,3.6rem);letter-spacing:-0.01em;margin:0 0 0.6rem}
h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:0 0 0.8rem}
h3{font-size:1.25rem;margin:0 0 0.4rem}
p{margin:0 0 1rem}
a{color:var(--link);text-decoration:none;border-bottom:1px solid currentColor}
a:hover{color:var(--teal)}

/* Masthead */
.mast{background:var(--navy);color:var(--ivory);padding:1.1rem 0}
.mast .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.mast .wordmark{font-family:"Source Serif 4",Cambria,serif;font-size:1.35rem;letter-spacing:0.01em;color:var(--ivory);border:none}
.mast .wordmark em{color:var(--teal);font-style:normal;font-weight:500}
.mast nav a{color:var(--ivory);margin-left:1.25rem;font-size:0.95rem;opacity:0.9;border:none}
.mast nav a:hover{opacity:1;color:var(--teal)}
.status-pill{display:inline-block;background:var(--teal);color:var(--ivory);padding:0.15rem 0.6rem;border-radius:999px;font-size:0.78rem;letter-spacing:0.04em;text-transform:uppercase;margin-left:0.75rem;vertical-align:middle}

.wrap{max-width:1040px;margin:0 auto;padding:0 1.25rem}

/* Hero */
.hero{padding:4.5rem 0 3.5rem;border-bottom:1px solid var(--rule)}
.hero .kicker{text-transform:uppercase;letter-spacing:0.12em;color:var(--teal);font-size:0.82rem;font-weight:600;margin-bottom:0.9rem}
.hero .sub{font-size:1.2rem;color:var(--muted);max-width:52ch;margin-top:0.5rem}
.hero .cta{margin-top:2rem;display:flex;gap:0.8rem;flex-wrap:wrap}
.btn{display:inline-block;padding:0.75rem 1.25rem;border-radius:4px;border:1px solid var(--navy);color:var(--navy);background:transparent;font-size:0.95rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em}
.btn:hover{background:var(--navy);color:var(--ivory)}
.btn.primary{background:var(--navy);color:var(--ivory)}
.btn.primary:hover{background:var(--teal);border-color:var(--teal)}

/* Sections */
section{padding:3.25rem 0;border-bottom:1px solid var(--rule)}
section:last-of-type{border-bottom:none}
.section-kicker{text-transform:uppercase;letter-spacing:0.1em;color:var(--teal);font-weight:600;font-size:0.78rem;margin:0 0 0.5rem}

/* Paired-image study */
.pair{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:1.5rem}
.pair figure{margin:0;background:#fff;border:1px solid var(--rule);padding:1rem}
.pair figure img{display:block;width:100%;height:auto;background:#eee}
.pair figure .placeholder{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:#EEE9DD;color:var(--muted);text-align:center;font-size:0.9rem;padding:1rem}
.pair figcaption{margin-top:0.75rem;font-size:0.9rem;color:var(--muted)}
.pair figcaption strong{display:block;color:var(--charcoal);font-size:0.95rem;margin-bottom:0.15rem}
.pair .ai-tag{display:inline-block;background:var(--navy);color:var(--ivory);font-size:0.72rem;padding:0.12rem 0.5rem;border-radius:3px;letter-spacing:0.04em;text-transform:uppercase;margin-right:0.4rem;vertical-align:middle}

/* Hypothesis + references */
.hyps{list-style:none;padding:0;margin:1.25rem 0;display:grid;gap:1rem}
.hyps li{background:#fff;border-left:3px solid var(--teal);padding:0.9rem 1.1rem}
.hyps li strong{color:var(--navy);display:block;margin-bottom:0.2rem}
.refs{list-style:none;padding:0;margin:1rem 0;font-size:0.95rem;color:var(--muted)}
.refs li{padding:0.4rem 0;border-bottom:1px dashed var(--rule)}
.refs li:last-child{border-bottom:none}

/* Stages grid */
.stages{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.25rem}
.stages .stage{background:#fff;border:1px solid var(--rule);padding:1.1rem}
.stages .stage h3{color:var(--navy);margin-bottom:0.3rem}
.stages .stage p{margin:0;color:var(--muted);font-size:0.95rem}

/* FAQ */
details{background:#fff;border:1px solid var(--rule);padding:0.9rem 1.1rem;margin-bottom:0.6rem;border-radius:3px}
details summary{cursor:pointer;font-weight:600;color:var(--navy)}
details[open] summary{margin-bottom:0.5rem}

/* Footer */
footer{background:var(--navy);color:var(--ivory);padding:2rem 0;margin-top:0;font-size:0.9rem}
footer a{color:var(--teal);border-color:var(--teal)}
footer .wrap{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
footer .draft{opacity:0.85;max-width:60ch}

/* Responsive */
@media (max-width: 900px){
  .pair{grid-template-columns:1fr}
  .stages{grid-template-columns:1fr 1fr}
  .mast nav a{margin-left:0;margin-right:1rem;font-size:0.9rem}
  .mast .wordmark{font-size:1.15rem}
  .status-pill{display:inline-block;margin-left:0}
}
@media (max-width: 560px){
  body{font-size:17px}
  .hero{padding:3rem 0 2.5rem}
  section{padding:2.25rem 0}
  .stages{grid-template-columns:1fr}
  .mast .wrap{flex-direction:column;align-items:flex-start}
  .mast nav{margin-top:0.5rem}
}
