:root {
  color-scheme: light;
  --ink: #202620;
  --muted: #59645c;
  --line: #dce2dc;
  --surface: #f6f8f5;
  --accent: #2d5c45;
  --accent-hover: #214733;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans CJK JP", Meiryo, sans-serif;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
code { font-family: var(--mono); }
section { scroll-margin-top: 1.5rem; }

.layout {
  width: min(50rem, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: .75rem auto auto .75rem;
  transform: translateY(-150%);
  background: #fff;
  padding: .5rem .75rem;
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding-block: .75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}

.header-inner nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  font-size: .875rem;
}

.header-inner nav a {
  padding-block: .4rem;
  text-decoration: none;
  color: var(--muted);
}

.header-inner nav a:hover { text-decoration: underline; }

main { padding-bottom: 4rem; }
.intro { margin-block: 3.5rem 2.5rem; }

h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -.045em;
  font-weight: 680;
}

.intro p {
  margin-top: .6rem;
  color: var(--muted);
}

h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

.release {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .85rem 1rem;
}

.release > :not(h2, .release-meta) { grid-column: 1 / -1; }

.release-meta {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  font-size: .875rem;
  white-space: nowrap;
}

.release-meta code { font-weight: 650; }
.release-meta time { color: var(--muted); font-variant-numeric: tabular-nums; }
.release-access { font-size: .875rem; color: var(--muted); }

/* shadcn/ui Item Group (21st.dev). Slots use native list and link elements. */
[data-slot="item-group"] {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .625rem;
}

[data-slot="item"] {
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
  padding: .95rem 1rem;
}

[data-slot="item"] + [data-slot="item"] { border-top: 1px solid var(--line); }

[data-slot="item-content"] {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .125rem;
  min-width: 0;
}

[data-slot="item-title"] {
  font-size: .975rem;
  line-height: 1.375;
  font-weight: 600;
}

[data-slot="item-description"] {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

[data-slot="item-actions"] {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.75rem;
  min-width: 6rem;
  background: var(--accent);
  color: #fff;
  padding: .4rem .75rem;
  border-radius: .375rem;
  text-decoration: none;
  white-space: nowrap;
}

.download-link:hover { background: var(--accent-hover); color: #fff; }
.download-link code { font-size: .875rem; font-weight: 600; }

.release-files {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  padding: 0;
  font-size: .875rem;
}

.release-files a { display: inline-block; padding-block: .2rem; }

.release-notes {
  margin-top: .6rem;
  padding: .9rem 1rem 1rem;
  background: var(--surface);
  border-radius: .5rem;
}

.release-highlights {
  margin-top: .4rem;
  padding-left: 1.25rem;
  font-size: .9rem;
}

.release-highlights li + li { margin-top: .2rem; }

.section {
  margin-top: 2rem;
  padding-top: 1.55rem;
  border-top: 1px solid var(--line);
}

.section > p { margin-top: .6rem; font-size: .9rem; }
.section-note { color: var(--muted); }

.install-list > div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: .25rem 1rem;
  padding-block: .75rem;
  font-size: .9rem;
}

.install-list > div + div { border-top: 1px solid var(--line); }
.install-list dt { font-weight: 600; }
.install-list code, .section-note code { overflow-wrap: anywhere; }

.section details { border-bottom: 1px solid var(--line); font-size: .9rem; }
.section details summary { cursor: pointer; padding-block: .7rem; }
.section details p { padding-bottom: .75rem; color: var(--muted); }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 38rem) {
  .layout { width: calc(100% - 2rem); }
  .header-inner nav { gap: .4rem 1rem; }
  .intro { margin-block: 2.25rem 1.75rem; }
  .intro p { font-size: .925rem; }
  .release-meta { gap: .4rem; font-size: .78rem; }
  [data-slot="item"] { padding: .75rem; }
  .download-link { min-width: 4.5rem; padding-inline: .6rem; }
  .install-list > div { grid-template-columns: 1fr; }
}
