:root {
  --bg: #f5f0e8;
  --surface: #fffaf3;
  --ink: #1f1b16;
  --muted: #6b6157;
  --line: #e2d8ca;
  --accent: #a8461f;
  --accent-ink: #ffffff;
  --radius: 14px;
  --wrap: 68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171411;
    --surface: #201c18;
    --ink: #f1ebe2;
    --muted: #b3a797;
    --line: #3a332c;
    --accent: #e0774a;
    --accent-ink: #1a0f09;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 1.25rem; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.mark svg { width: 1.6rem; height: 1.6rem; }
nav.langs { display: flex; gap: 0.25rem; font-size: 0.9rem; }
nav.langs a, nav.langs span {
  padding: 0.3rem 0.6rem; border-radius: 999px; text-decoration: none; color: var(--muted);
}
nav.langs span { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }

.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5.6vw, 3.7rem); line-height: 1.12; letter-spacing: -0.01em;
  margin: 0 0 1.1rem; max-width: 20ch; text-wrap: balance;
}
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 650; text-decoration: none;
}
.btn + .note { display: block; margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; }

section { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; margin: 0 0 1.75rem;
}

ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); counter-reset: s; }
ol.steps li {
  counter-increment: s; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem;
}
ol.steps li::before {
  content: counter(s); display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; margin-bottom: 0.9rem;
}
ol.steps h3, .grid h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
ol.steps p, .grid p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.split { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; }
.split p { margin: 0 0 1rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p:last-child { margin-bottom: 0; }

footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
