:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --card: #f7f7f7;
  --muted: #707070;
  --soft: #8a8a8a;
  --hairline: #ebebeb;
  --edge: rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  --solid-hover: #3a3a3a;
  --shot-outline: rgba(0, 0, 0, 0.08);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #fafafa;
    --card: #1c1c1c;
    --muted: #a3a3a3;
    --soft: #737373;
    --hairline: rgba(255, 255, 255, 0.08);
    --edge: rgba(255, 255, 255, 0.08);
    --shadow: none;
    --solid-hover: #d9d9d9;
    --shot-outline: rgba(255, 255, 255, 0.16);
  }
  .brand__mark { filter: invert(1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 720px) {
  .container { padding: 0 32px; }
}

/* Header */

.top { padding: 16px 0; }
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand__mark { display: block; width: 38px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.brand__tag { font-size: 14px; color: var(--muted); white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
.pill:focus-visible { border-radius: 999px; }
.pill--outline {
  padding: 9px 16px;
  font-size: 15px;
  line-height: 1.3;
  border: 1px solid var(--fg);
  color: var(--fg);
}
.pill--outline:hover { background: var(--fg); color: var(--bg); }
.top-cta__short { display: none; }
@media (max-width: 479px) {
  .top-cta__full { display: none; }
  .top-cta__short { display: inline; }
}

/* Article */

.doc {
  flex: 1 0 auto;
  width: 100%;
  max-width: 760px;
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.doc h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.doc h2 {
  margin: 48px 0 10px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.doc h3 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--soft); }
.doc a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--soft);
}
.doc a:hover { text-decoration-color: currentColor; }
.doc strong { font-weight: 650; }

.updated { margin: 14px 0 36px; color: var(--muted); }
.lede,
.doc .lede {
  margin: 18px 0 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--fg);
}
.doc .lede + .lede { margin-top: 12px; }
.doc h1 + .updated + p:not(.notice),
.doc .notice + p { font-size: 1.1875rem; line-height: 1.5; }
.doc .notice {
  margin: -14px 0 32px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--edge);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Footer */

.foot {
  border-top: 1px solid var(--hairline);
  padding: 22px 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.foot p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 16px;
}
.langs__icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.langs a { text-decoration: none; }
.langs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.langs a[aria-current] { color: var(--fg); font-weight: 600; }

:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(th) h1, :lang(th) h2 { letter-spacing: normal; }
:lang(ja) { line-break: strict; word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }

@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
}
