/* Changelog. Tokens, nav, .btn, .eyebrow, .download and footer come from /site.css.
   Releases are filled in from CHANGELOG.md at build time (web/accounts/scripts/build.mjs). */
.skip-link {
  position: absolute; top: 12px; left: 16px; z-index: 10;
  padding: 8px 16px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* version and date on the left, notes in a reading column; the hero lines up with the notes */
.c-hero, .release {
  display: grid; justify-content: center;
  grid-template-columns: 150px minmax(0, 680px);
  column-gap: clamp(32px, 5vw, 64px);
}
.c-hero > div { grid-column: 2; }

/* ---------- hero ---------- */
.c-hero { padding-top: clamp(24px, 5vh, 64px); }
.c-hero h1 {
  margin-top: 20px;
  font: 700 clamp(2.5rem, 5.6vw, 3.9rem) / 1.0 var(--display);
  letter-spacing: -0.035em; text-wrap: balance;
}
.c-hero h1 em { font-style: normal; color: var(--accent); }
.c-hero .sub {
  margin-top: 20px; max-width: 540px;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--ink-soft); text-wrap: pretty;
}

/* ---------- releases ---------- */
.releases { padding-top: clamp(56px, 9vh, 96px); }
.release {
  padding: clamp(36px, 5.5vh, 56px) 0;
  border-top: 1px solid var(--hairline);
}
.release:last-child { border-bottom: 1px solid var(--hairline); }
.release:target .release-meta h2 a { background: var(--ink); color: var(--paper); }

.release-meta {
  align-self: start; justify-self: end;
  position: sticky; top: 96px;  /* below the site header */
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  padding-top: 2px;
}
.release-meta h2 a {
  display: inline-block;
  padding: 5px 11px; border-radius: 999px;
  font: 500 0.84rem / 1.2 var(--mono); color: var(--ink);
  background: color-mix(in oklch, var(--paper), var(--ink) 6%);
  transition: background 0.15s, color 0.15s;
}
.release-meta h2 a:hover { background: color-mix(in oklch, var(--paper), var(--ink) 11%); }
.release-meta time { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }

.notes { list-style: none; display: grid; gap: 14px; }
.notes li {
  position: relative; padding-left: 26px;
  font-size: 1rem; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty;
  overflow-wrap: anywhere;
}
.notes li::before {
  content: ""; position: absolute; left: 0; top: 0.84em;
  width: 12px; height: 1px; background: var(--muted);
}
.notes strong { font-weight: 600; color: var(--ink); }
.notes code { font-family: var(--mono); font-size: 0.86em; background: var(--paper-dim); padding: 1px 5px; border-radius: 4px; }
.notes a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .c-hero, .release { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .c-hero > div { grid-column: 1; }
  .release-meta {
    position: static; justify-self: start;
    flex-direction: row; align-items: center; gap: 12px;
    margin-bottom: 18px;
  }
}
@media (max-width: 520px) {
  .notes li { padding-left: 20px; font-size: 0.97rem; }
  .notes li::before { width: 9px; }
}
