:root {
  --bg: #FFFFFF;
  --bg-panel: #FAF7F2;
  --bg-panel-2: #F4F6F4;
  --border: #E3E7E4;
  --border-strong: #CDD5D1;
  --accent: #0C6B58;
  --accent-dark: #08463A;
  --accent-soft: #D6EBE4;
  --link: #2F5FD0;
  --link-soft: #ECF1FC;
  --apricot: #FCE6CC;
  --apricot-ink: #8A4B12;
  --apricot-line: #E8BE8C;
  --text: #15302A;
  --text-muted: #5A6964;
  --text-faint: #8C9994;
  --on-accent: #FFFFFF;
  --success: #1F8A5B;
  --warn: #B9741F;
  --error: #C2412D;
  --clear: transparent;
  --veil: rgba(21, 48, 42, .25);
  --font-display: "Charter", "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --r-field: 8px;
  --r-item: 10px;
  --r-card: 16px;
  --r-panel: 20px;
  --r-pill: 999px;
  --r-round: 50%;
  --r-mark: 3px;
  --shadow-near: 0 1px 2px rgba(21,48,42,.06), 0 22px 44px -16px rgba(21,48,42,.22);
  --shadow-far: 0 1px 2px rgba(21,48,42,.04), 0 12px 30px -14px rgba(21,48,42,.15);
  --shadow-menu: 0 2px 6px rgba(21,48,42,.06), 0 18px 40px -18px rgba(21,48,42,.25);
  --shadow-knob: 0 1px 2px rgba(21,48,42,.25);
  --nav-h: 72px;
  --wrap: 1320px;
  --head-content: 1280px;
  --reading: 800px;
  --gutter: 40px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-section: 96px;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --duration-fast: .18s;
  --duration-reveal: .6s;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.17; letter-spacing: -.005em; }
h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; }
h3 { font-size: 24px; line-height: 1.35; }
h4 { font-size: 20px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button {
  color: inherit;
  background: var(--clear);
  border: 0;
  cursor: pointer;
}
button, a, input, summary { -webkit-tap-highlight-color: var(--clear); }
button:disabled { cursor: not-allowed; }
img, svg { vertical-align: middle; max-width: 100%; }
img { height: auto; }
svg, .ico, .dot { flex-shrink: 0; }
ul, ol { margin: 0; padding-left: 1.4em; }
li + li { margin-top: 4px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-field); }
::selection { background: var(--accent-soft); color: var(--accent-dark); }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { width: 100%; max-width: calc(var(--reading) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-soft { background: var(--bg-panel-2); color: var(--text); }
.section-cream { background: var(--bg-panel); color: var(--text); }
.decorated-section { position: relative; overflow-x: clip; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.eyebrow { font-size: 13px; font-weight: var(--weight-medium); color: var(--accent); letter-spacing: .08em; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-title { margin-top: 10px; font-size: 34px; line-height: 1.2; }
.sec-intro { max-width: 640px; margin-top: 20px; color: var(--text-muted); }
.text-link { color: var(--link); font-size: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.stack > * + * { margin-top: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-2 > *, .grid-3 > *, .sec-head > *, .head-inner > *, .footer-grid > * { min-width: 0; }
.panel { padding: 32px; border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.surface-card { padding: 28px; background: var(--bg); color: var(--text); border-radius: var(--r-card); box-shadow: var(--shadow-far); }
.surface-card > * + * { margin-top: 16px; }
.prose { min-width: 0; }
.prose p, .prose li { line-height: 1.85; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 32px; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--font-mono); font-size: .88em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--bg-panel-2);
  color: var(--text);
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 10px 28px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  font-size: 16px; font-weight: var(--weight-medium); letter-spacing: .01em;
  text-align: center;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.btn-sm { min-height: 42px; padding: 8px 20px; font-size: 14.5px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-primary:active, .btn-primary.is-pressed { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { border-color: var(--text); background: var(--clear); color: var(--text); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--bg); color: var(--text); }
.btn-ghost:active { background: var(--bg-panel-2); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); }
.btn .ico { width: 18px; height: 18px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.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; top: 8px; left: var(--gutter); z-index: 100; padding: 12px 20px; background: var(--bg); color: var(--accent-dark); border-radius: var(--r-pill); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-head { position: relative; z-index: 50; height: var(--nav-h); background: var(--bg); color: var(--text); }
.head-inner {
  max-width: min(100%, calc(var(--head-content) + var(--gutter) * 2));
  height: 100%; margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; flex-shrink: 0; }
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name { font-size: 17px; font-weight: var(--weight-semibold); letter-spacing: .01em; }
.nav-main { min-width: 0; }
.nav-main > ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-main li { margin: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 15px; white-space: nowrap; transition: background-color var(--duration-fast) ease;
}
.nav-link:hover { background: var(--bg-panel-2); color: var(--text); }
.nav-link[aria-current="page"], .nav-link.is-active { background: var(--accent-soft); color: var(--accent-dark); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-more, .language-picker { position: relative; }
.nav-menu, .language-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: 300px; padding: 8px; margin: 0; list-style: none;
  background: var(--bg); color: var(--text); border-radius: var(--r-card); box-shadow: var(--shadow-menu); z-index: 60;
}
.nav-menu a, .language-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-item); }
.nav-menu a:hover, .language-menu a:hover { background: var(--bg-panel-2); color: var(--text); }
.nav-menu a[aria-current="page"], .language-menu a[aria-current="true"] { color: var(--accent-dark); background: var(--accent-soft); }
.menu-title { display: block; font-size: 14.5px; font-weight: var(--weight-medium); }
.menu-desc { display: block; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin-top: 2px; }
.head-actions { justify-self: end; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 18px; border: 1px solid var(--text); border-radius: var(--r-pill);
  font-size: 14.5px; white-space: nowrap;
}
.lang-pill:hover { background: var(--bg-panel-2); color: var(--text); }
.language-menu { right: 0; left: auto; transform: none; width: 190px; }
.lang-short { display: none; }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 40; background: var(--veil); color: var(--text); }
.static-disclosure > summary { cursor: pointer; list-style: none; }
.static-disclosure > summary::-webkit-details-marker { display: none; }
.site-footer { padding-top: 64px; padding-bottom: 28px; background: var(--bg-panel-2); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 56px; }
.footer-about p { max-width: 360px; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.footer-heading { margin-bottom: 18px; font-family: var(--font-body); font-size: 14px; font-weight: var(--weight-semibold); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list a { display: inline-block; padding-top: 5px; padding-bottom: 5px; color: var(--text-muted); font-size: 14px; }
.footer-list a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-languages { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; }
.footer-languages a { padding-top: 8px; padding-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.footer-languages a[aria-current="true"] { color: var(--accent-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; font-size: 13px; color: var(--text-muted); }
.legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal { transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out); }
@media (max-width: 1120px) {
  .head-inner { display: flex; gap: 16px; }
  .brand { flex-shrink: 1; }
  .nav-main, .head-actions > .btn { display: none; }
  .head-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px; background: var(--bg); color: var(--text); box-shadow: var(--shadow-menu);
  }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer li { margin: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-item); }
  .mobile-drawer a:hover { background: var(--bg-panel-2); color: var(--text); }
  .mobile-drawer a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
  .drawer-label { margin: 20px 16px 8px; color: var(--text-muted); font-size: 13px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --space-section: 64px; }
  h1 { font-size: clamp(24px, 6vw, 30px); }
  h2, .sec-title { font-size: 26px; }
  h3 { font-size: 22px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { gap: 32px; }
  .brand-name { font-size: 16px; }
  .head-actions { gap: 8px; }
  .lang-pill { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
  .panel, .surface-card { padding: 24px; }
}
@media (max-width: 640px) {
  [class*="tilt"], .card-a, .card-b, .card-c, .card-d { transform: none !important; }
  .btn { min-height: 46px; padding: 10px 22px; font-size: 15px; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .lang-pill { padding-inline: 12px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 14px; }
  .brand { gap: 7px; }
  .brand-logo { width: 30px; height: 30px; }
  .head-inner { gap: 8px; }
}
@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; }
}