:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #152238;
  --muted: #58677c;
  --line: #dce2ea;
  --brand: #185adb;
  --brand-strong: #0e43ad;
  --brand-soft: #e9f0ff;
  --warning: #b15c00;
  --warning-soft: #fff1da;
  --safe: #08795c;
  --safe-soft: #e2f6ef;
  --shadow: 0 18px 50px rgba(24, 45, 82, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-strong); }
a:focus-visible, button:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
img, svg { max-width: 100%; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .8rem 1rem; background: var(--text); color: var(--surface); }
.skip-link:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; font-size: .8rem; letter-spacing: -.04em; }
.brand-number { color: var(--brand); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.nav a { padding: .45rem .65rem; color: var(--muted); text-decoration: none; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }

main { min-height: 65vh; }
.hero { padding: clamp(3.2rem, 8vw, 7rem) 0 3rem; }
.eyebrow { margin: 0 0 .7rem; color: var(--brand-strong); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { max-width: 880px; margin: 0; font-size: clamp(2.25rem, 6vw, 4.8rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { margin: 0 0 .55rem; font-size: 1.2rem; }
.lead { max-width: 760px; margin: 1.2rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1rem; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand); color: #fff; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--brand-strong); color: #fff; }
.button.secondary { background: transparent; color: var(--brand); }
.button.secondary:hover { background: var(--brand-soft); color: var(--brand-strong); }

.notice { margin-top: 2rem; padding: 1rem 1.1rem; border-left: 4px solid var(--warning); border-radius: 8px; background: var(--warning-soft); color: #6f3b00; }
.notice strong { display: block; margin-bottom: .2rem; }
.notice.safe { border-color: var(--safe); background: var(--safe-soft); color: #075f49; }
.section { padding: 3.5rem 0; }
.section.alt { background: color-mix(in srgb, var(--surface) 65%, transparent); border-block: 1px solid var(--line); }
.section-intro { max-width: 760px; margin: -.3rem 0 1.5rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { border-color: var(--brand); color: inherit; }
.tag { display: inline-block; margin-bottom: .8rem; padding: .25rem .55rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: .78rem; font-weight: 800; }
.tag.preparing { background: var(--warning-soft); color: #7a4100; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: steps; display: grid; gap: 1rem; }
.steps li { position: relative; padding: 0 0 1rem 3rem; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.definition-list { display: grid; grid-template-columns: 180px 1fr; gap: .9rem 1.2rem; margin: 0; }
.definition-list dt { font-weight: 800; }
.definition-list dd { margin: 0; color: var(--muted); }
.breadcrumbs { padding-top: 1.25rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.content { max-width: 820px; }
.content h2 { margin-top: 2.5rem; }
.content h3 { margin-top: 1.7rem; }
.content p, .content li { color: var(--muted); }
.content strong { color: var(--text); }
.content ul { padding-left: 1.25rem; }
.status-list { display: grid; gap: .85rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.status-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.status-badge { flex: 0 0 auto; padding: .2rem .55rem; border-radius: 999px; background: var(--warning-soft); color: #7a4100; font-size: .78rem; font-weight: 800; }
.site-footer { margin-top: 3rem; padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: .45rem 1rem; }
.footer-links a { color: var(--muted); }
.fine { font-size: .88rem; }

@media (max-width: 760px) {
  .site-header { position: static; }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .8rem; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; }
  .nav a { white-space: nowrap; }
  .grid, .grid.three, .footer-grid { grid-template-columns: 1fr; }
  .definition-list { grid-template-columns: 1fr; gap: .2rem; }
  .definition-list dd { margin-bottom: .8rem; }
  .status-list li { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --surface: #151f2d;
    --text: #eef3fb;
    --muted: #aebbd0;
    --line: #2d3a4f;
    --brand: #79a3ff;
    --brand-strong: #a7c1ff;
    --brand-soft: #1d3155;
    --warning: #ffb85c;
    --warning-soft: #3a2918;
    --safe: #64d7b2;
    --safe-soft: #15372e;
    --shadow: none;
  }
  .notice { color: #ffd59d; }
  .notice.safe { color: #a9efd8; }
  .button { color: #07111f; }
  .button:hover { color: #07111f; }
  .brand-mark { color: #07111f; }
  .steps li::before { color: #07111f; }
}
