/* Solas: the Updates page. The home page's look (ivory paper, navy, gold,
   Cormorant Garamond and Source Sans 3). Light values live here; theme.css
   paints Dark by overriding the same variables, as on the site's other pages. */
:root {
  --paper: #f7f4ee;
  --ink: #14171f;
  --ink-soft: #4d515c;
  --rule: rgba(20, 23, 31, .14);
  --surface: #ffffff;
  --accent: #002147;
  --accent-hover: #0a325c;
  --gold: #b38d36;
  --brand: #002147;
  --on-accent: #f7f4ee;
  --bar: rgba(247, 244, 238, .82);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[data-theme="dark"] {
  --brand: #f2f3f8;
  --on-accent: #0f1115;
  --bar: rgba(15, 17, 21, .82);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, main:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 60;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-accent); }

/* ── the header, as the home page's ───────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.top nav {
  max-width: 1180px; margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-tile {
  display: inline-flex; flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: #002147; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1; color: #f7f4ee;
}
html[data-theme="dark"] .brand-tile { box-shadow: inset 0 0 0 1px rgba(242, 243, 248, .18); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1; color: var(--brand); }
.top-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top-links a { color: var(--ink-soft); text-decoration: none; transition: color .2s ease; }
.top-links a:hover { color: var(--ink); }
.top-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.top-end { display: flex; align-items: center; gap: 8px; }
.top .theme-toggle { width: 44px; height: 44px; border-radius: 999px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
@media (max-width: 920px) { .top-links { display: none; } }

/* ── the page ─────────────────────────────────────────────────────────────── */
main {
  display: block; max-width: 980px; margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 40px) clamp(48px, 8vw, 112px);
}
h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 6vw, 80px); line-height: .98; letter-spacing: -.02em; color: var(--ink);
}
.lede { margin: 20px 0 0; max-width: 34em; font-size: clamp(17px, 1.2vw, 19px); color: var(--ink-soft); }
.get { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.btn-big { min-height: 50px; padding: 0 26px; font-size: 16px; white-space: normal; }
.alt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; font-size: 16px; color: var(--accent); text-decoration: none;
}
.alt span[aria-hidden] { display: inline-block; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.alt:hover span[aria-hidden] { transform: translateX(4px); }
.quiet { margin: 20px 0 0; font-size: 15px; color: var(--ink-soft); }
.quiet:empty { display: none; }

/* One version: its number and date on the left, what changed on the right. */
.vers { margin: clamp(40px, 6vw, 72px) 0 0; }
.vers[hidden] { display: none; }
.ver {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 48px;
  padding: 32px 0; border-top: 1px solid var(--rule);
}
.ver-num {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: 30px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink);
}
.ver-date { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); }
.grp {
  margin: 0 0 10px; font-family: var(--sans); font-size: 13px; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft);
}
.items + .grp { margin-top: 26px; }
.items { margin: 0; padding: 0 0 0 1.15em; }
.items li { margin: 0 0 8px; overflow-wrap: anywhere; }
.items li:last-child { margin-bottom: 0; }
.items li::marker { color: var(--gold); }
.items strong { font-weight: 600; }
.items code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em;
  padding: 1px 5px; border-radius: 5px; background: var(--surface); border: 1px solid var(--rule);
}
.ver-none { margin: 0; color: var(--ink-soft); }

.earlier { margin-top: clamp(56px, 8vw, 104px); }
.earlier h2 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.015em; color: var(--ink);
}
.earlier .vers { margin-top: 24px; }
.earlier .ver-num { font-size: 25px; }

@media (max-width: 700px) {
  .ver { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0; }
}

/* ── the footer, as the home page's ───────────────────────────────────────── */
.foot { padding: 36px clamp(20px, 4vw, 40px) 44px; border-top: 1px solid var(--rule); }
.foot-row {
  max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px 32px;
  font-size: 15px; color: var(--ink-soft);
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.brand-tile-small { width: 24px; height: 24px; border-radius: 6px; font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .btn, .alt span[aria-hidden], .top-links a { transition: none; }
  .btn:hover { transform: none; }
  .alt:hover span[aria-hidden] { transform: none; }
}
