:root {
  --bg: #EEEDE4;
  --panel: #FAF9F3;
  --panel-2: #E2E1D6;
  --inverse: #29272E;
  --inverse-panel: #343139;
  --inverse-panel-2: #403C45;
  --border: #CAC8BB;
  --inverse-border: #59545F;
  --accent: #8B8057;
  --accent-dark: #655B36;
  --text: #242329;
  --muted: #636159;
  --text-inverse: #F4F2EA;
  --muted-inverse: #C6C1C9;
  --button-bg: #242329;
  --button-text: #FAF9F3;
  --success: #667D68;
  --warn: #8B8057;
  --error: #9B696A;
  --clear: transparent;
  --veil: #29272E66;
  --flag-white: #FFFFFF;
  --flag-red: #EF3340;
  --flag-japan: #BC002D;
  --flag-us-red: #B22234;
  --flag-us-blue: #3C3B6E;
  --flag-hk: #DE2910;
  --flag-swiss: #DA291C;
  --flag-nl-red: #AE1C28;
  --flag-nl-blue: #21468B;
  --display: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
  --body: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 900;
  --size-micro: 10px;
  --size-tiny: 11px;
  --size-small: 12px;
  --size-label: 13px;
  --size-nav: 14px;
  --size-body: 16px;
  --size-lead: 17px;
  --size-pane: 20px;
  --size-brand: 25px;
  --size-section: 27px;
  --size-display: 64px;
  --size-mobile-display: 36px;
  --lh-tight: 1.12;
  --lh-label: 1.4;
  --lh-body: 1.75;
  --tracking-small: .025em;
  --tracking-mono: .09em;
  --u1: 4px;
  --u2: 8px;
  --u3: 12px;
  --u4: 16px;
  --u5: 20px;
  --u6: 24px;
  --u7: 28px;
  --u8: 32px;
  --u9: 36px;
  --u10: 40px;
  --u12: 48px;
  --u14: 56px;
  --u16: 64px;
  --u18: 72px;
  --radius-small: 4px;
  --radius-medium: 6px;
  --radius-window: 10px;
  --radius-round: 999px;
  --hairline: 1px;
  --rule-heavy: 2px;
  --page-width: 1280px;
  --prose-width: 800px;
  --gutter: 64px;
  --header-height: 88px;
  --hero-height: 736px;
  --hero-gap: 64px;
  --window-width: 580px;
  --mobile-gutter: 20px;
  --button-height: 54px;
  --nav-button-height: 38px;
  --tap-size: 44px;
  --tap-small: 24px;
  --logo-size: 36px;
  --icon-size: 19px;
  --flag-width: 23px;
  --flag-height: 16px;
  --dot-size: 6px;
  --chrome-dot: 7px;
  --rail-height: 60px;
  --chrome-height: 47px;
  --tag-height: 27px;
  --focus-offset: 4px;
  --toc-height: 64px;
  --anchor-space: 80px;
  --table-min: 700px;
  --card-min: 260px;
  --swatch-min: 150px;
  --swatch-height: 64px;
  --menu-width: 190px;
  --z-header: 30;
  --z-veil: 1;
  --z-drawer: 2;
  --z-menu: 3;
  --z-toc: 10;
  --duration-fast: 160ms;
  --duration-reveal: 600ms;
  --ease-reveal: cubic-bezier(.2, .65, .25, 1);
  --reveal-distance: 16px;
  --disabled-opacity: .55;
  --angle-forward: 45deg;
  --angle-back: -135deg;
  --shadow-window: 0 2px 3px #29272E0A, 0 12px 24px #29272E0D, 0 32px 48px -24px #29272E38;
  --shadow-lip: inset 0 1px 0 #FAF9F3, inset 0 -4px 0 #CAC8BB66;
  --shadow-inset: inset 0 2px 6px #2423294D, 0 1px 0 #FAF9F3;
  --shadow-button: 0 2px 2px #24232912;
  --shadow-panel: 0 2px 3px #29272E0A, 0 8px 20px #29272E08;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  scroll-padding-top: calc(var(--header-height) + var(--u4));
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, summary { -webkit-tap-highlight-color: var(--clear); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--rule-heavy) solid var(--accent-dark);
  outline-offset: var(--focus-offset);
}
:where(.inverse, .site-foot) :focus-visible {
  outline-color: var(--text-inverse);
}
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--display); overflow-wrap: break-word; }
h1 {
  margin-top: var(--u5);
  font-size: var(--size-display);
  font-weight: var(--weight-heavy);
  line-height: var(--lh-tight);
  letter-spacing: normal;
}
h2 { font-size: var(--size-section); font-weight: var(--weight-heavy); line-height: var(--lh-label); }
h3 { font-size: var(--size-pane); font-weight: var(--weight-bold); line-height: var(--lh-label); }
ul, ol { padding-inline-start: var(--u6); }
code { font-family: var(--mono); font-size: var(--size-nav); overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: var(--u5);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--panel-2);
}
pre code { white-space: pre; overflow-wrap: normal; }
table { border-collapse: collapse; }
.no-break { white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.frame, .wrap {
  width: 100%;
  max-width: calc(var(--page-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.section { padding-top: var(--u16); padding-bottom: var(--u16); }
.stack { display: grid; gap: var(--u6); min-width: 0; }
.stack > *, .card-grid > *, .split-grid > * { min-width: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u6); }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u8); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--u4); margin-bottom: var(--u8); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-small);
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: var(--u1);
}
.prose { max-width: var(--prose-width); min-width: 0; }
.prose > * + * { margin-top: var(--u5); }
.prose h2 { margin-top: var(--u12); }
.prose h3 { margin-top: var(--u8); }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: var(--u1); }
.panel, .card {
  min-width: 0;
  padding: var(--u6);
  background: var(--panel);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-panel);
}
.inverse { background: var(--inverse); color: var(--text-inverse); }
.inverse .muted { color: var(--muted-inverse); }
.inverse .text-link { color: var(--text-inverse); }
.decorated-region { position: relative; overflow-x: clip; }

.mast {
  position: relative;
  z-index: var(--z-header);
  height: var(--header-height);
  border-bottom: var(--hairline) solid var(--border);
  background: var(--bg);
}
.mast-inner { height: 100%; display: flex; align-items: center; gap: var(--u8); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--u3);
  flex-shrink: 0;
  font-size: var(--size-brand);
  font-weight: var(--weight-heavy);
  line-height: var(--lh-tight);
}
.brand-symbol { width: var(--logo-size); height: var(--logo-size); border-radius: var(--radius-round); }
.brand-local { font-size: var(--size-body); font-weight: var(--weight-medium); color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; white-space: nowrap; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-small);
  font-size: var(--size-nav);
  font-weight: var(--weight-medium);
  color: var(--muted);
}
.nav a[aria-current] { color: var(--text); font-weight: var(--weight-bold); }
.nav a + a::before { content: '·'; margin-inline: var(--u3); color: var(--accent); }
.nav a:hover, .language:hover { color: var(--accent-dark); }
.header-tools { display: flex; align-items: center; gap: var(--u5); flex-shrink: 0; font-size: var(--size-label); }
.login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-button-height);
  padding-inline: var(--u5);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-small);
  background: var(--panel);
  font-weight: var(--weight-semibold);
}
.language-box { position: relative; }
.language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-small);
  padding: var(--u1) 0;
  border: 0;
  background: var(--clear);
  color: var(--muted);
  white-space: nowrap;
  font-size: inherit;
}
.language-box > summary { list-style: none; cursor: pointer; }
.language-box > summary::-webkit-details-marker { display: none; }
.language-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + var(--u3));
  width: var(--menu-width);
  padding: var(--u2);
  background: var(--panel);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-window);
  z-index: var(--z-menu);
}
.language-menu a { display: flex; align-items: center; min-height: var(--tap-size); padding-inline: var(--u3); border-radius: var(--radius-small); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--panel-2); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap-size);
  min-width: var(--tap-size);
  min-height: var(--tap-size);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-small);
  background: var(--panel);
}
.menu-toggle svg { width: var(--u5); height: var(--u5); fill: none; stroke: currentColor; stroke-width: var(--rule-heavy); }
.mobile-drawer, .menu-veil { display: none; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap-size);
  padding: var(--u3) var(--u5);
  border-bottom: var(--hairline) solid var(--border);
}
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { color: var(--accent-dark); background: var(--panel-2); }
.drawer-caption { display: block; padding: var(--u4) var(--u5) var(--u2); font-size: var(--size-small); color: var(--muted); }
.preview-menu { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: var(--u3); margin-top: var(--u7); }
.action {
  min-height: var(--button-height);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--u8);
  padding-inline: var(--u6);
  padding-block: var(--u2);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-medium);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-button);
  text-align: center;
}
.action-primary, .btn-primary { background: var(--button-bg); color: var(--button-text); border-color: var(--button-bg); }
.action-primary svg { width: var(--u5); height: var(--u5); }
.action-secondary { background: var(--panel); color: var(--text); }
.action-primary:hover, .action-primary.is-hover { background: var(--inverse-panel); }
.action-secondary:hover, .login:hover { border-color: var(--accent); }
.action:active, .action.is-active { box-shadow: var(--shadow-inset); }
.action.is-focus { outline: var(--rule-heavy) solid var(--accent-dark); outline-offset: var(--focus-offset); }
.action:disabled, .action[aria-disabled="true"] { opacity: var(--disabled-opacity); cursor: not-allowed; }
.action-compact { min-height: var(--tap-size); padding-inline: var(--u4); font-size: var(--size-nav); gap: var(--u3); }

.site-foot { background: var(--inverse); color: var(--text-inverse); border-top: var(--hairline) solid var(--inverse-border); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--u12); padding-top: var(--u12); padding-bottom: var(--u12); }
.foot-grid > * { min-width: 0; }
.foot-brand p { margin-top: var(--u5); max-width: var(--window-width); font-size: var(--size-nav); color: var(--muted-inverse); }
.foot-heading { margin-bottom: var(--u4); font-size: var(--size-nav); font-weight: var(--weight-semibold); }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u2) var(--u4); }
.foot-links a, .foot-languages a, .foot-legal a { display: inline-flex; align-items: center; min-height: var(--tap-small); font-size: var(--size-label); color: var(--muted-inverse); }
.site-foot a:hover { color: var(--text-inverse); text-decoration: underline; text-underline-offset: var(--u1); }
.foot-bottom { padding-top: var(--u6); padding-bottom: var(--u6); border-top: var(--hairline) solid var(--inverse-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--u4) var(--u8); font-size: var(--size-small); color: var(--muted-inverse); }
.foot-languages, .foot-legal { display: flex; flex-wrap: wrap; gap: var(--u3) var(--u5); }
.foot-languages a[aria-current] { color: var(--text-inverse); text-decoration: underline; text-underline-offset: var(--u1); }

.reveal { transition: opacity var(--duration-reveal) var(--ease-reveal), transform var(--duration-reveal) var(--ease-reveal); }
.reveal.pending { opacity: 0; transform: translateY(var(--reveal-distance)); }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1250px) {
  :root { --gutter: 32px; }
  .mast-inner { gap: var(--u5); }
  .nav a { font-size: var(--size-small); }
  .nav a + a::before { margin-inline: var(--u2); }
  .header-tools { gap: var(--u3); }
  h1 { font-size: var(--u14); }
}
@media (max-width: 1020px) {
  :root { --header-height: 120px; --hero-gap: 32px; --rail-height: 56px; }
  .mast-inner { flex-wrap: wrap; align-content: center; justify-content: space-between; gap: var(--u3); }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: center; }
  .header-tools { margin-left: auto; }
  h1 { font-size: var(--u14); }
  .foot-grid { gap: var(--u6); }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --header-height: 108px; --button-height: 48px; --rail-height: 52px; --logo-size: 32px; }
  .mast-inner { flex-wrap: nowrap; gap: var(--u2); }
  .brand { font-size: var(--size-pane); gap: var(--u2); }
  .header-tools { margin-left: auto; gap: var(--u2); font-size: var(--size-small); }
  .login { padding-inline: var(--u4); }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .language { min-height: var(--tap-size); }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--panel);
    border-bottom: var(--hairline) solid var(--border);
    z-index: var(--z-drawer);
    box-shadow: var(--shadow-window);
  }
  .menu-veil:not([hidden]) { display: block; position: fixed; inset: var(--header-height) 0 0; background: var(--veil); z-index: var(--z-veil); border: 0; padding: 0; }
  .preview-menu { display: block; position: static; }
  .preview-menu > summary { list-style: none; cursor: pointer; }
  .preview-menu > summary::-webkit-details-marker { display: none; }
  .preview-menu > nav { position: absolute; top: 100%; inset-inline: 0; padding: var(--u4) var(--gutter); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; background: var(--panel); border-bottom: var(--hairline) solid var(--border); }
  .preview-menu nav a { display: flex; align-items: center; min-height: var(--tap-size); width: 100%; }
  h1 { font-size: var(--size-mobile-display); margin-top: var(--u4); }
  .section { padding-top: var(--u12); padding-bottom: var(--u12); }
  .actions { margin-top: var(--u5); }
  .action { padding-inline: var(--u5); gap: var(--u6); font-size: var(--size-nav); }
  .card-grid, .split-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { gap: var(--u8); }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 640px) {
  .tilt { transform: none !important; }
  .panel, .card { padding: var(--u5); }
}
@media (max-width: 360px) {
  .header-tools { gap: var(--u1); }
  .login { padding-inline: var(--u2); }
  .brand { gap: var(--u1); font-size: var(--size-lead); }
  .language { font-size: var(--size-tiny); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending, .reveal.shown { opacity: 1; transform: none; transition: none; }
}