:root {
  color-scheme: light;
  --ink: #030218;
  --ink-soft: #15142b;
  --paper: #fefdfd;
  --paper-soft: #f4f2f6;
  --aqua: #66c5b8;
  --aqua-strong: #18b09e;
  --lavender: #e8e6f0;
  --text: #2b2940;
  --muted: #666377;
  --line: rgba(3, 2, 24, 0.12);
  --line-dark: rgba(232, 230, 240, 0.2);
  --radius-large: 1.5rem;
  --radius-small: 0.75rem;
  --page-width: 74rem;
}

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

html {
  min-width: 20rem;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

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

.site-shell {
  min-height: 100dvh;
  isolation: isolate;
}

.page-container {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--lavender);
}

.header-inner {
  display: flex;
  min-height: 5.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-link {
  flex: 0 0 auto;
}

.brand-link img {
  width: 7.4375rem;
  height: auto;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
}

.desktop-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: rgba(232, 230, 240, 0.72);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--paper);
}

.desktop-nav a[aria-current="page"] {
  background: rgba(232, 230, 240, 0.1);
  color: var(--paper);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: flex;
  min-width: 3rem;
  min-height: 3rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--paper);
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(18rem, calc(100vw - 2.5rem));
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-small);
  background: var(--ink-soft);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.24);
}

.mobile-nav-menu a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line-dark);
  color: var(--lavender);
  text-decoration: none;
}

.mobile-nav-menu a:first-child {
  border-top: 0;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a[aria-current="page"] {
  background: rgba(232, 230, 240, 0.08);
  color: var(--paper);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(102, 197, 184, 0.22), transparent 30rem),
    var(--ink);
  color: var(--lavender);
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: -15rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(102, 197, 184, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.eyebrow {
  max-width: 56ch;
  margin: 0 0 1.1rem;
  color: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 17ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-copy {
  max-width: 47ch;
  margin: 1.75rem 0 0;
  color: rgba(232, 230, 240, 0.78);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.main-content {
  background: var(--paper);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin: 0;
  max-width: 28ch;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-intro {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.resource-card {
  display: flex;
  min-width: 0;
  min-height: 15rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
}

.resource-card[href]:hover {
  border-color: rgba(3, 2, 24, 0.34);
  transform: translateY(-0.2rem);
  transition: transform 160ms ease;
}

.resource-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.resource-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.resource-action {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.resource-card[href]:hover .resource-action,
.resource-action:hover {
  color: #0f7e72;
}

.breadcrumb {
  margin: 0 0 2.25rem;
}

.breadcrumb a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.route-card {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--paper);
}

.route-label {
  margin: 0;
  color: #0f7e72;
  font-size: 0.9375rem;
  font-weight: 700;
}

.route-card h3 {
  max-width: 24ch;
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.route-description {
  max-width: 47ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.route-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.route-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.route-recovery {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.route-recovery a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

.route-recovery a:hover {
  color: #0f7e72;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.step {
  min-width: 0;
  padding-inline: 2rem;
  border-left: 1px solid var(--line);
}

.step:first-child {
  padding-left: 0;
  border-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step-number {
  margin: 0;
  color: var(--aqua-strong);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.step h3 {
  margin: 0.5rem 0 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.step p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.privacy-note {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(14rem, 1fr);
  gap: 2.5rem;
  align-items: end;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius-large);
  background: var(--ink);
  color: var(--lavender);
}

.privacy-note h2 {
  max-width: 26ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.privacy-note p {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: rgba(232, 230, 240, 0.76);
  text-wrap: pretty;
}

.note-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.note-links a {
  color: var(--paper);
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.note-links a:hover {
  color: var(--aqua);
}

.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--lavender);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding-block: 2.5rem;
}

.footer-brand img {
  width: 6rem;
  height: auto;
}

.footer-brand p {
  margin: 0.9rem 0 0;
  color: rgba(232, 230, 240, 0.62);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.4rem;
}

.footer-nav a {
  color: rgba(232, 230, 240, 0.72);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--paper);
}

.cookie-settings-link {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 52rem) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .resource-grid,
  .route-grid,
  .steps,
  .privacy-note {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 12rem;
  }

  .steps {
    gap: 0;
  }

  .step {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 36rem) {
  .header-inner {
    min-height: 5rem;
  }

  .brand-link img {
    width: 6.6rem;
  }

  .hero-inner {
    padding-block: 4rem 4.75rem;
  }

  .section {
    padding-block: 3.75rem;
  }

  .route-button {
    width: 100%;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .route-button,
  .note-links {
    display: none;
  }

  .hero {
    background: #fff;
    color: #000;
  }

  .hero h1,
  .hero-copy,
  .eyebrow {
    color: #000;
  }

  .section {
    padding-block: 2rem;
  }
}
