/* The public changelog: a timeline of release cards with a before/after
   comparison slider. Standalone page, the site's palette and type. */

:root {
  --bg: #f8f9fc;
  --ink: #1c2333;
  --ink-soft: #5a6478;
  --line: #e2e6ee;
  --card: #ffffff;
  --blue: #2f6bff;
  --blue-soft: #eaf0ff;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161c;
    --ink: #e8eaf0;
    --ink-soft: #9aa3b5;
    --line: #2a2f3c;
    --card: #1d2029;
    --blue: #6d94ff;
    --blue-soft: #232c42;
  }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { text-decoration: none; }

.hero { padding: 56px 0 8px; }
.hero h1 { font-size: 44px; letter-spacing: -0.02em; margin: 0 0 10px; }
.hero p { color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 56ch; }
img { max-width: 100%; }
.release-head, .lede, .group, .compare, .origins, .foot, .topbar { min-width: 0; }

/* Zeitstrahl */
.timeline { position: relative; margin: 40px 0 0; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line); border-radius: 1px;
}
.release { position: relative; margin-bottom: 56px; }
.release::before {
  content: ""; position: absolute; left: -26px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft);
}
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release-head h2 { font-size: 28px; margin: 0; letter-spacing: -0.01em; }
.release-head time { color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--blue);
  background: var(--blue-soft); border-radius: 999px; padding: 3px 10px;
}
.release > .lede { color: var(--ink-soft); margin: 10px 0 22px; max-width: 68ch; }

/* Themen-Karten innerhalb eines Releases */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.group {
  min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.group h3 {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 15px; margin: 0 0 10px;
  min-width: 0;
}
.group h3 svg { flex: 0 0 auto; color: var(--blue); }
.group ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; }
.group li { margin-bottom: 6px; }
.group li::marker { color: var(--blue); }

/* Vorher/Nachher */
.compare-section { margin: 8px 0 56px; }
.compare-section > h2 { font-size: 22px; margin: 0 0 6px; }
.compare-section > p { color: var(--ink-soft); margin: 0 0 20px; }
.compare {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 18px;
}
.compare h4 { margin: 0 0 12px; font-size: 15px; }
.ba {
  position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line);
  touch-action: none; user-select: none;
}
.ba img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px;
  background: var(--blue); transform: translateX(-1px);
}
.ba .handle::after {
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--blue); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 5px 9px; white-space: nowrap; letter-spacing: 1px;
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-soft); }

/* Origins + Fuß */
.origins {
  border-top: 1px solid var(--line); padding: 24px 0 64px;
  color: var(--ink-soft); font-size: 14.5px; max-width: 68ch;
}
.origins h2 { font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.foot { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  padding: 8px 14px; border-radius: 10px;
  background: var(--blue); color: #fff; font-size: 14px; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus-visible { top: 12px; }
a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 700px) {
  .groups { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
