:root {
  color-scheme: light dark;
  --background: #fbf7f2;
  --surface: #f2e8dc;
  --text: #171c1f;
  --muted: #6d6a66;
  --accent: #a9542d;
  --accent-dark: #833b20;
  --border: #e4d7ca;
  --shadow: 0 18px 45px rgba(80, 47, 30, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

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

.page {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
}

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12vh 0 32px;
}

.hero {
  padding: clamp(28px, 7vw, 64px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  border-radius: 18px;
  background: var(--accent);
  color: white;
  font-size: 28px;
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.document h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}

h2 {
  margin: 42px 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
}

p,
li {
  font-size: 1.04rem;
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.2rem;
}

.updated {
  margin-bottom: 40px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  color: var(--accent-dark);
}

.document {
  padding: 48px 0 32px;
}

nav {
  margin-bottom: 72px;
}

nav a {
  font-weight: 700;
  text-decoration: none;
}

article {
  padding: clamp(24px, 6vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 32px 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
  font-size: inherit;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #161311;
    --surface: #241e1a;
    --text: #f8f3ed;
    --muted: #c2b9af;
    --accent: #d17a50;
    --accent-dark: #efa17b;
    --border: #3b312b;
    --shadow: none;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 24px, 760px);
  }

  .home {
    padding-top: 28px;
  }

  .hero,
  article {
    border-radius: 22px;
  }

  nav {
    margin-bottom: 40px;
  }
}
