/* Changelog: a commit log. A cornflower rail with one node per release, grouped by week; each release
   can open an Eva window that shows the change itself. Window parts are shared with the homepage style. */
[hidden] { display: none !important; }

/* Segmented filter with a sliding ink marker. */
.wn-seg { position: relative; display: inline-flex; padding: 4px; border: var(--stroke) solid var(--outline); border-radius: 999px; background: var(--surface); }
.wn-seg button {
  position: relative; z-index: 1; font: 500 14.5px var(--font-ui); color: var(--ink-muted);
  background: none; border: 0; padding: 8px 16px; min-height: 44px; border-radius: 999px; cursor: pointer;
  transition: color .2s ease;
}
.wn-seg button[aria-pressed="true"] { color: var(--surface); }
@media (hover: hover) and (pointer: fine) { .wn-seg button[aria-pressed="false"]:hover { color: var(--ink); } }
.wn-seg button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-edge); }
.wn-seg-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--ink);
  transition: transform .26s cubic-bezier(0.23, 1, 0.32, 1), width .26s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Eva window. */
.wn-win { margin: 32px 0 0; border: var(--stroke) solid var(--outline); border-radius: 16px; background: var(--surface); overflow: hidden; }
.wn-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: var(--stroke) solid var(--outline); background: var(--band); color: var(--on-band); font: 500 12.5px var(--font-data); }
.wn-bar .dots i { width: 10px; height: 10px; }
.wn-body { padding: 28px; }
.wn-mono, .wn-k { font: 500 12.5px var(--font-data); color: var(--ink-muted); }

.wn-cost { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; }
.wn-big { display: flex; flex-direction: column; gap: 6px; }
.wn-big b { font-size: clamp(48px, 6vw, 72px); line-height: .9; letter-spacing: -0.04em; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.wn-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.wn-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 400 13px var(--font-data); }
.wn-dl dt { color: var(--ink-muted); } .wn-dl dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

.wn-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 28px; background: var(--sunken); }
.wn-bob { animation: wn-bob 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes wn-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.wn-ell i { font-style: normal; animation: wn-dot 1.4s infinite; }
.wn-ell i:nth-child(2) { animation-delay: .2s; } .wn-ell i:nth-child(3) { animation-delay: .4s; }
@keyframes wn-dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.wn-reuse { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.wn-cells { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(51, minmax(0, 1fr)); gap: 3px; height: 44px; }
.wn-cells i { border-radius: 3px; background: var(--kornblomst); border: 1.5px solid var(--outline); }
.wn-cells i.rd { background: var(--surface); }
.wn-legend { display: flex; gap: 20px; font: 400 13px var(--font-data); color: var(--ink-muted); }
.wn-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--outline); margin-right: 7px; vertical-align: -1px; background: var(--kornblomst); }
.wn-legend i.rd { background: var(--surface); }
.wn-delta { display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.wn-delta s { font-size: 20px; color: var(--ink-faint); }
.wn-delta span { color: var(--ink-faint); }
.wn-delta b { font-size: 36px; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); }

.wn-term { font: 400 13.5px/1.5 var(--font-data); color: var(--ink-body); display: grid; gap: 10px; }
.wn-flag { color: var(--fail-ink); background: var(--fail-wash); padding: 1px 6px; border-radius: 5px; }
.wn-hit b { color: var(--ink); font-weight: 600; }
.wn-file { color: var(--ink-faint); padding-left: 16px; border-left: 2px solid var(--line); }

.wn-win { margin-top: 24px; }
.wn-more { display: flex; justify-content: center; margin: 32px 0 0; }

/* Shared extra visuals */
main p kbd { font: 500 13px var(--font-data); padding: 2px 7px; border: 1.5px solid var(--outline); border-bottom-width: 3px; border-radius: 7px; background: var(--surface); color: var(--ink); }
.wn-keys { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px 28px; background: var(--sunken); }
.wn-keys kbd { font: 600 26px var(--font-data); min-width: 64px; height: 64px; display: grid; place-items: center; border: var(--stroke) solid var(--outline); border-bottom-width: 5px; border-radius: 14px; background: var(--surface); color: var(--ink); }
.wn-note { margin-left: 14px; padding: 10px 14px; border: var(--stroke) solid var(--outline); border-radius: 12px 12px 12px 4px; background: var(--band); color: var(--on-band); font-size: 14px; font-weight: 500; }
.wn-steps { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wn-steps span { font: 500 13px var(--font-data); padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--outline); background: var(--surface); color: var(--ink); }
.wn-steps .ok::before { content: "✓ "; color: var(--pass-ink); font-weight: 600; }
.wn-steps .on { background: var(--ink); color: var(--surface); }
.wn-steps span + span { position: relative; margin-left: 18px; }
.wn-steps span + span::after { content: ""; position: absolute; left: -20px; top: 50%; width: 16px; border-top: 2px solid var(--outline); }

/* Commit log */
.c1-wrap { max-width: 860px; }
.c1-hero { padding: 72px 0 32px; }
.c1-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1; }
.c1-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.c1-row p { margin: 0; max-width: 42ch; color: var(--ink-muted); font-size: 18px; }
.c1-rail { position: relative; padding: 24px 0 96px 40px; }
.c1-rail::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 96px; width: 2px; background: var(--kornblomst); }
.c1-week { margin-top: 24px; }
.c1-wk { position: relative; margin: 0 0 8px -40px; padding-left: 40px; font: 500 13px var(--font-data); color: var(--ink-muted); }
.c1-wk b { display: inline-block; padding: 3px 10px; border-radius: 7px; background: var(--band); color: var(--on-band); border: 1.5px solid var(--outline); font-weight: 600; margin-right: 8px; }
.c1-week ol { list-style: none; margin: 0; padding: 0; }
.c1-item { position: relative; padding: 22px 0 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.c1-node { position: absolute; left: -38px; top: 28px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: var(--stroke) solid var(--outline); }
.c1-meta { display: flex; gap: 12px; font: 400 13px var(--font-data); color: var(--ink-faint); }
.c1-meta time { color: var(--ink); font-weight: 500; }
.c1-item h3 { margin: 8px 0 0; font-size: 22px; letter-spacing: -0.015em; font-weight: 600; }
.c1-item h3 a { color: var(--ink); }
.c1-item p { margin: 8px 0 0; color: var(--ink-body); max-width: 60ch; line-height: 1.6; }
.c1-more summary { margin-top: 4px; min-height: 44px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font: 500 13px var(--font-data); color: var(--accent); list-style: none; }
.c1-more summary::-webkit-details-marker { display: none; }
.c1-more summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 5px; line-height: 1; }
.c1-more[open] summary::before { content: "\2212"; }
.c1-h, .c1-more[open] .c1-s { display: none; } .c1-more[open] .c1-h { display: inline; }
.c1-more .wn-win { margin-top: 14px; }
.c1-root { position: relative; margin: 32px 0 0; color: var(--ink-muted); }
.c1-root .c1-node { top: 2px; }
.c1-root a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }


@media (prefers-reduced-motion: reduce) {
  .wn-bob, .wn-ell i { animation: none; }
  .wn-seg-ind { transition: none; }
}
@media (max-width: 860px) {
  .wn-cost { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .wn-seg { width: 100%; overflow-x: auto; }
  .wn-seg button { padding: 8px 12px; flex: 1 0 auto; }
  .wn-body { padding: 20px; }
  .wn-dl { grid-template-columns: minmax(0, 1fr); }
  .wn-cells { gap: 2px; height: 36px; }
  .wn-cells i { border-width: 1px; border-radius: 2px; }
  .wn-reuse { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .c1-rail { padding-left: 32px; }
  .c1-node { left: -30px; }
  .c1-wk { margin-left: -32px; padding-left: 32px; }
  .wn-keys { flex-wrap: wrap; }
  .wn-note { margin: 8px 0 0; }
}
.c1-rss { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; white-space: nowrap; font: 500 14px var(--font-data); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .c1-rss:hover { text-decoration: underline; text-underline-offset: 3px; } }
