:root {
  color-scheme: light dark;
  --background: #f2f2ef;
  --surface: #e7e7e2;
  --surface-strong: #d9d9d2;
  --text: #1d1d1b;
  --muted: #5e5e58;
  --line: #c6c6be;
  --accent: #a94f24;
  --accent-strong: #823817;
  --accent-text: #f8f3ee;
  --focus: #c75f2c;
  --radius: 16px;
  --page: min(1180px, calc(100% - 40px));
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171716;
    --surface: #232321;
    --surface-strong: #30302d;
    --text: #efefe9;
    --muted: #adada5;
    --line: #3d3d38;
    --accent: #d87843;
    --accent-strong: #ed915c;
    --accent-text: #1b130f;
    --focus: #ed915c;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --background: #f2f2ef;
  --surface: #e7e7e2;
  --surface-strong: #d9d9d2;
  --text: #1d1d1b;
  --muted: #5e5e58;
  --line: #c6c6be;
  --accent: #a94f24;
  --accent-strong: #823817;
  --accent-text: #f8f3ee;
  --focus: #c75f2c;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #171716;
  --surface: #232321;
  --surface-strong: #30302d;
  --text: #efefe9;
  --muted: #adada5;
  --line: #3d3d38;
  --accent: #d87843;
  --accent-strong: #ed915c;
  --accent-text: #1b130f;
  --focus: #ed915c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  width: max-content;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

nav a,
footer a,
.text-link {
  color: var(--text);
  font-weight: 650;
}

.theme-toggle {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.hero {
  width: var(--page);
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}

.hero-copy {
  max-width: 600px;
}

.eyebrow,
.proof-label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reviewer-link span {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 750;
}

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

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: 16px 0 20px;
  font-size: clamp(2.9rem, 5.6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-summary {
  max-width: 51ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--text) 13%, transparent);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.evidence-strip {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-strip article {
  min-width: 0;
  padding: 28px 22px 30px;
}

.evidence-strip article + article {
  border-left: 1px solid var(--line);
}

.evidence-strip strong,
.evidence-strip span {
  display: block;
}

.evidence-strip strong {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.evidence-strip span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.compact {
  max-width: 680px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading p,
.safety-copy > p,
.limits > div p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.method-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  column-gap: clamp(28px, 7vw, 100px);
  border-top: 1px solid var(--line);
}

.method-grid article {
  min-height: 170px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.method-grid h3 {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
}

.method-grid p {
  max-width: 44ch;
  margin-bottom: 0;
  color: var(--muted);
}

.safety {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 9vw, 120px);
  align-items: center;
}

.safety-copy h2 {
  max-width: 13ch;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-strong);
}

.safety-proof {
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface-strong);
}

.safety-proof strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.safety-proof p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
}

.reviewer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.reviewer-link {
  min-height: 230px;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.reviewer-link:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.reviewer-link-featured {
  grid-row: span 2;
  min-height: 476px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--accent);
  color: var(--accent-text);
}

.reviewer-link-featured:hover {
  background: var(--accent-strong);
}

.reviewer-link-featured span,
.reviewer-link-featured p {
  color: var(--accent-text);
}

.reviewer-link strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.reviewer-link p {
  max-width: 42ch;
  margin: 16px 0 0;
  color: var(--muted);
}

.limits {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.limits li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

footer {
  width: var(--page);
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 48px 0 56px;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    max-width: 15ch;
  }

  .evidence-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .evidence-strip article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .evidence-strip article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .safety,
  .limits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 64px;
  }

  .theme-toggle {
    padding: 7px 10px;
  }

  .hero {
    padding-top: 40px;
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 4.1rem);
  }

  .evidence-strip,
  .method-grid,
  .reviewer-grid {
    grid-template-columns: 1fr;
  }

  .evidence-strip article + article,
  .evidence-strip article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .method-grid article {
    min-height: auto;
  }

  .reviewer-link,
  .reviewer-link-featured {
    min-height: 250px;
    grid-row: auto;
  }

  .section {
    padding: 72px 0;
  }

  footer {
    min-height: 180px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
