:root {
  color-scheme: light dark;
  --background: #f7f4ee;
  --surface: #fffaf3;
  --text: #18231f;
  --muted: #52605a;
  --line: #d8d0c3;
  --accent: #2f6b55;
  --accent-strong: #204c3d;
  --focus: #0b7a75;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101614;
    --surface: #17211d;
    --text: #f4f1ea;
    --muted: #bdc8c1;
    --line: #34413b;
    --accent: #8dc7ad;
    --accent-strong: #b7ddca;
    --focus: #98d8d1;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

.skip-link {
  background: var(--surface);
  left: 1rem;
  padding: 0.6rem 0.9rem;
  position: absolute;
  top: -10rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-nav,
.site-footer,
.page-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  padding-top: 1.1rem;
}

.brand,
.footer-brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
}

.page-shell {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero-section {
  align-items: end;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

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

.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  margin: 0;
  max-width: 780px;
}

.hero-copy p:last-of-type {
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin: 1.25rem 0 0;
  max-width: 680px;
}

.primary-cta {
  align-items: center;
  background: var(--accent-strong);
  border-radius: 999px;
  color: var(--surface);
  display: inline-flex;
  font-weight: 700;
  margin-top: 1.6rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
}

.primary-cta:hover {
  background: var(--accent);
  color: var(--surface);
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.passport-card {
  align-items: center;
  aspect-ratio: 3 / 2;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
}

.passport-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.passport-card strong {
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1;
  padding: 0.75rem 1.1rem;
}

.panel-label {
  color: var(--muted);
  font-weight: 650;
  margin: 0 0 1rem;
}

.hero-panel ul {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-panel li {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.home-content {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
}

.feature-section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.feature-section p {
  color: var(--muted);
  margin: 0;
}

.legal-header {
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.legal-header h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1;
  margin: 0;
}

.legal-header p:last-child {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin: 1rem 0 0;
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: 780px;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.legal-content h2 {
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.2;
  margin: 2.4rem 0 0.75rem;
  padding-top: 1.8rem;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
  margin-top: 0;
}

.legal-content ul {
  padding-left: 1.3rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 680px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .site-footer nav {
    flex-direction: column;
    gap: 0.35rem;
  }

  .legal-content {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-left: calc(clamp(1rem, 4vw, 2rem) * -1);
    margin-right: calc(clamp(1rem, 4vw, 2rem) * -1);
  }
}

@media (max-width: 920px) {
  .hero-section,
  .home-content {
    grid-template-columns: 1fr;
  }
}
