/* Release notes — same cream/charcoal system as the landing page and Tag
   Extract. External rather than inline so the page can keep a strict CSP. */

:root {
  --cream:       #f7f4ed;
  --cream-soft:  #fcfbf8;
  --light-cream: #eceae4;
  --charcoal:    #1c1c1c;
  --charcoal-82: rgba(28,28,28,0.82);
  --muted:       #5f5f5d;
  --charcoal-40: rgba(28,28,28,0.4);
  --charcoal-04: rgba(28,28,28,0.04);
  --ok:          #2f6b4f;
  --inset-button: rgba(255,255,255,0.2) 0 0.5px 0 0 inset,
                  rgba(0,0,0,0.2) 0 0 0 0.5px inset,
                  rgba(0,0,0,0.05) 0 1px 2px 0;
  --max: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: 0.92em; }

.wrap  { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.inner { max-width: 760px; margin: 0 auto; }

/* Nav — matches tags/ */
nav { border-bottom: 1px solid var(--light-cream); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: block; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 14px; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 16px; padding: 8px 16px; border-radius: 6px;
  text-decoration: none; cursor: pointer;
}
.btn.small { font-size: 14px; padding: 6px 12px; }
.btn.ghost { background: transparent; border: 1px solid var(--charcoal-40); }
.btn.ghost:hover { background: var(--charcoal-04); }

/* Page header */
.page-head { padding: 56px 0 8px; }
.eyebrow {
  margin: 0 0 8px; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 12px; font-weight: 600;
}
.lede { margin: 0; color: var(--charcoal-82); font-size: 18px; max-width: 60ch; }

/* Version jump list */
.toc { margin: 28px 0 0; }
.toc ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.toc a {
  display: inline-block; text-decoration: none;
  font-size: 14px; font-variant-numeric: tabular-nums;
  padding: 5px 11px; border-radius: 999px;
  background: var(--cream-soft); border: 1px solid var(--light-cream);
}
.toc a:hover { border-color: var(--charcoal-40); }

main { padding: 24px 0 72px; }

/* A release */
.release {
  padding: 32px 0;
  border-top: 1px solid var(--light-cream);
  /* Clears the sticky-free nav and leaves the heading breathing room when
     arriving via a #v1-1-8 link. */
  scroll-margin-top: 24px;
}
.release:first-child { border-top: 0; }

.release-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.release-head h2 {
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.3px;
  margin: 0; font-weight: 600;
}
.release-link { text-decoration: none; }
.release-link:hover { text-decoration: underline; }

.latest {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ok); border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px;
}

.copy {
  margin-left: auto;
  font: inherit; font-size: 13px; padding: 5px 11px;
  border: 1px solid var(--charcoal-40); border-radius: 6px;
  background: transparent; color: var(--charcoal-82); cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.copy:hover { background: var(--charcoal-04); }
.copy.copied { color: var(--ok); border-color: var(--ok); }

.release h3 {
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  margin: 24px 0 8px; color: var(--charcoal);
}
.release p { margin: 0 0 14px; color: var(--charcoal-82); }
.release ul { margin: 0 0 14px; padding-left: 22px; }
.release li { margin-bottom: 10px; color: var(--charcoal-82); }
.release li strong, .release p strong { color: var(--charcoal); }

/* Footer */
footer { border-top: 1px solid var(--light-cream); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .release-head h2 { font-size: 24px; }
  .copy { margin-left: 0; }
}
