:root {
  color-scheme: light;
  --ink: #101315;
  --muted: #667077;
  --line: #d8dddf;
  --paper: #ffffff;
  --wash: #f3f5f4;
  --lime: #b7f34a;
  --coral: #ff6b57;
  --cyan: #39bdd0;
  --yellow: #f6ca45;
  --focus: #006e7c;
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #2d3235;
  color: #ffffff;
  background: var(--ink);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: #aeb8bc;
  font-size: 12px;
  line-height: 1;
}

.brand-mark {
  width: 30px;
  height: 36px;
  display: grid;
  align-content: end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 3px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.brand-ball {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
}

.brand-ball-a {
  background: var(--lime);
}

.brand-ball-b {
  background: var(--coral);
}

.brand-ball-c {
  background: var(--cyan);
}

.header-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8dddf;
  font-size: 13px;
}

.header-state::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--yellow);
}

.header-state.is-ready::before {
  background: var(--lime);
}

.header-state.is-error::before {
  background: var(--coral);
}

.latest-band {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.latest-layout {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
  padding-top: 52px;
  padding-bottom: 52px;
}

.latest-content {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #536066;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}

.latest-content h1 {
  max-width: 760px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

.latest-summary {
  max-width: 680px;
  min-height: 56px;
  margin: 18px 0 0;
  color: #4c565b;
  font-size: 17px;
  line-height: 1.65;
}

.latest-actions {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.download-button,
.row-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.download-button {
  min-width: 148px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

.download-button:hover,
.row-download:hover {
  color: var(--ink);
  background: var(--lime);
}

.download-button:active,
.row-download:active {
  transform: translateY(1px);
}

.latest-version {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #4a555a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.release-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 660px;
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid #c8cecf;
}

.release-facts div,
.release-meta div {
  min-width: 0;
}

.release-facts dt,
.release-meta dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.release-facts dd,
.release-meta dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.sort-visual {
  position: relative;
  width: 360px;
  height: 290px;
  justify-self: end;
  border-bottom: 12px solid var(--ink);
}

.tube {
  position: absolute;
  bottom: 34px;
  width: 78px;
  height: 222px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  padding: 12px 9px;
  border: 4px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.tube::before,
.tube::after {
  position: absolute;
  top: -4px;
  width: 18px;
  height: 4px;
  content: "";
  background: var(--ink);
}

.tube::before {
  left: 0;
}

.tube::after {
  right: 0;
}

.tube-one {
  left: 14px;
  transform: rotate(-3deg);
}

.tube-two {
  left: 132px;
}

.tube-three {
  right: 14px;
  transform: rotate(3deg);
}

.ball {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset -6px -7px 0 rgb(16 19 21 / 14%);
}

.ball-coral {
  background: var(--coral);
}

.ball-cyan {
  background: var(--cyan);
}

.ball-lime {
  background: var(--lime);
}

.ball-yellow {
  background: var(--yellow);
}

.visual-week {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #626c70;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.history-section {
  padding: 64px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.release-count {
  color: var(--muted);
  font-size: 13px;
}

.release-count strong {
  color: var(--ink);
  font-size: 16px;
}

.catalog-message {
  min-height: 22px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.catalog-message:empty {
  display: none;
}

.catalog-message.is-error {
  padding-left: 12px;
  border-left: 4px solid var(--coral);
  color: #8b2518;
}

.release-list {
  display: grid;
  gap: 12px;
}

.release-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.release-main {
  min-width: 0;
}

.release-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.release-title-line h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.version-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #bbc3c6;
  border-radius: 4px;
  color: #4b575c;
  background: var(--wash);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.release-summary {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: #596469;
  font-size: 14px;
  line-height: 1.55;
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 180px));
  gap: 20px;
  margin: 18px 0 0;
}

.release-meta dd {
  font-size: 13px;
}

.release-hash {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e7eaeb;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.release-hash code {
  min-width: 0;
  color: #3e494e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.row-download {
  width: 112px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

.empty-release-row {
  min-height: 128px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #8d989d;
  background: var(--ink);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.footer-inner a {
  color: #ffffff;
}

@media (max-width: 820px) {
  .latest-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
  }

  .sort-visual {
    width: 260px;
    height: 250px;
  }

  .tube {
    width: 62px;
    height: 190px;
    gap: 6px;
    padding: 9px 6px;
  }

  .tube-two {
    left: 99px;
  }

  .ball {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .header-state {
    max-width: 128px;
    text-align: right;
  }

  .latest-layout {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .latest-content h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .latest-summary {
    min-height: 0;
    margin-top: 12px;
    font-size: 15px;
  }

  .latest-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .download-button {
    width: 100%;
  }

  .release-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .sort-visual {
    width: 252px;
    height: 194px;
    justify-self: center;
  }

  .tube {
    bottom: 16px;
    height: 164px;
  }

  .tube-one {
    left: 8px;
  }

  .tube-two {
    left: 95px;
  }

  .tube-three {
    right: 8px;
  }

  .history-section {
    padding: 48px 0 64px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .release-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .release-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .release-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-hash {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .row-download {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .download-button,
  .row-download {
    transition: none;
  }
}
