:root {
  color-scheme: light dark;
  --bg: #f7f4ee;
  --text: #1f1c18;
  --muted: #675f55;
  --panel: #fffaf1;
  --line: #d8cfc1;
  --accent: #0f6b63;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181614;
    --text: #f2ece2;
    --muted: #c4b8a8;
    --panel: #23201d;
    --line: #3a342e;
    --accent: #73d1c7;
  }
}

* {
  box-sizing: border-box;
}

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

body.home {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.6;
}

main {
  max-width: 840px;
  margin: 0 auto;
  padding: 44px 22px 72px;
}

.home main {
  max-width: 880px;
  min-height: 100vh;
  padding: 56px 24px;
  display: grid;
  align-content: center;
  gap: 40px;
}

header,
.policy-section {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

header {
  padding-top: 0;
}

h1,
h2 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.35rem, 8vw, 4.25rem);
}

.home h1 {
  margin: 0;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 0.95;
}

h2 {
  margin: 30px 0 10px;
  font-size: 1.2rem;
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

p,
li {
  color: var(--muted);
}

p {
  margin: 0 0 14px;
}

.home p {
  margin: 0;
  max-width: 660px;
  font-size: 1.2rem;
}

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

ul {
  margin: 0;
  padding-left: 1.3rem;
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
  font-size: 0.95rem;
}

.home nav {
  gap: 12px;
  margin-bottom: 0;
}

.home nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--panel);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}
