:root { color-scheme: dark; font: 16px system-ui, sans-serif; background: #131e18; color: #fff7e8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 12px clamp(16px, 3vw, 40px); border-bottom: 1px solid #506555; background: #192820; }
a { color: inherit; text-decoration: none; }
.brand { color: #ffc77a; font-weight: 750; letter-spacing: .02em; }
nav { display: flex; gap: 3px; flex-wrap: wrap; }
nav a, button { border: 1px solid transparent; border-radius: 5px; padding: 8px 12px; }
nav a:hover, nav a[aria-current] { color: #ffc77a; background: #27382e; border-color: #506555; }
button { font: inherit; background: #27382e; color: #fff7e8; border-color: #506555; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #ffc77a; outline-offset: 2px; }
main { display: grid; place-items: center; min-height: 0; padding: clamp(8px, 2.4vw, 28px); }
figure { margin: 0; display: grid; place-items: center; width: min(100%, 1480px); background: #131e18; }
img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; max-height: 82dvh; }
figure:fullscreen img { height: 100%; max-height: none; }
@media (max-width: 680px) { header { gap: 6px 10px; } nav { order: 3; } }
