:root {
  color-scheme: light;
  --bg: #f7f3ed;
  --paper: #fffdf8;
  --ink: #201a16;
  --muted: #665c54;
  --rule: #ded2c4;
  --accent: #7d3f2b;
  --accent-strong: #4c2419;
  --focus: #0f766e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.65;
}

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

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 253, 248, 0.9);
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1060px;
  padding: 20px 24px;
}

.brand {
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.nav-links a {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 650;
}

.page {
  margin: 0 auto;
  max-width: 1060px;
  padding: 64px 24px 80px;
}

.hero {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 42px;
  padding-bottom: 36px;
}

.hero p {
  color: var(--muted);
  font-size: 22px;
  max-width: 740px;
}

h1,
h2,
h3 {
  color: var(--accent-strong);
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0;
  max-width: 850px;
}

h2 {
  font-size: clamp(27px, 4vw, 38px);
  margin-top: 44px;
}

h3 {
  font-size: 22px;
  margin-top: 30px;
}

p,
ul,
ol {
  max-width: 820px;
}

li + li {
  margin-top: 8px;
}

.doc {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(24px, 5vw, 52px);
}

.meta {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  margin-top: 18px;
}

.callout {
  background: #f2e7dc;
  border-left: 4px solid var(--accent);
  margin: 28px 0;
  padding: 18px 20px;
}

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

.policy-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 24px;
}

.policy-card h2 {
  font-size: 26px;
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  padding: 24px;
  text-align: center;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    padding-top: 42px;
  }

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