:root {
  color-scheme: dark;
  --bg: #0a0c11;
  --surface: #12161f;
  --text: #e8ebf3;
  --muted: #a3abbd;
  --accent: #a78bfa;
  --accent-bright: #c4b5fd;
  --line: rgba(255, 255, 255, 0.12);
  --font: "SUIT Variable", "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.75 var(--font);
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-bright); text-underline-offset: 4px; }
a:hover { color: var(--text); }
a { transition: color 150ms ease, background-color 150ms ease; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { background: #49396c; color: #fff; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 10;
  padding: 8px 16px;
  transform: translateY(-200%);
  background: var(--accent-bright);
  color: var(--bg);
}
.skip-link:focus { transform: none; color: var(--bg); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1160px;
  min-height: 68px;
  margin: auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 760; white-space: nowrap; }
.brand, .site-nav a { color: var(--text); text-decoration: none; }
.brand img { flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { padding: 8px 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.site-nav a[aria-current] { color: var(--accent-bright); }
.site-nav a:hover { color: var(--text); }
.lang-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; padding: 3px; border-radius: 8px; background: var(--surface); }
.lang-nav a { padding: 4px 9px; border-radius: 6px; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.lang-nav a:hover { color: var(--text); }
.lang-nav a[aria-current] { background: rgba(167, 139, 250, 0.16); color: var(--accent-bright); }
.lang-code { display: none; }
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  background: rgba(167, 139, 250, 0.12);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.download-link:hover { background: rgba(167, 139, 250, 0.2); }
main { width: min(100% - 64px, 960px); margin: 0 auto; padding: 76px 0 96px; flex: 1; }
.page-heading { margin-bottom: 48px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(32px, 4vw, 44px); font-weight: 750; line-height: 1.25; letter-spacing: -0.04em; }
.intro { margin: 0; color: var(--muted); font-size: 17px; }
.empty-state { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 60px 0; display: flex; align-items: flex-start; gap: 24px; }
.empty-icon { width: 38px; height: 44px; flex-shrink: 0; color: var(--muted); }
.empty-state h2 { margin: 0 0 8px; font-size: 21px; font-weight: 650; line-height: 1.5; letter-spacing: -0.025em; }
.empty-state p { margin-bottom: 20px; color: var(--muted); }
.text-link { display: inline-block; padding: 4px 0; font-size: 15px; }
.release-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.release-list > li { border-bottom: 1px solid var(--line); }
.release-link {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 24px;
  gap: 28px;
  padding: 32px 0;
  color: var(--text);
  text-decoration: none;
}
.release-link:hover h2 { color: var(--accent-bright); }
.release-link h2 { margin-bottom: 8px; font-size: 23px; font-weight: 650; line-height: 1.45; letter-spacing: -0.025em; transition: color 150ms ease; }
.release-link p { margin: 0; color: var(--muted); font-size: 15px; }
.release-meta { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.release-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.version { color: var(--accent-bright); font-size: 14px; font-weight: 600; }
.release-arrow { align-self: center; color: var(--accent); font-size: 22px; transition: transform 150ms ease; }
.release-link:hover .release-arrow { transform: translateX(3px); }
.article-wrap { max-width: 720px; margin: auto; }
.back-link { display: inline-block; margin-bottom: 32px; padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.article-header { padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.article-header .release-meta { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.article-header h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.35; }
.article-header .intro { font-size: 18px; }
.prose { font-size: 16px; line-height: 1.9; }
.prose p { margin-bottom: 20px; }
.prose h2 { margin: 42px 0 16px; font-size: 24px; line-height: 1.45; letter-spacing: -0.025em; }
.prose h3 { margin: 28px 0 12px; font-size: 19px; line-height: 1.5; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 16px 0 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted); }
.prose blockquote { border-left: 2px solid var(--accent); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--muted); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img { display: block; max-width: 100%; max-height: 480px; width: auto; height: auto; margin: 24px auto; border-radius: 8px; }
.prose code { font: 0.875em/1.6 ui-monospace, Consolas, monospace; background: var(--surface); padding: 2px 5px; border-radius: 4px; }
.prose pre { max-width: 100%; padding: 20px; overflow-x: auto; background: var(--surface); border-radius: 8px; }
.prose pre code { padding: 0; background: none; overflow-wrap: normal; word-break: normal; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.article-end { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-end .back-link { margin: 0; }
.site-footer { width: min(100% - 64px, 960px); margin: auto; padding: 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

:lang(ja) body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  word-break: normal;
}
:lang(zh) body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  word-break: normal;
}

@media (max-width: 680px) {
  .header-inner { padding: 14px 20px 0; flex-wrap: wrap; gap: 10px 16px; }
  /* row 1: brand + languages; row 2: page links + download */
  .header-inner::after { content: ""; order: 2; flex-basis: 100%; margin-bottom: -10px; }
  .lang-nav { order: 1; }
  .lang-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lang-code { display: inline; }
  .lang-nav a { padding: 4px 7px; font-size: 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .site-nav { order: 3; gap: 20px; }
  .download-link { order: 4; min-height: 0; padding: 10px 0 13px; background: none; font-weight: 500; }
  .download-link:hover { background: none; }
  .site-nav a { padding: 10px 0 13px; }
  .site-nav a[aria-current] { box-shadow: 0 2px var(--accent); }
  main { width: calc(100% - 40px); padding: 44px 0 64px; }
  .page-heading { margin-bottom: 32px; }
  .intro { font-size: 16px; }
  .empty-state { padding: 36px 0; gap: 16px; }
  .empty-icon { width: 28px; height: 34px; }
  .empty-state h2 { font-size: 19px; }
  .empty-state p { font-size: 15px; }
  .release-link { grid-template-columns: minmax(0, 1fr) 20px; gap: 14px; padding: 26px 0; }
  .release-link .release-meta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .release-link h2 { font-size: 21px; }
  .article-header .intro { font-size: 16px; }
  .site-footer { width: calc(100% - 40px); flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .header-inner { column-gap: 12px; }
  .brand span { display: none; }
  .download-link { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .release-link:hover .release-arrow { transform: none; }
}
