/* ==========================================================================
   BMS Awareness Day
   Palette, type and layout tokens. Change values here, not inline.
   ========================================================================== */

:root {
  --ember:      #D8552B;
  --ember-deep: #A83D1B;
  --teal:       #0E6E57;
  --teal-deep:  #0A4E3E;
  --ink:        #12241F;
  --muted:      #55655F;
  --rule:       #D9E3DF;
  --wash:       #EDF4F1;
  --paper:      #FFFFFF;

  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "Public Sans", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --gut: 1.5rem;
  --max: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--teal); color: #fff;
  padding: .75rem 1rem; z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 44rem; }

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}
.eyebrow--rule {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 1.5rem;
  max-width: 22ch;
}
.h2--sm { font-size: clamp(1.5rem, 3.4vw, 2rem); max-width: 26ch; }

.prose { max-width: 60ch; margin: 0 0 1.25rem; color: var(--ink); }
.prose--lead { font-size: 1.2rem; color: var(--muted); }
.prose strong { color: var(--teal-deep); }

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--wash  { background: var(--wash); }
.section--press { background: var(--wash); }
.section--check { background: var(--teal); color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  padding: 1rem 1.75rem;
  border-radius: 2px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-deep); }
.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--full { width: 100%; font-size: 1.1875rem; padding-block: 1.15rem; }

.btnrow { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 1.75rem; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3.5rem, 9vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
.hero .wrap { max-width: 52rem; }

/* signature element: the chart note */
.chartnote {
  border-left: 3px solid var(--rule);
  padding: 1.25rem 0 1.25rem 1.5rem;
  margin: 0 0 2rem;
}
.chartnote__meta {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0 0 .875rem;
}
.chartnote__line {
  font-family: var(--mono);
  font-size: clamp(.9rem, 2.4vw, 1.0625rem);
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.chartnote__line--patient { color: var(--ink); margin-top: .875rem; }
.mark {
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(216,85,43,.28) 62%);
}

.hero__h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.75rem, 10vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--ember);
  margin: 0 0 1.5rem;
}
.hero__lede {
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}
.hero__note {
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* ---------- stats ---------- */

.stats {
  list-style: none;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin: 0 0 3rem;
  padding: 0;
}
@media (min-width: 44rem) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.stat { border-top: 3px solid var(--ember); padding-top: 1rem; }
.stat__source { font-size: .85rem; color: var(--muted); margin: -1.5rem 0 3rem; max-width: 46rem; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1;
  color: var(--teal);
  margin-bottom: .625rem;
}
.stat__label {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 24ch;
}

/* ---------- medication check ---------- */

.section--check .eyebrow,
.section--check .prose--lead { color: #BFE3D6; }
.section--check .eyebrow--rule { border-top-color: rgba(255,255,255,.28); }
.section--check .h2 { color: #fff; }
.checkcta { margin: 2rem 0 1.5rem; }
.checkcta__note { color: #BFE3D6; font-size: .95rem; margin-top: .75rem; text-align: center; }

.form { margin-top: 2.5rem; }
.field { margin-bottom: 1.75rem; }
.label {
  display: block;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #fff;
  margin-bottom: .5rem;
}
.hint {
  font-size: .9375rem;
  color: #BFE3D6;
  margin: 0 0 .625rem;
  max-width: 52ch;
}
.input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: .875rem 1rem;
}
.input--area { resize: vertical; min-height: 9rem; }
.input[aria-invalid="true"] { border-color: var(--ember); }

.err {
  font-size: .9375rem;
  font-weight: 600;
  color: #FFD2C0;
  margin: .5rem 0 0;
}
.form__status {
  font-family: var(--mono);
  font-size: .9375rem;
  color: #BFE3D6;
  margin: 1rem 0 0;
  min-height: 1.4em;
}
.finequote {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.28);
}
.finequote p {
  font-size: .9375rem;
  line-height: 1.6;
  color: #BFE3D6;
  max-width: 60ch;
  margin: 0 0 .875rem;
}
.finequote p:last-child { margin-bottom: 0; }

/* ---------- split layouts ---------- */

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 50rem) {
  .split { grid-template-columns: 18rem 1fr; gap: 4rem; }
  .split--tight { grid-template-columns: 13rem 1fr; }
}
.split__art img { margin-inline: auto; }

.headshot {
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: var(--rule);
  margin-inline: auto;
  object-fit: cover;
  object-position: 50% 20%;
}

/* ---------- footer ---------- */

.foot {
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
  padding-block: 3.5rem;
}
.foot__mark { margin: 0 auto 1.25rem; }
.foot__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 .5rem;
}
.foot__date {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9FD3C2;
  margin: 0 0 1.5rem;
}
.foot__link { margin: 0 0 1.75rem; }
.foot__link a { color: #fff; }
.foot__legal {
  font-size: .875rem;
  line-height: 1.55;
  color: #9FD3C2;
  max-width: 40ch;
  margin-inline: auto;
}

/* ---------- press page utility ---------- */
.mono-inline {
  font-family: var(--mono);
  font-size: .9em;
  color: var(--teal);
}

/* ---------- checkbox line ---------- */
.checkline {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #fff;
  cursor: pointer;
  margin-bottom: 1rem;
}
.checkline input {
  width: 1.375rem;
  height: 1.375rem;
  margin: .15rem 0 0;
  accent-color: var(--ember);
  flex: none;
}
.input--addr { min-height: 6rem; }
