:root {
  color-scheme: light dark;
  font:
    16px/1.65 'Segoe UI',
    system-ui,
    sans-serif;
  background: #f0f0f0;
  color: #171717;
  --surface: #fff;
  --surface-muted: #f7f7f7;
  --border: #ccc;
  --muted: #5e5e5e;
  --accent: #7351a6;
  --accent-hover: #583b87;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header,
.home,
.document,
.site-footer {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

nav a:hover {
  border-color: var(--border);
  background: var(--surface);
  color: inherit;
}

.home {
  flex: 1;
  padding-block: clamp(48px, 9vw, 88px);
}

.document {
  flex: 1;
  margin-block: clamp(32px, 6vw, 56px);
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.3;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.05em;
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.3rem;
}

h3 {
  margin-top: 1.6rem;
  font-size: 1.08rem;
}

p,
li {
  max-width: 70ch;
}

li {
  padding-left: 0.2rem;
  margin: 0.35rem 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home > p:not(.eyebrow) {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.policy-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.policy-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.policy-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-muted);
  color: inherit;
}

.policy-card strong,
.policy-card span {
  display: block;
}

.policy-card strong {
  color: var(--accent);
  font-size: 1.05rem;
}

.policy-card span {
  margin-top: 6px;
  color: var(--muted);
}

.site-footer {
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #121212;
    color: #f5f5f5;
    --surface: #1e1e1e;
    --surface-muted: #252525;
    --border: #383838;
    --muted: #bdbdbd;
    --accent: #c5a5f2;
    --accent-hover: #decaff;
  }
}

@media (max-width: 620px) {
  .site-header,
  .home,
  .document,
  .site-footer {
    width: calc(100% - 32px);
  }

  .policy-links {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 2px;
  }
}

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