:root {
  --bg:#FFFFFF;
  --bg-panel:#F4F8FA;
  --bg-panel-2:#EAF1F4;
  --border:#E2E8EC;
  --border-strong:#D2DCE1;
  --accent:#0D7F96;
  --accent-dark:#08596A;
  --accent-top:#1590A9;
  --accent-bright:#1A9BB4;
  --accent-wash:rgba(13,127,150,.10);
  --accent-ring:rgba(13,127,150,.18);
  --text:#14202B;
  --text-muted:#5A6773;
  --text-faint:#8794A0;
  --success:#1F9D6B;
  --warn:#C98A12;
  --error:#D1434B;
  --on-accent:#FFFFFF;

  --tint:#F0F7F9;
  --ink:#142B34;
  --ink-text:#FFFFFF;
  --ink-muted:#C4D6DE;
  --ink-link:#A2DFE9;
  --mist-sky:#D4ECF5;
  --mist-peach:#F9D9C8;
  --mist-lilac:#E3DAF5;
  --band-proxy:var(--accent);
  --band-direct:#79C1D9;
  --band-block:#B4A2E6;
  --glass-hi:var(--bg);
  --glass-1:#CFE7EE;
  --glass-2:#AFD5E0;
  --glass-3:#7FB6C6;
  --glass-edge:rgba(8,89,106,.34);
  --beam:#8FD3E2;
  --shadow-teal:var(--accent-dark);
  --shadow-ink:var(--text);
  --aurora-a:rgba(13,127,150,.10);
  --aurora-b:rgba(13,127,150,.065);
  --aurora-c:rgba(8,89,106,.05);
  --dot:rgba(20,32,43,.12);
  --mask-ink:#000000;
  --hatch:#E3E9EC;
  --white-glass:rgba(255,255,255,.74);
  --veil:rgba(20,32,43,.36);
  --clear:transparent;
  --color-primary:var(--accent);
  --color-accent:var(--accent-top);
  --color-text:var(--text);
  --color-bg:var(--bg);
  --color-canvas:var(--bg);
  --shadow-xs:0 1px 2px rgba(20,32,43,.06);
  --shadow-1:0 1px 2px rgba(20,32,43,.05),0 10px 28px -16px rgba(20,32,43,.16);
  --shadow-2:0 1px 3px rgba(20,32,43,.06),0 24px 48px -24px rgba(20,32,43,.24);
  --shadow-float:0 1px 2px rgba(20,32,43,.08),0 8px 18px -8px rgba(20,32,43,.20);
  --shadow-cta:inset 0 1px 0 rgba(255,255,255,.22),0 1px 2px rgba(8,89,106,.30),0 10px 22px -10px rgba(13,127,150,.72);

  --r-pin:3px;
  --r-ctl:6px;
  --r-card:10px;
  --r-stage:14px;
  --r-pill:999px;
  --font-display:"Inter","Noto Sans SC","Noto Sans JP","Noto Sans KR","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-body:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Hiragino Kaku Gothic ProN","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --size-body:15px;
  --size-h1:clamp(34px,3.05vw,44px);
  --size-h2:clamp(23px,2.25vw,28px);
  --size-h3:19px;
  --size-small:13px;
  --weight-display:800;
  --weight-label:600;
  --frame-w:1360px;
  --read-w:880px;
  --gutter:40px;
  --nav-height:64px;
  --section-y:52px;
  --gap:14px;
  --hatch-height:40px;
  --z-nav:60;
  --z-fab:40;
  --motion-fast:150ms;
  --motion-card:250ms;
  --motion-reveal:380ms;
}

*,*::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:var(--size-body)/1.6 var(--font-body);
  line-break:strict;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
[hidden] { display:none !important }
:where(img,svg) { display:block; max-width:100% }
img { height:auto }
:where(button,input,select,textarea) { font:inherit }
:where(button,summary) { cursor:pointer }
:where(a) { color:var(--accent-dark); text-underline-offset:.2em }
:where(a:hover) { text-decoration-thickness:2px }
:focus-visible { outline:2px solid var(--accent-dark); outline-offset:2px; border-radius:var(--r-ctl) }
h1,h2,h3 {
  margin:0 0 .55em; font-family:var(--font-display); font-weight:var(--weight-display);
  letter-spacing:-.02em; line-height:1.2; text-wrap:balance;
  word-break:auto-phrase;
}
h1 { font-size:var(--size-h1) }
h2 { font-size:var(--size-h2) }
h3 { font-size:var(--size-h3) }
p { margin:0 0 1em }
p:last-child { margin-bottom:0 }
small { font-size:var(--size-small) }
.nowrap { white-space:nowrap }
.muted { color:var(--text-muted) }
:where(code,kbd,pre,.mono) { font-family:var(--font-mono) }
code { overflow-wrap:anywhere }
:is(.prose,.doc-body) :not(pre) > code {
  padding:0.08em 0.38em; border-radius:var(--r-pin);
  background:var(--bg-panel-2); font-size:0.92em;
}
pre {
  max-width:100%; min-width:0; overflow-x:auto; margin:1em 0; padding:12px 14px;
  color:var(--text); background:var(--bg-panel); border:1px solid var(--border);
  border-radius:var(--r-ctl); font-size:var(--size-small);
}
pre code { overflow-wrap:normal; white-space:pre }
:where(.prose,.article-body,.doc-body,.card,.panel) { min-width:0; overflow-wrap:anywhere }
:where(.prose,.article-body,.doc-body) :where(h2,h3) { margin-top:1.6em }
:where(.prose,.article-body,.doc-body) :where([id]) { scroll-margin-top:5rem }
:where(.grid,.site-footer-grid,.bento,.pair,.split,.feature-row,.chapter-layout,.facts,.swatches) > * { min-width:0 }
:where(.badge-dot,.tag-dot,.rule-dot,.btn svg,.plat-ico,.tab-icon,.icon,.app-icon) { flex-shrink:0 }

.frame { max-width:var(--frame-w); margin-inline:auto; border-inline:1px solid var(--border) }
.wrap { width:100%; max-width:var(--frame-w); margin-inline:auto; padding-inline:var(--gutter) }
.wrap--read { max-width:var(--read-w) }
.section { padding-top:var(--section-y); padding-bottom:var(--section-y) }
.sec--paper { background:var(--bg); color:var(--text) }
.sec--tint { background:var(--tint); color:var(--text) }
.sec--ink { background:var(--ink); color:var(--ink-text) }
.sec--ink .ink-muted { color:var(--ink-muted) }
.sec--ink :where(a:not([class])),.sec--ink .text-link { color:var(--ink-link) }
.sec--ink :focus-visible { outline-color:var(--ink-link) }
.decor-bound,.hero { overflow-x:clip }
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap) }
.stack > * + * { margin-block-start:var(--gap) }
.card,.panel { padding:22px; border:1px solid var(--border); border-radius:var(--r-card) }
.card { background:var(--bg); color:var(--text); box-shadow:var(--shadow-1) }
.panel { background:var(--bg-panel); color:var(--text) }
.text-link { display:inline-flex; align-items:center; gap:6px; color:var(--accent-dark); font-weight:var(--weight-label) }
.text-link svg { width:15px; height:15px; flex:none }
.text-link:hover { text-decoration-thickness:2px }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px;
  max-width:100%; padding:8px 20px; border-radius:var(--r-ctl); text-decoration:none;
  font-weight:var(--weight-label); letter-spacing:.01em; line-height:1.4;
  transition:transform var(--motion-fast) ease,box-shadow var(--motion-fast) ease,border-color var(--motion-fast) ease;
}
.btn svg { width:17px; height:17px }
.btn-primary {
  color:var(--on-accent); background:linear-gradient(180deg,var(--accent-top),var(--accent-dark));
  border:1px solid var(--accent-dark); box-shadow:var(--shadow-cta);
}
.btn-primary:is(:hover,.is-hover):not(:disabled) { transform:translateY(-1px) }
.btn-ghost { color:var(--text); background:var(--white-glass); border:1px solid var(--border-strong); box-shadow:var(--shadow-xs) }
.btn-ghost:is(:hover,.is-hover):not(:disabled) { border-color:var(--accent-dark); color:var(--accent-dark) }
.btn:is(:active,.is-pressed):not(:disabled) { transform:translateY(1px); box-shadow:var(--shadow-xs) }
.btn.is-focused { outline:2px solid var(--accent-dark); outline-offset:2px }
.btn:disabled { cursor:not-allowed; color:var(--text-muted); background:var(--bg-panel-2); border:1px solid var(--border); box-shadow:none }

.topbar { position:relative; z-index:var(--z-nav); background:var(--bg); color:var(--text); border-bottom:1px solid var(--border) }
.topbar-inner {
  max-width:min(100%,calc(1280px + var(--gutter) * 2)); height:var(--nav-height); margin-inline:auto;
  padding-inline:var(--gutter); display:flex; align-items:center; gap:24px;
}
.brand {
  display:inline-flex; align-items:center; gap:10px; color:var(--text); text-decoration:none;
  font-family:var(--font-display); font-weight:var(--weight-display); font-size:17px; letter-spacing:-.01em; flex:none;
}
.brand-mark { width:30px; height:30px; flex:none }
.mainnav { margin-left:auto; min-width:0 }
.nav-list { display:flex; align-items:center; gap:2px; margin:0; padding:0; list-style:none }
.nav-link {
  position:relative; display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px;
  border-radius:var(--r-ctl); color:var(--text-muted); font-size:14.5px; font-weight:500; white-space:nowrap;
  text-decoration:none; transition:color var(--motion-fast) ease,background-color var(--motion-fast) ease;
}
.nav-link:hover,.lang-btn:hover { color:var(--text); background:var(--bg-panel) }
.nav-link.is-active { color:var(--accent-dark); font-weight:var(--weight-label) }
.nav-link.is-active::after { content:""; position:absolute; inset-inline:12px; bottom:-14px; height:2px; border-radius:var(--r-pin); background:var(--accent); color:var(--text) }
.caret { font-size:11px; color:var(--text-muted); flex:none; transition:transform var(--motion-fast) ease }
details[open] > summary .caret,button[aria-expanded="true"] .caret { transform:rotate(180deg) }
:where(.nav-more,.lang,.preview-drawer,.faq-item) > summary { list-style:none }
:where(.nav-more,.lang,.preview-drawer,.faq-item) > summary::-webkit-details-marker { display:none }
.nav-more,.lang { position:relative }
.menu {
  position:absolute; right:0; top:calc(100% + 12px); width:max-content; min-width:228px;
  padding:6px; background:var(--bg); color:var(--text); border:1px solid var(--border);
  border-radius:var(--r-card); box-shadow:var(--shadow-2); display:grid; gap:2px;
}
.menu a { display:flex; align-items:center; min-height:44px; padding:8px 12px; border-radius:var(--r-ctl); font-weight:var(--weight-label); color:var(--text); text-decoration:none }
.menu a:is(:hover,[aria-current]) { background:var(--bg-panel); color:var(--accent-dark) }
.topbar-tools { flex:none; display:flex; align-items:center; gap:2px; height:28px; padding-left:14px; border-left:1px solid var(--border) }
.lang-btn,.nav-toggle {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:34px;
  padding:0 10px; border:0; border-radius:var(--r-ctl); background:var(--clear);
  color:var(--text-muted); font-size:14px; white-space:nowrap;
}
.lang-btn svg { width:15px; height:15px; flex:none }
.lang .menu { min-width:160px }
.lang .menu a { font-weight:500 }
.lang-short,.nav-toggle,.drawer,.nav-veil,.preview-drawer { display:none }
.nav-toggle { min-width:44px; min-height:44px }
.nav-toggle svg { width:20px; height:20px }
.nav-veil { position:fixed; inset:var(--nav-height) 0 0; background:var(--veil); color:var(--ink-text); z-index:-1 }
.drawer {
  position:absolute; inset-inline:0; top:100%; padding:10px var(--gutter) 18px;
  max-height:calc(100vh - var(--nav-height)); max-height:calc(100dvh - var(--nav-height));
  overflow-y:auto; overscroll-behavior:contain; background:var(--bg); color:var(--text);
  border-block:1px solid var(--border); box-shadow:var(--shadow-2);
}
.drawer ul { margin:0; padding:0; list-style:none }
.drawer a { display:flex; align-items:center; width:100%; min-height:44px; padding:10px 12px; color:var(--text); text-decoration:none; border-radius:var(--r-ctl) }
.drawer a:is(:hover,[aria-current]) { background:var(--bg-panel); color:var(--accent-dark) }
.drawer-title { display:block; margin:10px 12px 4px; font-size:var(--size-small); color:var(--text-muted) }

.site-footer { border-top:1px solid var(--border); background:var(--bg-panel); color:var(--text) }
.site-footer-grid { display:grid; grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap:24px; padding-block:38px 26px }
.site-footer .brand { margin-bottom:12px; max-width:100% }
.site-footer p { max-width:32ch; color:var(--text-muted) }
.site-footer-title { margin-bottom:10px; font-size:var(--size-body); font-weight:var(--weight-display) }
.site-footer ul { margin:0; padding:0; list-style:none }
.site-footer li + li { margin-top:5px }
.site-footer li a { color:var(--text-muted); overflow-wrap:anywhere; text-decoration:none }
.site-footer a:hover { color:var(--accent-dark); text-decoration:underline; text-underline-offset:.18em }
.site-footer-end { display:flex; flex-wrap:wrap; gap:8px 20px; border-top:1px solid var(--border); padding-block:16px 84px; color:var(--text-muted) }

.reveal { opacity:1 }
.reveal-ready .reveal:not(.shown):not(:focus-within) { opacity:0; transform:translateY(8px) }
.reveal-ready .reveal { transition:opacity var(--motion-reveal) ease,transform var(--motion-reveal) ease }

@media (max-width:1280px) {
  .topbar-inner { gap:12px }
  .nav-link { padding-inline:9px }
}
@media (max-width:1100px) {
  .mainnav { display:none }
  .topbar-tools { margin-left:auto; padding-left:0; border-left:0 }
  .nav-toggle,.preview-drawer { display:inline-flex }
  .drawer,.nav-veil { display:block }
  .preview-drawer:not([open]) > .drawer { display:none }
}
@media (max-width:768px) {
  :root { --size-h1:clamp(24px,7vw,30px); --section-y:36px; --gutter:16px }
  .site-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (max-width:640px) {
  .grid { grid-template-columns:minmax(0,1fr) }
  .tilt,.decor-tilt { transform:none !important; rotate:none !important }
  .card,.panel { padding:16px }
}
@media (max-width:380px) {
  .topbar-inner { gap:6px }
  .brand { font-size:16px; gap:7px }
  .lang-full,.lang-btn svg { display:none }
  .lang-short { display:inline }
  .nav-toggle { padding-inline:6px }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto }
  .reveal-ready .reveal,.reveal-ready .reveal:not(.shown) { opacity:1; transform:none }
  .reveal,.btn,.nav-link,.caret { transition:none !important }
  .btn:is(:hover,:active,.is-hover,.is-pressed) { transform:none }
}
@media (forced-colors:active) {
  .btn { border:1px solid currentColor }
}