:root {
  color-scheme: light dark;
  --background: #f4f3ef;
  --surface: #fffefb;
  --text: #171716;
  --muted: #66645f;
  --line: #d9d6ce;
  --inverse: #fffefb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171716;
    --surface: #211f1d;
    --text: #f5f3ee;
    --muted: #aaa69d;
    --line: #3b3833;
    --inverse: #171716;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: inherit; text-underline-offset: 0.18em; }

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

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

.brand {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 650; }

main {
  margin-block: clamp(64px, 12vw, 112px);
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; }
.lead { margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.updated { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
section p:last-child, section ul:last-child, section ol:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 8px; }

.actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--inverse);
  font-weight: 700;
  text-decoration: none;
}
.text-link { color: var(--muted); }

footer {
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 24px, 760px); }
  .site-header { min-height: 64px; }
  nav { gap: 14px; }
  main { margin-block: 40px; padding: 24px 20px; border-radius: 18px; }
  h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .actions { align-items: flex-start; flex-direction: column; gap: 14px; }
}
