:root {
  color-scheme: light dark;
  --bg: #f7f5ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fffdf8;
  --text: #24231f;
  --muted: #68655d;
  --line: rgba(54, 51, 43, 0.14);
  --accent: #9d4f37;
  --accent-dark: #783925;
  --accent-soft: #f1ddd3;
  --shadow: 0 18px 50px rgba(56, 43, 33, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(205, 151, 116, .22), transparent 32rem),
    radial-gradient(circle at 5% 40%, rgba(221, 190, 139, .14), transparent 28rem),
    var(--bg);
  line-height: 1.65;
}

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

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

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 12px;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.14);
}

nav { display: flex; gap: 8px; }

nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

nav a:hover,
nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.65);
}

.hero {
  max-width: 840px;
  padding: 112px 0 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

.lede.compact { font-size: 19px; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(120, 57, 37, .2);
}

.button-primary:hover { background: var(--accent-dark); }

.button-secondary {
  color: var(--text);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 90px;
}

.card {
  padding: 30px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.card:hover { transform: translateY(-2px); }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 13px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 850;
}

.card h2 { margin: 22px 0 6px; font-size: 23px; }
.card p { margin: 0; color: var(--muted); }
.card-link { display: inline-block; margin-top: 20px; color: var(--accent-dark); font-weight: 750; }

.document {
  max-width: 780px;
  padding: 80px 0 90px;
}

.document h1 { font-size: clamp(42px, 6vw, 66px); }
.updated { margin: 12px 0 36px; color: var(--muted); }

.document section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.document h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.015em; }
.document p { margin: 0 0 14px; }

.notice,
.support-panel {
  padding: 24px;
  margin: 36px 0;
  border: 1px solid rgba(157, 79, 55, .18);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notice p { margin: 5px 0 0; color: var(--muted); }
.support-panel h2 { margin-bottom: 20px; }

.steps {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 0 0 18px 48px;
  counter-increment: steps;
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 850;
}

.steps strong,
.steps span { display: block; }
.steps span { color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

footer a { color: inherit; }

@media (max-width: 650px) {
  .site-header { min-height: 70px; }
  .site-header,
  main,
  footer { width: min(100% - 28px, 1080px); }
  nav a { padding: 7px 8px; }
  .brand > span:last-child { display: none; }
  .hero { padding: 74px 0 64px; }
  .card-grid { grid-template-columns: 1fr; padding-bottom: 64px; }
  .document { padding: 58px 0 70px; }
  footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181714;
    --surface: rgba(42, 40, 35, .72);
    --surface-solid: #27251f;
    --text: #f5f0e7;
    --muted: #b9b3a8;
    --line: rgba(255,255,255,.12);
    --accent: #d48364;
    --accent-dark: #efaa8d;
    --accent-soft: #503225;
    --shadow: 0 18px 50px rgba(0,0,0,.2);
  }
  body {
    background:
      radial-gradient(circle at 85% 5%, rgba(155, 85, 58, .18), transparent 32rem),
      var(--bg);
  }
  nav a:hover,
  nav a.active,
  .button-secondary { background: rgba(255,255,255,.08); }
  .button-primary { color: #21140f; }
}

@media (prefers-reduced-motion: no-preference) {
  .card, .button { transition: transform .18s ease, background-color .18s ease; }
}
