:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1f23;
  --text-muted: #5c646e;
  --border: #e2e0da;
  --accent: #16607a;
  --accent-hover: #0f4a5e;
  --focus: #16607a;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #14171a;
    --surface: #1b1f23;
    --text: #e8e6e1;
    --text-muted: #9aa3ac;
    --border: #2c3238;
    --accent: #6fc3dd;
    --accent-hover: #98d7ea;
    --focus: #6fc3dd;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.masthead a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

/* ---------- typography ---------- */

h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 2.5rem 0 0.65rem;
  letter-spacing: -0.005em;
  scroll-margin-top: 1.5rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.4rem;
  scroll-margin-top: 1.5rem;
}

p,
li {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.4rem;
}

li:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 650;
}

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

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

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

.meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---------- summary callout ---------- */

.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.15rem 1.25rem 0.25rem;
  margin: 0 0 2rem;
}

.summary h2 {
  margin-top: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* ---------- index list ---------- */

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-list li {
  margin: 0 0 0.75rem;
}

.policy-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.policy-list a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.policy-list .name {
  display: block;
  font-weight: 650;
  font-size: 1.05rem;
}

.policy-list .desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* ---------- footer ---------- */

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 0.4rem;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 2rem 1rem 3rem;
  }
  h1 {
    font-size: 1.6rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .masthead,
  footer {
    border-color: #ccc;
  }
}
