:root {
  --ink: #16323f;
  --ink-soft: #4a6675;
  --paper: #f4f9fb;
  --card: #ffffff;
  --sea: #0f4c63;
  --sea-deep: #0b3a4c;
  --teal: #1c8fa8;
  --aqua-wash: #e0f0f4;
  --coral: #c2472e;
  --coral-wash: #fae9e4;
  --line: #d3e2e8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  padding-bottom: 3.4rem; /* room for help bar */
}

h1, h2, h3 {
  font-family: "Nunito Sans", "Public Sans", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: var(--teal); }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

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

/* Header */
header.site { background: var(--card); border-bottom: 2px solid var(--sea); }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem; padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
nav.main { display: flex; flex-wrap: wrap; gap: 1.3rem; font-size: 0.95rem; }
nav.main a { color: var(--ink-soft); text-decoration: none; font-weight: 600; padding: 0.2rem 0; }
nav.main a:hover, nav.main a[aria-current="page"] {
  color: var(--sea);
  box-shadow: 0 2px 0 var(--teal);
}

/* Hero with looping brand video */
.hero { padding: 3.2rem 0 2.6rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: 1fr; } }
.hero .eyebrow {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.7rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; max-width: 20ch; color: var(--sea-deep); }
.hero .lede { margin-top: 1rem; max-width: 55ch; font-size: 1.15rem; color: var(--ink-soft); }
.hero .tagline { margin-top: 1.2rem; font-weight: 700; color: var(--sea); font-style: italic; }
.hero-media {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 76, 99, 0.18);
  border: 1px solid var(--line);
}
.hero-media video, .hero-media img { display: block; width: 100%; height: auto; }

/* Guide cards */
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.1rem; margin: 2.2rem 0 0;
}
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal);
  border-radius: 10px; padding: 1.35rem 1.3rem; text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 76, 99, 0.12); }
.guide-card .num {
  font-weight: 800; color: var(--teal); font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.guide-card h2 { font-size: 1.25rem; font-weight: 800; margin: 0.3rem 0 0.4rem; color: var(--sea-deep); }
.guide-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* Sections */
section.band { padding: 2.6rem 0; }
section.band.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; color: var(--sea-deep); }
section.band .kicker {
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--teal); margin-bottom: 0.4rem;
}
section.band > .wrap > p { max-width: 62ch; color: var(--ink-soft); }

/* Sign groups + chips */
.sign-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.sign-group { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.2rem; }
.band.alt .sign-group { background: var(--paper); }
.sign-group h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.7rem; color: var(--sea); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; }
.chips li {
  background: var(--aqua-wash); color: var(--sea-deep);
  font-size: 0.88rem; font-weight: 600;
  border-radius: 999px; padding: 0.28rem 0.75rem;
}

/* Fact cards (substances) */
.fact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem 1.4rem; margin-top: 1.5rem; max-width: 48rem;
}
.fact-card h2 { font-size: 1.45rem; font-weight: 800; color: var(--sea-deep); }
.fact-card .aka { color: var(--ink-soft); font-size: 0.95rem; margin: 0.2rem 0 0.9rem; }
.fact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.98rem; }
.fact-card dt {
  font-weight: 700; color: var(--sea); white-space: nowrap;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 0.15rem;
}
.fact-card dd { color: #2f4a58; }
.fact-card .danger {
  margin-top: 1rem; background: var(--coral-wash); border-left: 4px solid var(--coral);
  border-radius: 0 8px 8px 0; padding: 0.8rem 1rem; font-size: 0.97rem;
}
.fact-card .danger strong { color: var(--coral); }
@media (max-width: 34rem) {
  .fact-card dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .fact-card dd { margin-bottom: 0.6rem; }
}

/* Article pages */
article.page { padding: 3rem 0 1rem; }
article.page h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800; max-width: 24ch; color: var(--sea-deep); }
article.page .lede { margin: 1rem 0 0; max-width: 60ch; font-size: 1.12rem; color: var(--ink-soft); }
article.page section { margin-top: 2.3rem; max-width: 46rem; }
article.page h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.6rem; color: var(--sea-deep); }
article.page h3 { font-size: 1.12rem; font-weight: 800; margin: 1.3rem 0 0.35rem; }
article.page p { margin-bottom: 0.9rem; color: #2f4a58; }
article.page ul, article.page ol { margin: 0 0 1rem 1.3rem; color: #2f4a58; }
article.page li { margin-bottom: 0.45rem; }
.flag {
  background: var(--coral-wash); border-left: 4px solid var(--coral);
  border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 1.4rem 0;
}
.flag p { margin: 0; }
.steady {
  background: var(--aqua-wash); border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 1.4rem 0;
}
.steady p { margin: 0; }

/* Footer */
footer.site { margin-top: 3.5rem; background: var(--sea-deep); color: #c3dde6; padding: 2.5rem 0 2rem; font-size: 0.92rem; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.8rem; }
footer.site h2 { font-size: 1rem; color: #fff; margin-bottom: 0.6rem; font-weight: 700; font-family: "Public Sans", sans-serif; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 0.4rem; }
footer.site a { color: #8fd0e0; }
footer.site .logo-row { margin-bottom: 1.6rem; }
footer.site .logo-row img { max-width: 340px; width: 100%; height: auto; border-radius: 8px; }
footer.site .fine { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #1c5a72; color: #85aebc; font-size: 0.85rem; max-width: 70ch; }

/* Persistent help bar */
.help-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--sea); color: #fff;
  padding: 0.6rem 1rem; text-align: center; font-size: 0.95rem; font-weight: 600;
}
.help-bar a { color: #ffd591; font-weight: 800; }
