:root {
  color-scheme: light dark;

  --background: #fff;
  --foreground: #000;
  --muted: #555;
  --border: #d5d5d5;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--foreground);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.6;
}

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

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.site-navigation {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero {
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 120px;
}

.hero-message {
  min-height: 2.5em;
}

.hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.hero-prefix {
  font-weight: 800;
}

.rotating-headline {
  display: inline;
  opacity: 1;
  transition: opacity 240ms ease;
}

.rotating-headline.is-changing {
  opacity: 0;
}

.hero-summary {
  margin: 56px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.25;
}

.hero-detail {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.primary-action {
  display: inline-block;
  padding: 13px 20px;
  border: 2px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
  font-weight: 700;
  text-decoration: none;
}

.text-action {
  font-weight: 600;
}

.content-section {
  max-width: 820px;
  padding: 112px 0;
  border-top: 1px solid var(--border);
}

.section-label,
.example-label {
  display: block;
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.content-section h2,
.final-call-to-action h2 {
  margin: 0 0 32px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.section-lead {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.4;
}

.route-example,
.anchor-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 48px;
  padding: 32px 0;
  border-top: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
}

.benefit-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.benefit-list li::before {
  content: "✓";
  margin-right: 14px;
}

.continuity-example {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 48px 0;
  padding: 32px 0;
  border-top: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
}

.continuity-example div {
  display: flex;
  flex-direction: column;
}

.example-arrow {
  font-size: 2rem;
}

.final-call-to-action {
  padding: 144px 0 120px;
  border-top: 1px solid var(--border);
}

.final-call-to-action h2 {
  max-width: 900px;
}

.final-call-to-action p {
  margin-top: 28px;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

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

  .hero {
    min-height: auto;
    padding: 96px 0 112px;
  }

  .hero-message {
    min-height: 4.5em;
  }

  .content-section {
    padding: 80px 0;
  }

  .continuity-example {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .example-arrow {
    transform: rotate(90deg);
  }

  .final-call-to-action {
    padding: 96px 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000;
    --foreground: #fff;
    --muted: #aaa;
    --border: #333;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-headline {
    transition: none;
  }
}
