:root {
  --bg: #f0eee8;
  --bg-panel: #e4ddd1;
  --bg-panel-2: #141514;
  --bg-tint: #eeece4;
  --border: #d5d0c5;
  --accent: #1c2421;
  --accent-dark: #0e1311;
  --text: #161716;
  --text-muted: #5f5d57;
  --success: #3d7a52;
  --warn: #a8741a;
  --error: #b23a2e;
  --panel-detail: #1f201e;
  --line-dark: #2e2f2c;
  --r-outline: #2a2b28;
  --thread: #6d6a63;
  --on-dark: #ece8df;
  --on-dark-muted: #8b877e;
  --on-dark-link: #f0eee8;
  --wood: #c9bca6;
  --wood-dark: #a99b84;
  --wood-deep: #8f826d;
  --wood-hl: #d8cdb8;
  --brass: #b8ad92;
  --brass-dark: #978c71;
  --brass-hl: #d3cab3;
  --plate-ink: #2a2b28;
  --card-sage: #8f9e86;
  --card-mist: #8fa3b5;
  --card-terra: #c08a6a;
  --card-oat: #d9cfbd;
  --card-slate: #6b7079;
  --card-ink: #1c2421;
  --card-rule: rgb(22 23 22 / .22);
  --card-rule-light: rgb(236 232 223 / .32);
  --card-hl: rgb(255 255 255 / .24);
  --flat-shadow: #0c0d0c;
  --logo-ph: #faf9f6;
  --chip-bg: rgb(255 255 255 / .42);
  --btn2-bg: rgb(255 255 255 / .38);
  --btn2-bg-hover: rgb(255 255 255 / .7);
  --shadow-ink: rgb(14 19 17 / .36);
  --clear: transparent;
  --color-primary: var(--accent);
  --color-accent: var(--accent);
  --color-text: var(--text);
  --color-bg: var(--bg);
  --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Iowan Old Style", "Charter", "Georgia", "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --r-xl: 28px;
  --r-note: 15px;
  --r-btn: 10px;
  --r-mark: 8px;
  --r-pill: 999px;
  --r-round: 50%;
  --nav-h: 72px;
  --gutter: 64px;
  --measure: 72ch;
  --reading-frame: 1128px;
  --header-frame: 1280px;
  --gap: 24px;
  --section-space: clamp(48px, 7vw, 96px);
  --display-size: clamp(34px, 3.34vw, 48px);
  --title-2: clamp(24px, 3vw, 38px);
  --title-3: clamp(18px, 2vw, 24px);
  --hero-leading: 1.22;
  --hero-tracking: -.03em;
  --body-size: 16px;
  --meta-size: 13px;
  --fast: .2s;
  --reveal-time: .44s;
  --fab-size: 52px;
  --layer-header: 30;
  --layer-fab: 10;
  --layer-tip: 40;
  --surface: var(--bg);
  --fg: var(--text);
  --muted: var(--text-muted);
  --rule: var(--border);
  --link: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd, pre { margin: 0; }
body {
  color: var(--text);
  background: var(--bg);
  font: var(--body-size)/1.6 var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
ul, ol { padding-inline-start: 1.35em; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, select { color: inherit; font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
:target { scroll-margin-block-start: 24px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: var(--display-size); text-wrap: pretty; }
h2 { font-size: var(--title-2); text-wrap: balance; }
h3 { font-size: var(--title-3); text-wrap: balance; }
:lang(ja):is(h1, h2, h3, .lede, .hero__lede) { word-break: auto-phrase; }
:lang(ko):is(h1, h2) { word-break: keep-all; }
.keep, .ul { white-space: nowrap; }
.lede { max-width: 38em; font: 400 clamp(18px, 2vw, 22px)/1.6 var(--font-serif); }
.meta { font: 400 var(--meta-size)/1.5 var(--font-mono); color: var(--muted); }
.muted { color: var(--muted); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
.prose { max-width: var(--measure); min-width: 0; line-height: 1.8; }
.prose :where(p, ul, ol, dl, pre, .table-scroll, table, figure, blockquote) + * { margin-block-start: 1em; }
.prose :where(h2, h3) + * { margin-block-start: .7em; }
.prose :where(h2, h3):not(:first-child) { margin-block-start: 1.6em; }
.prose :where(a:not(.btn, .device-card, .article-card, .dl-fab)), .text-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.text-link:hover, .prose a:hover { text-decoration-thickness: 2px; }
.wrap {
  width: 100%;
  max-width: var(--reading-frame);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.sec--tint { color: var(--text); background: var(--bg-tint); --surface: var(--bg-tint); }
.sec--ink {
  --surface: var(--bg-panel-2);
  --fg: var(--on-dark);
  --muted: var(--on-dark-muted);
  --rule: var(--line-dark);
  --link: var(--on-dark-link);
  color: var(--fg);
  background: var(--surface);
}
.sec--ink pre { color: var(--on-dark); background: var(--bg-panel-2); border-color: var(--line-dark); }
.stack > * + * { margin-block-start: var(--stack-gap, 18px); }
.pair-grid, .card-grid { display: grid; gap: var(--gap); }
.pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card-grid:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
.card-grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
.card-grid:has(> :nth-child(7):last-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.card-grid:has(> :nth-child(7):last-child) > * { grid-column: span 3; }
.card-grid:has(> :nth-child(7):last-child) > :nth-child(n+5) { grid-column: span 4; }
:where(.pair-grid, .card-grid, .hero, .foot-grid, .doc-split, .feature-layout, .swatches, .plat-grid, .get-actions, .plat-actions, .shot-row) > * { min-width: 0; }
.card, .panel {
  padding: clamp(18px, 3vw, 36px);
  border-radius: var(--r-xl);
  min-width: 0;
}
.card { color: var(--text); background: var(--bg-panel); --muted: var(--text-muted); --link: var(--accent); }
.panel { color: var(--fg); background: var(--surface); border: 1px solid var(--rule); }
.decor-field { position: relative; overflow-x: clip; }
.decor-field > svg.decor-fill { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 10px 24px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--fast), box-shadow var(--fast), transform var(--fast);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { color: var(--bg); background: var(--accent); }
.btn--primary:hover { color: var(--bg); background: var(--accent-dark); }
.btn--ghost { color: var(--accent); background: var(--btn2-bg); border-color: var(--accent); }
.btn--ghost:hover { color: var(--accent); background: var(--btn2-bg-hover); }
.sec--ink .btn--ghost { color: var(--on-dark); background: var(--panel-detail); border-color: var(--on-dark-muted); }
.sec--ink .btn--ghost:hover { color: var(--bg-panel-2); background: var(--on-dark); }
.sec--ink .btn--primary { color: var(--accent); background: var(--bg); }
.sec--ink .btn--primary:hover { color: var(--accent-dark); background: var(--bg-panel); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { color: var(--text-muted); background: var(--bg-panel); border-color: var(--border); cursor: not-allowed; }
.btn:focus-visible, .store-btn:focus-visible { outline-offset: 4px; }

.top {
  position: relative;
  z-index: var(--layer-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: min(100%, calc(var(--header-frame) + var(--gutter) * 2));
  min-height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: var(--text);
  background: var(--bg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font: 700 15px/1.25 var(--font-display);
  letter-spacing: -.01em;
}
.brand__mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--text);
  background: var(--logo-ph);
  border: 1px solid var(--border);
  border-radius: var(--r-mark);
}
.nav { min-width: 0; margin-inline-start: auto; }
.nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(12px, 2vw, 30px);
}
.nav__list a {
  display: inline-block;
  padding-block: 8px 7px;
  border-bottom: 1.5px solid var(--clear);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color var(--fast);
}
.nav__list a:hover { border-bottom-color: var(--border); }
.nav__list a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--accent); }
.top-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lang-box { position: relative; }
.lang, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--text);
  background: var(--chip-bg);
  font-size: 14px;
  line-height: 1;
}
.lang__caret { font-size: 11px; color: var(--text-muted); }
.lang__short { display: none; }
.lang-list, .drawer ul, .foot-grid ul { list-style: none; padding: 0; }
.lang-list {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 148px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--text);
  background: var(--bg);
}
.lang-list a, .drawer a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; }
.lang-list a:hover, .drawer a:hover, .drawer a[aria-current], .lang-list a[aria-current] {
  color: var(--text);
  background: var(--bg-panel);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.nav-toggle { display: none; min-width: 44px; min-height: 44px; padding: 0; }
.nav-toggle svg { width: 20px; height: 20px; }
html.nav-open { overflow: hidden; }
.nav-veil { position: fixed; z-index: -1; inset: 0; color: var(--text); background: var(--shadow-ink); }
.top:has(.drawer:not([hidden])) > :is(.brand, .top-tools) { position: relative; z-index: 1; }
.top:has(.drawer:not([hidden]))::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  color: var(--text);
  background: var(--bg);
}
.drawer {
  position: absolute;
  inset: 100% 0 auto;
  padding: 12px var(--gutter) 20px;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-block: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
}
.drawer .meta { margin-block: 14px 4px; }
.top a:focus-visible, .drawer a:focus-visible { outline-offset: -2px; }

.site-footer {
  padding-top: 48px;
  padding-bottom: 36px;
  border-top: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, .6fr);
  gap: 32px;
}
.foot-grid h2 { margin-block-end: 12px; font-size: 15px; }
.foot-grid ul { display: grid; gap: 7px; font-size: 14px; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot-grid p { margin-block-start: 12px; font-size: 14px; color: var(--text-muted); }
.foot-end {
  margin-block-start: 32px;
  padding-block-start: 14px;
  border-top: 1px solid var(--border);
  font-size: var(--meta-size);
  color: var(--text-muted);
}

@media (max-width: 1240px) {
  :root { --gutter: 44px; }
  .nav__list { gap: 20px; }
  .nav__list a { font-size: 14px; }
}
@media (max-width: 1440px) {
  html:not([lang="zh-CN"], [lang="zh-TW"]) .top:not(.preview-top) .nav { display: none; }
  html:not([lang="zh-CN"], [lang="zh-TW"]) .nav-toggle { display: inline-flex; }
  html:not([lang="zh-CN"], [lang="zh-TW"]) .top-tools { margin-inline-start: auto; }
}
@media (max-width: 960px) {
  :root { --gutter: 20px; --nav-h: 64px; }
  .top:not(.preview-top) { gap: 8px; }
  .top:not(.preview-top) .nav { display: none; }
  .top-tools { margin-inline-start: auto; }
  .nav-toggle { display: inline-flex; }
  .lang { min-height: 44px; }
  .top .brand { flex-shrink: 1; min-width: 0; }
  .brand__name { min-width: 0; max-width: 16.5rem; overflow-wrap: anywhere; text-wrap: balance; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --display-size: clamp(24px, 6vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gap: 16px; }
  .top .brand { gap: 8px; }
  .lang__short { display: inline; }
  .lang__full { display: none; }
  .lang { padding-inline: 9px; }
  .btn { min-height: 48px; padding-inline: 16px; font-size: 15px; }
  .pair-grid, .card-grid[class] { grid-template-columns: minmax(0, 1fr); }
  .card-grid[class] > * { grid-column: 1; }
  .foot-grid { gap: 24px 14px; }
  .foot-brand, .foot-search { grid-column: 1 / -1; }
  .tilt, .decor-tilt { transform: none !important; rotate: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { transition: opacity var(--reveal-time) ease, transform var(--reveal-time) ease; }
  .reveal-ready .reveal:not(.shown, :focus-within) { opacity: 0; transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:active:not(:disabled) { transform: none; }
}