:root {
  color-scheme: light dark;
  --background: #f7f5f0;
  --surface: #ffffff;
  --text: #25231f;
  --muted: #625f58;
  --border: #d8d3c8;
  --accent: #735b26;
  --accent-hover: #4f3e18;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-120%);
}

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

.page-main,
.site-footer {
  width: min(100%, 720px);
  margin-inline: auto;
}

.page-main {
  padding: clamp(2rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem) 2rem;
}

.page-header {
  margin-bottom: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 6vw, 2.75rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.075rem;
}

p,
ul,
ol {
  margin-block: 0.75rem;
}

ul,
ol {
  padding-inline-start: 1.5rem;
}

li + li {
  margin-top: 0.6rem;
}

.effective-date,
.lead {
  color: var(--muted);
}

.lead {
  font-size: 1.075rem;
}

.content-section {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

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

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

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

.site-footer {
  padding: 1rem clamp(1.25rem, 5vw, 2.5rem) 3rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171714;
    --surface: #22211d;
    --text: #f2efe7;
    --muted: #c5c0b5;
    --border: #4a473f;
    --accent: #e1c779;
    --accent-hover: #f2dc99;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 120ms ease;
  }
}
