:root {
  color-scheme: light dark;
  --navy: #080d1b;
  --navy-soft: #12192d;
  --gold: #d8b766;
  --paper: #f7f6fb;
  --ink: #171821;
  --muted: #5d6070;
  --line: rgba(90, 91, 108, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: #735b12;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid #7b68ee;
  outline-offset: 4px;
}

header {
  color: white;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}

.topbar,
main,
footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

nav a {
  color: #f1e5bf;
  font-weight: 650;
}

main {
  padding-block: 3rem 4rem;
}

body:has(nav a[aria-current="page"][href="/privacy"]) main,
body:has(nav a[aria-current="page"][href="/delete-account"]) main {
  overflow-wrap: anywhere;
}

.hero,
.panel {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 3rem rgba(8, 13, 27, 0.07);
}

.hero {
  margin-bottom: 1.5rem;
}

.panel + .panel {
  margin-top: 1.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin-top: 0;
  font-size: clamp(2rem, 7vw, 3.75rem);
}

h2 {
  margin-top: 0;
  color: #493a0b;
}

.eyebrow {
  color: #765f16;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted,
.updated {
  color: var(--muted);
}

.language-link {
  display: inline-block;
  margin-top: 0.5rem;
}

.notice {
  padding: 1rem 1.2rem;
  background: rgba(216, 183, 102, 0.16);
  border-left: 4px solid var(--gold);
  border-radius: 0.6rem;
}

.pending-contact {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 750;
}

footer {
  padding-block: 2rem 3rem;
  color: var(--muted);
}

@media (max-width: 42rem) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    color: #f3f0fa;
    background: #090e1c;
  }

  .hero,
  .panel {
    background: var(--navy-soft);
    border-color: rgba(238, 225, 187, 0.18);
  }

  h2,
  a,
  .eyebrow {
    color: #e5c875;
  }

  .muted,
  .updated,
  footer {
    color: #b8b8c4;
  }
}
