:root {
  --bg: #FFE6C8;
  --panel: #FFFFFF;
  --panel-2: #FAF0FC;
  --ink: #1C1A18;
  --accent: #EE5A2C;
  --accent-dark: #C2431B;
  --text: #1E1B18;
  --muted: #6B625A;
  --ok: #2E8B57;
  --warn: #B9800A;
  --err: #C8362B;
  --chrome: #F4F1ED;
  --code: #F7F5F2;
  --rule: #E6DFD6;
  --faint: #B3AAA1;
  --clear: transparent;
  --shadow-color: #000000;
  --soft-shadow-color: rgba(28, 26, 24, 0.14);
  --veil-color: rgba(28, 26, 24, 0.35);
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r-sm: 6px;
  --r-md: 8px;
  --r-pill: 999px;
  --bw: 2px;
  --bw-thin: 1.5px;
  --shadow-hard: 6px 6px 0 var(--shadow-color);
  --shadow-hard-xl: 14px 14px 0 var(--shadow-color);
  --shadow-soft: 0 10px 24px var(--soft-shadow-color);
  --wrap: 1200px;
  --header-wrap: 1280px;
  --reading: 800px;
  --gutter: 32px;
  --section-space: 112px;
  --header-height: 64px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lead: 18px;
  --text-h3: 22px;
  --text-h2: 28px;
  --text-h1: clamp(34px, 3.4vw, 48px);
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-brand: 800;
  --weight-display: 900;
  --ease: ease;
  --speed: 150ms;
  --reveal-speed: 450ms;
  --tab-cycle: 10s;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg, .badge-dot { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--clear); }
a { color: inherit; text-underline-offset: 4px; text-decoration-color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: var(--weight-display);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.1; margin: 0 0 24px; }
h2 { font-size: var(--text-h2); margin: 0 0 20px; }
h3 { font-size: var(--text-h3); margin: 0 0 16px; }
p { margin: 0 0 20px; }
strong { font-weight: var(--weight-bold); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  margin: 20px 0;
  padding: 20px;
  overflow-x: auto;
  background: var(--code);
  color: var(--text);
  border: var(--bw-thin) solid var(--rule);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  line-height: 1.75;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
:where(section, article, main, aside, nav, div) { min-width: 0; }
:where(h2, h3, section, [role="tabpanel"])[id] { scroll-margin-top: 24px; }
.wrap {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header-wrap {
  width: 100%;
  max-width: min(100%, calc(var(--header-wrap) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.surface-white { background: var(--panel); color: var(--text); }
.surface-lilac { background: var(--panel-2); color: var(--text); }
.surface-peach { background: var(--bg); color: var(--text); }
.muted { color: var(--muted); }
.mono, .eyebrow { font-family: var(--font-mono); }
.eyebrow { display: block; margin-bottom: 8px; font-size: var(--text-xs); color: var(--muted); }
.keep-word { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--panel);
  color: var(--text);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 12px 16px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  max-width: 100%;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--panel); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent); color: var(--ink); }
.btn-secondary { background: var(--panel); color: var(--text); }
.btn-secondary:hover, .btn-secondary.is-hover { background: var(--panel-2); color: var(--text); }
.btn:active, .btn.is-active { box-shadow: inset 0 0 0 2px var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--chrome); color: var(--muted); border-color: var(--muted); }
.btn.is-focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.notice { background: var(--accent); color: var(--text); font-size: 13px; font-weight: var(--weight-semibold); }
.notice .wrap { min-height: 32px; display: flex; align-items: center; padding-block: 4px; }
.notice a { text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: var(--bw-thin); text-underline-offset: 3px; }
.topbar { background: var(--panel); color: var(--text); border-bottom: var(--bw) solid var(--ink); position: relative; z-index: 40; }
.topbar .header-wrap { min-height: var(--header-height); display: flex; align-items: center; gap: 40px; position: relative; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--weight-brand);
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img { width: 30px; height: 30px; flex-shrink: 0; }
.desktop-nav { flex: 1; min-width: 0; }
.nav { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav > li { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--header-height);
  padding: 0 13px;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--text);
  text-decoration: none;
  background: var(--clear);
  border: 0;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover { color: var(--muted); }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -2px;
  height: 3px;
  background: var(--accent);
}
.nav-link svg { width: 12px; height: 12px; }
.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 196px;
  padding: 8px;
  background: var(--panel);
  color: var(--text);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-hard);
  z-index: 45;
}
.menu-label { display: block; padding: 4px 10px 6px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.menu a:hover, .menu a[aria-current] { background: var(--panel-2); color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.language-picker { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  background: var(--panel);
  color: var(--text);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.lang:hover { background: var(--panel-2); color: var(--text); }
.language-menu { left: auto; right: 0; }
.lang-short { display: none; }
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: var(--panel);
  color: var(--text);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
}
.hamburger svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-bottom: var(--bw) solid var(--ink);
  background: var(--panel);
  color: var(--text);
  z-index: 44;
}
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 12px; text-decoration: none; border-radius: var(--r-sm); }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--panel-2); color: var(--text); }
.drawer-languages { margin-top: 16px; padding-top: 16px; border-top: var(--bw) solid var(--rule); }
.nav-veil { position: fixed; inset: 0; z-index: 30; border: 0; padding: 0; background: var(--veil-color); color: var(--text); cursor: default; }
.static-dropdown { position: relative; }
.static-dropdown > summary { list-style: none; }
.static-dropdown > summary::-webkit-details-marker { display: none; }
.static-dropdown[open] > summary { background: var(--panel-2); color: var(--text); }
.static-mobile { display: none; }
.site-footer { border-top: var(--bw) solid var(--ink); background: var(--panel-2); color: var(--text); padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.4fr; gap: 56px; }
.footer-brand p { margin: 18px 0 0; max-width: 320px; color: var(--muted); font-size: var(--text-sm); line-height: 1.8; }
.footer-title { font-size: var(--text-base); margin: 0 0 14px; font-weight: var(--weight-brand); }
.footer-links { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.footer-languages { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; font-size: var(--text-sm); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; margin-top: 24px; border-top: var(--bw-thin) solid var(--ink); font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.card, .panel {
  padding: 28px;
  background: var(--panel);
  color: var(--text);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-hard);
}
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card-grid > *, .hero-grid > *, .main-grid > *, .footer-grid > * { min-width: 0; }
.prose { line-height: 1.85; }
.prose h2 { margin-top: 64px; }
.prose h3 { margin-top: 36px; }
.prose li { margin-block: 8px; }
.prose :where(p, li, dd) { overflow-wrap: break-word; }
.prose blockquote { margin-inline: 0; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal { transition: opacity var(--reveal-speed) var(--ease), transform var(--reveal-speed) var(--ease); }
.decorated-section { position: relative; overflow-x: clip; }
.decorative-background { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 1279px) {
  .topbar .header-wrap { gap: 24px; }
  .desktop-nav { display: none; }
  .hamburger { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .static-mobile { display: block; }
}
@media (max-width: 820px) {
  :root { --gutter: 20px; --section-space: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --text-h1: clamp(24px, 7vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 64px; --text-h2: 24px; }
  .topbar .header-wrap { gap: 8px; }
  .brand { font-size: var(--text-sm); gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang { padding-inline: 9px; min-height: 44px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .notice { font-size: var(--text-xs); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .card, .panel { padding: 20px; }
  .btn { min-height: 44px; padding-inline: 18px; font-size: 15px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}