@font-face { font-family: "Pathetique Display"; src: url(fonts/pathetique-display.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Jost; font-weight: 300; src: url(fonts/jost-latin-300-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Jost; font-weight: 400; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Jost; font-weight: 500; src: url(fonts/jost-latin-500-normal.woff2) format("woff2"); font-display: swap; }
:root, :root:not([data-theme]) {
  color-scheme: dark; --bg: #0a0b10; --ink: #ececf1; --quiet: #868995; --rule: #23252e; --gold: #d9c48f; --barbg: #050507; --wave: #3a3c46; --head: #ff6a5c;
  --mark: rgba(255, 214, 40, .3); --blend: screen; --paper: invert(.9) hue-rotate(180deg);
}
html body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); font-family: Jost, -apple-system, sans-serif; }
html body:has(> header:not(#brand)) { grid-template-rows: auto auto minmax(0, 1fr) auto; }
#brand { display: flex; align-items: center; gap: 28px; padding: 9px 18px 7px; border-bottom: 1px solid var(--rule); background: var(--barbg); }
#title { display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; column-gap: 5px; align-items: center; color: var(--gold); font-family: "Pathetique Display", serif; text-transform: uppercase; line-height: .98; }
#title .w { grid-area: 1 / 1; font-size: 26px; letter-spacing: .01em; }
#title .p { grid-area: 2 / 1; font-size: 26px; letter-spacing: .03em; justify-self: end; opacity: .72; }
#title .n { grid-area: 1 / 2 / 3 / 3; font-size: 62px; line-height: .86; }
#title .th { grid-area: 1 / 3; font-size: 26px; }
#title .s { grid-area: 2 / 3; font-size: 26px; letter-spacing: .01em; }
#brand #moves { display: flex; gap: 2px; margin-left: 6px; }
#brand #moves button { width: 54px; min-width: 0; height: 50px; padding: 0; border-radius: 0; background: none; border-bottom: 1px solid transparent; font: 30px/1 "Pathetique Display", serif; color: #8f7f58; text-align: center; }
#brand #moves button:hover { color: var(--gold); background: none; }
#brand #moves button[aria-current="true"] { color: var(--gold); border-bottom-color: var(--gold); background: none; }
#brand #views { margin-left: auto; background: none; padding: 0; gap: 0; }
#brand #views a { position: relative; display: grid; place-items: center; width: 62px; height: 50px; padding: 0; border-radius: 0; opacity: 1; color: #8f7f58; border-bottom: 1px solid transparent; box-shadow: none; background: none; transition: color .2s; }
#brand #views a + a::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: linear-gradient(transparent, #4a4230, transparent); }
#brand #views a svg { width: 28px; height: 28px; display: block; }
#brand #views a:hover { color: var(--gold); }
#brand #views a[aria-current="page"] { border-bottom-color: var(--gold); background: linear-gradient(to top, rgba(217, 196, 143, .1), transparent 70%); }
html body footer { --ink: inherit; --quiet: inherit; --rule: inherit; --bar: var(--barbg); color: var(--ink); display: flex; gap: 14px; align-items: center; padding: 8px 18px; border-top: 1px solid var(--rule); background: var(--barbg); }
footer #line, footer #pos { flex: 1; min-width: 0; width: auto; }
footer #bar { font: 28px/1 "Pathetique Display", serif; color: var(--gold); min-width: 3ch; }
#img { filter: invert(1) contrast(1.08); mix-blend-mode: screen; }   /* paper goes black, and black disappears into the page colour */
#labels span { font-family: Jost, sans-serif; font-weight: 300; opacity: .58; }
html body main#stage { order: 0; }
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  #brand { flex-wrap: wrap; gap: 4px 10px; padding: 7px 10px 0; }
  #title .w, #title .p, #title .th, #title .s { font-size: 20px; }
  #title .n { font-size: 48px; }
  #brand #moves { margin-left: auto; }
  #brand #moves button { width: 38px; height: 40px; font-size: 24px; }
  #brand #views { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
  #brand #views a { width: auto; height: 42px; }
  #brand #views a svg { width: 25px; height: 25px; }
  html body footer { padding: 6px 10px; gap: 8px; }
}
