:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --line: #e6ddc9;
  --ink: #241d12;
  --muted: #6b6350;
  --accent: #cf5514;
  --accent-ink: #7a3208;
  --accent-soft: #f6ddc6;
  --indigo: #2f3d99;
  --indigo-soft: #e3e6f7;
  --good: #2c8a5a;
  --radius: 14px;
  --shadow: 0 16px 36px -24px rgba(36, 29, 18, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Roboto, sans-serif;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 20px;
}
.brand {
  font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 8px; margin-right: auto;
}
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { color: var(--indigo); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 14.5px; border: 1px solid var(--line);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff8f2; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-small { padding: 7px 14px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

/* main content */
main { min-height: 60vh; }
.hero {
  padding: 56px 0 40px; background: linear-gradient(180deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { text-align: center; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; }
.hero p.lede { max-width: 60ch; margin: 0 auto 22px; color: var(--muted); font-size: 17px; }
.hero .btn-row { justify-content: center; }

.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 18px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; color: var(--accent-ink); }
.prose h2:first-of-type { margin-top: 8px; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--indigo); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 15.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.callout {
  background: var(--indigo-soft); border-left: 4px solid var(--indigo); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; margin: 20px 0; font-size: 14.5px;
}
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em;
  background: var(--indigo); color: #fff; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}

.steps { counter-reset: step; padding: 0; margin: 24px 0; list-style: none; }
.step { position: relative; padding: 4px 0 30px 46px; border-left: 2px solid var(--line); margin-left: 17px; }
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -17px; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 2px 0 6px; font-size: 16.5px; }
.step p { margin: 0 0 8px; }
.step img {
  display: block; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line);
  box-shadow: var(--shadow); max-width: 320px;
}
.step figcaption { font-size: 12px; color: var(--muted); margin-top: 5px; }

.media-note {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px;
  color: var(--muted); font-size: 13.5px; background: var(--surface); margin: 18px 0;
}

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface-2, #f4efe1); }

dl.glossary dt { font-weight: 800; margin-top: 18px; color: var(--accent-ink); }
dl.glossary dd { margin: 4px 0 0; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-inner { padding: 30px 20px; font-size: 13.5px; color: var(--muted); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0; }
.footer-links a { color: var(--indigo); text-decoration: none; }
.copyright { margin: 10px 0 0; font-size: 12px; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .hero { padding: 40px 0 28px; }
}
