@font-face {
  font-family: "Avalon Title";
  src: url('/kaldenor/ui/avalon-title.ttf?v=a9e163915480b306') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101312;
  --surface: #171c19;
  --line: #384239;
  --ink: #e7e9dc;
  --muted: #aeb9ab;
  --gold: #dcc08a;
  --green: #acc7a8;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 'Segoe UI', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:hover, a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 8px 18px; background: var(--gold); color: #151914; transform: translateY(-150%); }
.skip:focus { transform: none; }

.masthead { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(32px, calc((100vw - 1256px)/2)); border-bottom: 1px solid var(--line); background: #121713; }
.wordmark { font: 34px/1 "Avalon Title", var(--serif); letter-spacing: 3px; color: #e8c97f; }
.masthead nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.play { padding: 9px 18px; border: 1px solid #6a7255; }
.play span { padding-left: 18px; }
main { max-width: 1256px; margin: 0 auto; padding: 0 32px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; padding: 40px 0 30px; gap: 20px; }
.eyebrow { font-size: 11px; letter-spacing: 2.3px; color: var(--gold); font-weight: 600; margin: 0 0 8px; }
h1 { font: 56px/1.1 var(--serif); letter-spacing: -1.5px; margin: 0; }
h1 span { color: var(--gold); }
.live { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.live strong { font-weight: 500; color: var(--green); }

.feed { max-width: 850px; margin: 0 auto; padding-bottom: 25px; outline: none; }
#sentinel { height: 1px; }
.feed-end { max-width: 850px; margin: 0 auto; text-align: center; padding: 30px 0; font-size: 13px; }
.release { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 22px; scroll-margin-top: 25px; }
.release::before { content: ''; position: absolute; left: 139px; top: 9px; bottom: -9px; width: 1px; background: var(--line); }
.release::after { content: ''; position: absolute; left: 135px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.release:last-child::before { display: none; }
.timeline-stamp { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 0 0 26px; text-align: right; }
.version-link { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .6px; }
.timeline-stamp time { color: var(--muted); font-size: 12px; }
.current-label { color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.timeline-body { min-width: 0; padding: 0 0 22px 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.release:last-child .timeline-body { border-bottom: 0; margin-bottom: 0; }
.patch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.patch-head h2 { font: 27px/1.2 var(--serif); margin: -4px 0 0; }
.link-button { padding: 0 0 2px; background: none; border: none; border-bottom: 1px solid #536148; color: var(--gold); font-size: 12px; }
.note { display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 14px; margin: 0 0 14px; scroll-margin-top: 28px; }
.single-note { display: block; }
.note:last-child { margin-bottom: 0; }
.note-label h3 { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 2px 0 0; color: var(--gold); }
.note-label a:hover { text-decoration: underline; text-underline-offset: 3px; }
.note-copy { min-width: 0; }
.note-preview { margin: 0; color: #cbd3c3; font-size: 15px; line-height: 1.55; }
.note-details { margin-top: 4px; }
.note-details > summary { display: inline-block; color: var(--gold); font-size: 12px; list-style: none; border-bottom: 1px solid #536148; }
.note-details > summary::-webkit-details-marker { display: none; }
.note-details > summary::after { content: '  ›'; }
.note-details[open] > summary::after { content: '  ⌄'; }
.note-full { margin: 12px 0 4px; padding: 2px 0 2px 15px; border-left: 1px solid var(--line); }
.change-list { margin: 0; padding-left: 18px; color: #cbd3c3; }
.change-list li { padding: 0 0 7px 2px; line-height: 1.55; }
.change-list li:last-child { padding-bottom: 0; }
.change-list li::marker { color: #9aaf80; font-size: 11px; }
strong { font-weight: 600; color: #f0e5c8; }
.note-full p { color: #c4cdbb; margin: 0 0 10px; }
.note-full p:last-child { margin-bottom: 0; }
.related { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.related a { font-size: 12px; color: var(--gold); padding: 3px 8px; background: #242b20; }
.discoveries { margin: 12px 0; }
.spoiler { padding: 12px 15px; margin: 8px 0; border: 1px dashed #536046; background: #182017; }
.spoiler > summary { color: var(--gold); font-size: 14px; }
.spoiler .note { margin: 14px 0 0; }
.empty { max-width: 850px; margin: 0 auto; border: 1px solid var(--line); padding: 30px; color: var(--muted); }
.empty button { margin-top: 15px; }
footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 25px 0 35px; display: flex; justify-content: space-between; gap: 15px; font-size: 11px; letter-spacing: 1px; color: var(--muted); }

@media (max-width: 850px) {
  .masthead { padding: 0 24px; height: 85px; }
  main { padding: 0 24px; }
}
@media (max-width: 640px) {
  .masthead { height: 74px; padding: 0 20px; }
  .wordmark { font-size: 26px; }
  .masthead nav > a:first-child { display: none; }
  .masthead nav { font-size: 12px; }
  .play { padding: 6px 10px; }
  .play span { padding-left: 5px; }
  main { padding: 0 16px; }
  .page-title { display: block; padding: 28px 0 24px; }
  h1 { font-size: 44px; }
  .eyebrow { font-size: 10px; }
  .live { margin: 12px 0 0; }
  .release { grid-template-columns: 78px minmax(0, 1fr); gap: 13px; }
  .release::before { left: 84px; }
  .release::after { left: 80px; }
  .timeline-stamp time { font-size: 11px; }
  .version-link { font-size: 12px; }
  .timeline-body { padding-left: 9px; }
  .patch-head h2 { font-size: 23px; }
  .note { display: block; margin-bottom: 15px; }
  .note-label h3 { margin: 0 0 3px; }
  .note-preview { font-size: 14px; }
  footer { font-size: 10px; letter-spacing: 0; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .release { display: block; padding-left: 22px; }
  .release::before { left: 5px; }
  .release::after { left: 1px; }
  .timeline-stamp { flex-direction: row; align-items: baseline; gap: 10px; padding: 0 0 8px; text-align: left; }
  .timeline-body { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
