/* Patch notes: the card list (/notes) and each patch's page (/notes/<version>). Built by tools/web_notes.py. */
@font-face { font-family: "Barlow"; src: url(/assets/fonts/Barlow-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/Barlow-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/Barlow-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --bg: #12110f; --raised: #1a1816; --line: rgba(239, 233, 222, 0.09); --line-strong: rgba(239, 233, 222, 0.16);
  --text: #f6f1e7; --body: #d2cbbf; --dim: #aaa398; --mute: #8a847a; --accent: #e3b23c;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--body); }
body { font: 400 16px/1.5 "Barlow", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
header { height: 64px; padding: 0 48px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); background: var(--bg); }
header img { height: 24px; display: block; }
header nav { display: flex; gap: 32px; }
header a.link { font: 600 13px/1 "Barlow", sans-serif;  color: var(--dim); text-decoration: none; transition: color .15s var(--ease); }
header a.link[aria-current="page"], header a.link:hover { color: var(--text); }
.meta { display: flex; gap: 12px; align-items: center; margin: 0; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.meta .kind { color: var(--dim); font-weight: 500; padding-right: 12px; border-right: 1px solid var(--line-strong); }

/* The list: a band with the heading, then a card per patch, newest first. */
.band { background: var(--raised); border-bottom: 1px solid var(--line); padding: 48px 48px 40px; }
.band h1, .cards { max-width: 1200px; margin-left: auto; margin-right: auto; }
.band h1 { font: 600 40px/1.1 "Barlow", sans-serif; color: var(--text); margin-top: 0; margin-bottom: 0; }
.cards { padding: 40px 48px 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); transition: border-color .15s var(--ease); }
.card .meta { margin-top: 4px; }
.card h2 { font: 600 20px/1.3 "Barlow", sans-serif; color: var(--text); margin: 0; }
.card p:last-child { margin: 0; color: var(--body); }
.card:hover img { border-color: var(--line-strong); }
.card:hover h2 { text-decoration: underline; text-decoration-color: var(--mute); text-underline-offset: 4px; }

/* A patch: the biggest change as a picture, the title and a line about it, then the notes. */
.patch { max-width: 1040px; margin: 0 auto; padding: 32px 48px 96px; }
.hero { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); }
.title { text-align: center; padding: 40px 0 24px; border-bottom: 1px solid var(--line-strong); margin-bottom: 8px; }
.title h1 { font: 600 36px/1.15 "Barlow", sans-serif; color: var(--text); margin: 0 0 12px; }
.title .summary { font-size: 18px; color: var(--body); max-width: 640px; margin: 0 auto 24px; }
.title .meta { justify-content: center; }
article { max-width: 680px; margin: 0 auto; }
article h2 { font: 600 24px/1.25 "Barlow", sans-serif; color: var(--text); margin: 48px 0 12px; }
article p { margin: 0 0 16px; }
figure { margin: 24px 0 8px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); }
figcaption { margin-top: 8px; font-size: 14px; color: var(--dim); }
article .back { margin-top: 48px; font-size: 14px; }
article .back a { color: var(--dim); text-underline-offset: 4px; text-decoration-color: var(--mute); }
article .back a:hover { color: var(--text); }

/* Bug fixes: folded away until opened, one line each. */
.fixes { margin-top: 48px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--raised); }
.fixes summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font: 600 18px/1.3 "Barlow", sans-serif; color: var(--text); }
.fixes summary::-webkit-details-marker { display: none; }
.fixes summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg) translateY(-2px); transition: transform .15s var(--ease); }
.fixes[open] summary::after { transform: rotate(225deg) translate(-2px, 0); }
.fixes .count { font-weight: 400; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.fixes ul { margin: 0; padding: 8px 20px 16px 40px; border-top: 1px solid var(--line); }
.fixes li { padding: 8px 0; font-size: 15px; }
.fixes li::marker { color: var(--mute); }

footer { border-top: 1px solid var(--line); padding: 24px 48px; font-size: 13px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  header, footer, .band { padding-left: 16px; padding-right: 16px; }
  header nav { display: none; }
  .band { padding-top: 32px; padding-bottom: 28px; }
  .band h1 { font-size: 32px; }
  .cards { grid-template-columns: 1fr; padding: 24px 16px 64px; gap: 32px; }
  .patch { padding: 16px 16px 64px; }
  .title { padding-top: 28px; }
  .title h1 { font-size: 28px; }
  .title .summary { font-size: 16px; }
  article h2 { font-size: 22px; margin-top: 40px; }
}
