:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --text: #0d1117;
  --text-dim: #4b5565;
  --text-faint: #8b95a5;
  --line: #e5e8ec;
  --line-soft: #eef0f3;
  --accent: #0a66ff;
  --accent-soft: rgba(10, 102, 255, .07);
  --todo-bg: #fff4d6;
  --todo-line: #e8c56a;
  --todo-text: #6b4e00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --bg-soft: #11141a;
    --surface: #13171d;
    --text: #f2f4f7;
    --text-dim: #a8b2c0;
    --text-faint: #6b7483;
    --line: #22272f;
    --line-soft: #1a1f26;
    --accent: #4d93ff;
    --accent-soft: rgba(77, 147, 255, .11);
    --todo-bg: #3a2f10;
    --todo-line: #7a6320;
    --todo-text: #f0d894;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif; letter-spacing: -.021em; line-height: 1.18; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.prose-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 550; }

/* header block */
.page-head { padding: 72px 0 36px; border-bottom: 1px solid var(--line-soft); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 640; margin: 14px 0 0; }
.meta { margin-top: 18px; font-size: 14.5px; color: var(--text-faint); }

/* prose */
.prose { padding: 44px 0 72px; }
.prose h2 { font-size: 1.32rem; font-weight: 620; margin: 48px 0 0; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 30px 0 0; }
.prose p { margin: 14px 0 0; color: var(--text-dim); }
.prose ul { margin: 14px 0 0; padding-left: 22px; color: var(--text-dim); }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--text-faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 52px 0 0; }

/* callouts */
.callout {
  margin: 26px 0 0; padding: 20px 22px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px;
}
.callout p { margin-top: 0; }
.callout p + p { margin-top: 12px; }
.callout.accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 24%, transparent); }

.todo {
  background: var(--todo-bg); color: var(--todo-text);
  border: 1px dashed var(--todo-line); border-radius: 6px;
  padding: 1px 7px; font-size: .94em; font-weight: 600;
}

/* summary table */
.facts { margin: 26px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fact { display: grid; grid-template-columns: 210px 1fr; gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-weight: 560; font-size: 15px; }
.fact dd { margin: 0; color: var(--text-dim); font-size: 15.5px; }
@media (max-width: 620px) { .fact { grid-template-columns: 1fr; gap: 4px; } }

/* faq */
.faq { margin-top: 30px; border-top: 1px solid var(--line-soft); }
details { border-bottom: 1px solid var(--line-soft); }
summary { cursor: pointer; list-style: none; padding: 18px 2px; font-weight: 550; font-size: 16.5px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-faint); font-size: 20px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-bottom: 20px; }
details p { margin-top: 0; }
details p + p { margin-top: 12px; }

/* contact card */
.mailbox { margin: 30px 0 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.mailbox a.big { font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 560; letter-spacing: -.015em; }
.mailbox p { margin-top: 8px; font-size: 14.5px; }

/* footer */
footer { border-top: 1px solid var(--line-soft); padding: 36px 0 56px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-faint); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--text-faint); }
.foot-links a:hover { color: var(--text-dim); text-decoration: none; }
.disclaimer { margin-top: 20px; font-size: 12.5px; color: var(--text-faint); max-width: 56em; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
