:root {
  color-scheme: dark;
  --page: #101418;
  --surface: #171d22;
  --surface-hover: #1e252a;
  --line: #2b353b;
  --line-soft: #253038;
  --text: #e6e9e7;
  --secondary: #a1adb3;
  --muted: #74838d;
  --accent: #dea85e;
  --accent-soft: #292319;
  --green: #92bca7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--page);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--page); }
button, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-header { height: 76px; border-bottom: 1px solid var(--line-soft); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; padding: 6px; flex: 0 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  background: #d39745; border: 1px solid #e5b06d; border-radius: 5px;
  transform: rotate(-6deg);
}
.brand-mark span { background: #273039; border-radius: 1px; }
.brand-mark span:nth-child(2) { background: #665034; }
.brand-mark span:nth-child(3) { background: #705336; }
.brand-words { display: flex; flex-direction: column; gap: 2px; }
.brand-words strong { font-size: 15px; font-weight: 740; letter-spacing: -.2px; line-height: 1.15; }
.brand-words small { font-size: 10px; font-weight: 520; color: var(--muted); letter-spacing: .45px; }
.site-nav { align-self: stretch; display: flex; align-items: center; gap: 27px; }
.site-nav a { display: inline-flex; height: 100%; align-items: center; color: var(--secondary); font-size: 13px; font-weight: 550; border-bottom: 2px solid transparent; padding-top: 2px; }
.site-nav a.nav-active { color: var(--text); border-color: var(--accent); }
.site-nav a:hover { color: var(--accent); }
.site-nav a.external-nav span { margin-left: 4px; opacity: .65; }

.intro { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 56px; align-items: end; padding: 63px 0 57px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 12px; font-weight: 550; color: var(--accent); margin: 0 0 17px; }
.breadcrumb span { margin: 0 8px; color: #65727b; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(34px,4.1vw,46px); letter-spacing: -1.6px; line-height: 1.2; font-weight: 690; margin: 0 0 17px; }
.intro-description { color: var(--secondary); font-size: 15px; line-height: 1.8; max-width: 650px; margin: 0; }
.intro-aside { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--accent); padding-left: 17px; padding-bottom: 2px; }
.aside-heading { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; font-weight: 750; }
.intro-aside strong { font-size: 25px; line-height: 1.25; font-weight: 660; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.last-updated { color: var(--secondary); font-size: 11px; line-height: 1.45; }

.content-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 58px; align-items: start; padding: 43px 0 108px; }
.sidebar-inner { position: sticky; top: 34px; }
.sidebar-heading { margin: 0 0 13px 11px; color: var(--muted); font-size: 11px; letter-spacing: .7px; font-weight: 700; text-transform: uppercase; }
.release-navigation { display: flex; flex-direction: column; gap: 3px; }
.release-nav-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: transparent; border: 1px solid transparent; border-left: 2px solid transparent; padding: 11px 12px; color: var(--secondary); text-align: left; border-radius: 0 6px 6px 0; }
.release-nav-item:hover { background: #1a2227; color: var(--text); }
.release-nav-item.selected { background: #24231e; border-left-color: var(--accent); color: var(--text); }
.release-nav-name { font-size: 13px; font-weight: 640; line-height: 1.35; }
.release-nav-detail { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.release-nav-detail .status-badge { padding: 0; border: 0; background: none; font-size: 11px; font-weight: 520; }
.release-nav-detail .status-badge::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 6px 1px 0; }
.sidebar-note { border-top: 1px solid var(--line); margin-top: 31px; padding: 24px 11px 0; }
.sidebar-note-heading { margin: 0 0 10px; font-size: 12px; font-weight: 700; }
.sidebar-note p:not(.sidebar-note-heading) { font-size: 12px; line-height: 1.75; color: var(--muted); margin: 0 0 13px; }
.sidebar-note a { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 570; line-height: 1.5; }
.sidebar-note a:hover { text-decoration: underline; }

.updates-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 24px; }
.updates-heading h2 { font-size: 23px; font-weight: 675; letter-spacing: -.55px; margin: 0 0 6px; line-height: 1.4; }
.updates-heading p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 15px; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 25px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.filter { padding: 8px 10px; min-height: 34px; background: none; border: 1px solid transparent; border-radius: 5px; color: var(--secondary); font-size: 12px; font-weight: 550; }
.filter:hover { color: var(--text); background: var(--surface-hover); }
.filter.active { color: var(--accent); background: var(--accent-soft); border-color: #514027; }
.load-status { font-size: 13px; color: var(--secondary); padding: 28px 0; }
.empty-state { border: 1px dashed #46525a; border-radius: 7px; padding: 32px; }
.empty-state strong { font-size: 17px; }
.empty-state p { margin: 8px 0 0; color: var(--secondary); font-size: 13px; }

.version-group { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 25px; background: var(--surface); overflow: hidden; scroll-margin-top: 30px; }
.version-header { padding: 24px 27px 22px; }
.version-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.version-kicker { color: var(--muted); font-size: 11px; font-weight: 600; }
.version-title { font-size: 27px; font-weight: 680; letter-spacing: -.7px; font-variant-numeric: tabular-nums; line-height: 1.18; margin: 0 0 10px; }
.version-subtitle { font-size: 13px; line-height: 1.7; color: var(--secondary); margin: 0; max-width: 620px; white-space: pre-wrap; }
.status-badge { border: 1px solid transparent; border-radius: 4px; display: inline-block; padding: 4px 7px; font-weight: 560; font-size: 10px; letter-spacing: .05px; white-space: nowrap; }
.status-badge[data-status="in_progress"] { border-color: #574229; background: #322718; color: #ecc18c; }
.status-badge[data-status="planned"] { border-color: #424866; background: #23283a; color: #bbc6e3; }
.status-badge[data-status="testing"] { border-color: #2d5464; background: #1c333c; color: #9fc6d5; }
.status-badge[data-status="completed"] { border-color: #3b6253; background: #20392d; color: #9ecdb1; }
.release-progress { display: flex; gap: 13px; align-items: center; margin-top: 19px; }
.release-progress > span { color: var(--muted); font-size: 11px; flex: 0 0 auto; }
.progress-track { background: #303a40; height: 4px; border-radius: 5px; max-width: 180px; width: 100%; overflow: hidden; }
.progress-fill { height: 100%; background: #88b59f; }
.entries { border-top: 1px solid var(--line); padding: 8px 27px 15px 25px; }
.entry { position: relative; display: flex; gap: 19px; align-items: stretch; }
.entry:not(:last-child)::after { content: ''; position: absolute; z-index: 0; width: 1px; top: 28px; bottom: -15px; left: 6px; background: #3a464b; }
.entry-marker { z-index: 1; position: relative; flex: 0 0 13px; width: 13px; height: 13px; margin-top: 27px; border-radius: 50%; background: #252d32; border: 3px solid #66737a; }
.entry[data-status="in_progress"] .entry-marker { border-color: #d4a05c; }
.entry[data-status="planned"] .entry-marker { border-color: #6c7890; }
.entry[data-status="testing"] .entry-marker { border-color: #73aaba; }
.entry[data-status="completed"] .entry-marker { border-color: #7daf95; background: #7daf95; box-shadow: inset 0 0 0 2px #202e27; }
.entry-body { min-width: 0; flex: 1; padding: 24px 0 23px; }
.entry:not(:last-child) .entry-body { border-bottom: 1px solid var(--line-soft); }
.entry-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; flex-wrap: wrap; }
.entry-date { color: var(--muted); font-size: 11px; }
.entry-title { font-size: 16px; font-weight: 650; line-height: 1.5; letter-spacing: -.2px; margin: 0; }
.entry-description { white-space: pre-wrap; color: var(--secondary); font-size: 13px; line-height: 1.76; margin: 9px 0 0; max-width: 630px; }
.entry-actions { display: flex; align-items: center; gap: 13px; margin-top: 15px; }
.vote-caption { color: var(--muted); font-size: 11px; }
.vote-group { display: inline-flex; align-items: center; gap: 7px; }
.vote-button { min-width: 49px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 9px; background: #1e252a; border: 1px solid #39454c; color: #a3b0b8; border-radius: 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.vote-button:hover { background: #273138; border-color: #7c8b92; color: #e8edf0; }
.vote-button[data-voted="true"] { background: #33291d; border-color: #896943; color: #f0c587; }
.vote-button:disabled { cursor: wait; opacity: .65; }
.vote-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.entry-placeholder { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding: 22px 27px; margin: 0; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 29px 0; color: var(--muted); font-size: 12px; }
.footer-inner > span:last-child { display: flex; gap: 24px; }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 950px) {
  .content-layout { grid-template-columns: 170px minmax(0,1fr); gap: 32px; }
  .intro { gap: 30px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  .site-header { height: 68px; }
  .site-nav { gap: 17px; }
  .site-nav a { font-size: 12px; }
  .intro { grid-template-columns: 1fr; gap: 22px; padding: 41px 0 38px; }
  h1 { font-size: 35px; letter-spacing: -1.1px; }
  .intro-aside { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; border-left: 0; padding: 0; }
  .aside-heading { grid-column: 1 / -1; }
  .intro-aside strong { font-size: 18px; }
  .content-layout { grid-template-columns: 1fr; gap: 29px; padding: 28px 0 75px; }
  .sidebar-inner { position: static; }
  .sidebar-heading { margin-left: 0; }
  .release-navigation { flex-direction: row; gap: 6px; overflow-x: auto; padding: 0 0 6px; }
  .release-nav-item { flex: 0 0 auto; width: auto; min-width: 112px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; }
  .release-nav-item.selected { border-color: #7e5c2f; background: #24231e; }
  .release-nav-detail .status-badge { display: none; }
  .sidebar-note { display: none; }
  .updates-heading { margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .brand-mark { width: 30px; height: 30px; padding: 5px; }
  .brand { gap: 9px; }
  .brand-words strong { font-size: 13px; }
  .brand-words small { font-size: 9px; }
  .site-nav { gap: 12px; }
  .intro-description { font-size: 14px; }
  .toolbar { align-items: stretch; }
  .filter-group { gap: 2px; }
  .filter { padding: 8px; font-size: 11px; }
  .version-header { padding: 21px 18px; }
  .entries { padding: 2px 18px 9px 17px; }
  .entry { gap: 14px; }
  .entry-title { font-size: 15px; }
  .entry-description { font-size: 12.5px; }
  .vote-caption { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Project-wide goals share the visual language of release notes, but not their data model. */
.global-layout { padding: 42px 0 96px; }
.global-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.global-heading h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; font-weight: 675; }
.global-heading p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 650px; }
.global-count { color: var(--secondary); font-size: 12px; white-space: nowrap; padding-bottom: 3px; }
.global-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; }
.global-area-card { margin-bottom: 0; min-width: 0; }
.global-area-card .version-header { padding: 23px 24px 20px; }
.area-title { font-size: 23px; font-weight: 675; line-height: 1.25; letter-spacing: -.55px; margin: 0 0 10px; }
.area-goal-count { color: var(--muted); font-size: 11px; }
.global-area-card .entries { padding: 3px 23px 9px 21px; }
.global-area-card .entry { gap: 15px; }
.global-area-card .entry-body { padding: 20px 0; }
.global-area-card .entry-title { font-size: 15px; }
.global-area-card .entry-description { font-size: 12.5px; }
.target-release { color: #c2b395; border: 1px solid #514b3d; padding: 3px 6px; border-radius: 4px; font-size: 10px; }
.global-areas > .empty-state { grid-column: 1 / -1; }
.nav-label-short { display: none; }
@media (max-width: 850px) {
  .global-areas { grid-template-columns: 1fr; }
  .global-area-card .entry-title { font-size: 16px; }
  .global-area-card .entry-description { font-size: 13px; }
}
@media (max-width: 700px) {
  .global-layout { padding-top: 28px; padding-bottom: 70px; }
  .global-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 20px; }
  .global-heading h2 { font-size: 23px; }
}
@media (max-width: 490px) {
  .site-nav a.external-nav { display: none; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .global-area-card .version-header { padding: 21px 18px; }
  .global-area-card .entries { padding: 2px 18px 9px 17px; }
}

/* Release-independent goals use the same full-width reading column as releases. */
.global-layout { padding: 43px 0 108px; }
.global-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.global-heading h2 { font-size: 23px; margin: 0 0 6px; }
.global-heading p { font-size: 13px; }
.global-count { white-space: normal; text-align: right; line-height: 1.5; }
.global-areas { display: flex; flex-direction: column; gap: 0; }
.global-area-card { width: 100%; margin: 0 0 25px; }
.global-area-card .version-header { padding: 24px 27px 22px; }
.global-area-card .entries { padding: 8px 27px 15px 25px; }
.global-area-card .entry { gap: 19px; }
.global-area-card .entry-body { padding: 24px 0 23px; }
.global-area-card .entry-title { font-size: 16px; }
.global-area-card .entry-description { font-size: 13px; max-width: 680px; }
.global-areas > .empty-state { width: 100%; }
.release-progress { flex-wrap: wrap; }
.release-progress > span { white-space: normal; }
.release-download { display: inline-flex; width: fit-content; margin-top: 15px; border: 1px solid #765c34; border-radius: 5px; background: #292217; padding: 8px 11px; font-size: 12px; font-weight: 620; color: #e7bc7a; }
.release-download:hover { border-color: #b28b4f; color: #ffd49c; background: #35291b; }
.status-badge[data-status="paused"] { border-color: #5f5941; background: #343021; color: #d4bb7b; }
.status-badge[data-status="abandoned"] { border-color: #5d444b; background: #342529; color: #d5a1ad; }
.entry[data-status="paused"] .entry-marker { border-color: #baaa75; }
.entry[data-status="abandoned"] .entry-marker { border-color: #956d76; background: #4a3238; }
@media (max-width: 700px) {
  .global-layout { padding: 28px 0 75px; }
  .global-heading { align-items: start; flex-direction: column; gap: 8px; }
  .global-count { text-align: left; }
  .global-area-card .version-header { padding: 21px 18px; }
  .global-area-card .entries { padding: 2px 18px 9px 17px; }
}
