:root {
  --ink: #090a08;
  --muted: #4b5147;
  --paper: #f8f3df;
  --paper-2: #fffdf2;
  --green: #39b755;
  --green-dark: #0f6d35;
  --red: #f03a35;
  --blue: #34b8e5;
  --purple: #8b36dc;
  --yellow: #ffd84f;
  --steel: #dfe8e5;
  --max: 1180px;
  --border: 3px solid var(--ink);
  --shadow: 10px 10px 0 var(--ink);
  --font-display: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
  --font-body: "Arial Black", Arial, Helvetica, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(9, 10, 8, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 10, 8, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f8f3df 0%, #e8f3ef 42%, #fff8d7 100%);
  background-size: 30px 30px, 30px 30px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 12%, rgba(57, 183, 85, 0.18), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(240, 58, 53, 0.13), transparent 24%),
    radial-gradient(circle at 75% 78%, rgba(52, 184, 229, 0.15), transparent 28%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 24px), var(--max));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 12px;
  background: rgba(255, 253, 242, 0.92);
  border: var(--border);
  box-shadow: 5px 5px 0 var(--ink);
  transform: translateX(-50%);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3rem);
  line-height: 1;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-links .x-link {
  min-width: 44px;
  padding: 0 14px;
  color: white;
  background: var(--ink);
}

.nav-links a:hover,
.primary-action:hover,
.secondary-action:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

main {
  overflow: hidden;
}

section {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  scroll-margin-top: 118px;
}

.hero {
  display: grid;
  min-height: 94dvh;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1.16fr);
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  padding: 112px 0 28px;
}

.hero-copy {
  position: relative;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 12px;
  color: white;
  background: var(--green-dark);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.82rem;
  line-height: 1.05;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 690px;
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 9.2vw, 7.9rem);
  line-height: 0.9;
  text-shadow: 6px 6px 0 var(--green), 10px 10px 0 var(--ink);
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 24px;
  font-size: clamp(1.08rem, 2vw, 1.46rem);
  line-height: 1.22;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  min-height: 54px;
  padding: 0 22px;
  font-size: 1rem;
}

.primary-action {
  color: white;
  background: var(--red);
}

.secondary-action {
  background: var(--yellow);
}

.hero-media {
  position: relative;
  display: grid;
  justify-items: center;
  align-self: center;
  padding: clamp(10px, 1.6vw, 18px);
}

.hero-media::before {
  position: absolute;
  inset: 4% 1% 1%;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, white 0 62%, var(--green) 62% 100%);
  border: var(--border);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-media img {
  width: min(100%, 690px);
  max-height: min(80dvh, 720px);
  aspect-ratio: 1.08 / 1;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(10px 18px 0 rgba(9, 10, 8, 0.16));
  transform: rotate(-1.5deg);
}

.stamp {
  position: absolute;
  right: -1%;
  bottom: 3%;
  max-width: 250px;
  padding: 14px 18px;
  color: var(--red);
  background: rgba(255, 253, 242, 0.92);
  border: 4px solid var(--red);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 0.92;
  text-align: center;
  transform: rotate(-10deg);
}

.dose-section,
.research,
.patient,
.shelf,
.side-effects {
  padding: clamp(58px, 9vw, 100px) 0;
}

.dose-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
}

.dose-bottle {
  display: grid;
  place-items: center;
  padding: 22px;
  background: white;
  border: var(--border);
  box-shadow: var(--shadow);
}

.dose-bottle img {
  max-height: 620px;
  object-fit: contain;
}

.dose-copy {
  padding: clamp(22px, 4vw, 40px);
  background: var(--paper-2);
  border: var(--border);
  box-shadow: var(--shadow);
}

.dose-copy h2,
.research h2,
.patient h2,
.shelf h2,
.side-effects h2 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.88;
}

.dose-copy p,
.dose-copy strong,
.research-copy > p,
.section-heading p,
.side-effects p,
.side-effects strong {
  font-size: clamp(1rem, 2vw, 1.34rem);
  line-height: 1.35;
}

.dose-copy strong,
.side-effects strong {
  display: block;
  padding: 16px;
  background: var(--green);
  border: 2px solid var(--ink);
}

.research {
  padding-top: clamp(50px, 7vw, 82px);
}

.research-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1.22fr);
  align-items: end;
  gap: 18px clamp(22px, 4vw, 50px);
}

.research h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(3rem, 5.1vw, 5.65rem);
  line-height: 0.9;
}

.research .section-kicker {
  grid-column: 1 / -1;
  width: fit-content;
}

.research-copy > img,
.shelf-wide {
  width: 100%;
  background: white;
  border: var(--border);
  box-shadow: var(--shadow);
}

.research-copy > img {
  grid-column: 2;
  grid-row: 2 / span 2;
  aspect-ratio: 1980 / 1080;
  object-fit: cover;
}

.stats-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.stats-grid article {
  display: grid;
  min-height: 164px;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.stats-grid span {
  display: block;
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.4vw, 6.7rem);
  line-height: 0.86;
}

.stats-grid p {
  margin: 0;
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  line-height: 1.25;
}

.patient-card {
  padding: clamp(18px, 4vw, 34px);
  background: var(--steel);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}

.file-top,
.patient-layout,
.diagnosis {
  display: grid;
  gap: 22px;
}

.file-top {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 22px;
  border-bottom: 4px solid var(--ink);
}

.file-top span {
  padding: 10px 14px;
  color: white;
  background: var(--red);
  border: 2px solid var(--ink);
  font-size: clamp(1.1rem, 3vw, 2rem);
}

.patient-layout {
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.patient-layout img {
  width: 100%;
  background: white;
  border: 3px solid var(--ink);
}

.patient-notes {
  padding: 20px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
}

.patient-notes p,
.patient-notes li,
.diagnosis p {
  font-size: clamp(0.98rem, 1.7vw, 1.2rem);
  line-height: 1.35;
}

.patient-notes h3 {
  margin: 16px 0 8px;
  color: var(--green-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.patient-notes ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
}

.diagnosis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.diagnosis p {
  margin: 0;
  padding: 18px;
  background: var(--yellow);
  border: 3px solid var(--ink);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 26px;
}

.shelf-wide {
  max-height: 620px;
  object-fit: cover;
  object-position: center;
}

.prescription-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.prescription-grid article {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 14px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.prescription-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: white;
  border: 2px solid var(--ink);
}

.prescription-grid h3 {
  margin: 14px 0 6px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.9;
}

.prescription-grid p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.side-effects {
  margin-bottom: 46px;
  padding-right: clamp(18px, 5vw, 52px);
  padding-left: clamp(18px, 5vw, 52px);
  color: white;
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}

.side-effects .section-kicker {
  color: var(--ink);
  background: var(--yellow);
}

.side-effects h2 {
  color: var(--red);
  text-shadow: 4px 4px 0 white;
}

.side-effects strong {
  color: var(--ink);
  background: var(--red);
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links a {
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .hero,
  .dose-section,
  .research-copy,
  .patient-layout,
  .diagnosis {
    grid-template-columns: 1fr;
  }

  .research-copy > img {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
  }

  .hero-media {
    order: -1;
    align-self: center;
  }

  .hero-media img {
    width: min(100%, 500px);
    max-height: 46dvh;
  }

  .prescription-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    display: block;
  }

  .hero {
    padding-top: 190px;
  }

  .brand {
    justify-content: center;
    margin-bottom: 8px;
    font-size: 2.55rem;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-links a {
    min-height: 38px;
  }

  h1 {
    font-size: clamp(3.55rem, 17vw, 5.55rem);
    text-shadow: 4px 4px 0 var(--green), 7px 7px 0 var(--ink);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid article {
    min-height: 118px;
    grid-template-columns: minmax(112px, 0.44fr) 1fr;
    align-items: center;
  }

  .stamp {
    right: -2px;
    bottom: 3%;
    max-width: 165px;
    padding: 10px 12px;
    font-size: 1.16rem;
  }

  .dose-copy,
  .patient-card {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .prescription-grid {
    grid-template-columns: 1fr;
  }

  .file-top {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
