@font-face {
  font-family: Inter;
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: #091720;
  color: #f6f8f7;
  font: 1rem/1.4 Inter, system-ui, sans-serif;
}
.viewer {
  --flag-height: clamp(44px, 7svh, 64px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(0.65rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(0.65rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
nav, #playback-error { width: min(100%, 110rem); margin-inline: auto; }
nav a {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
}
nav a > span { display: inline-flex; align-items: center; gap: .5rem; }
nav picture, nav img { display: block; }
nav img { width: auto; height: var(--flag-height); }
nav a > span::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
a { color: #edf6fa; text-underline-offset: 0.25em; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.screen { display: grid; place-items: center; padding-block: 0.6rem; }
video {
  display: block;
  width: min(100%, 110rem);
  height: auto;
  max-height: calc(100svh - var(--flag-height) - 3rem);
  object-fit: contain;
  background: #03090d;
}
#playback-error:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; padding-block: 0.5rem; }
button { color: #0a1922; background: #dfeef3; padding: 0.55em 0.9em; font: inherit; border: 0; border-radius: 0.25rem; }
:focus-visible { outline: 2px solid #83e9fb; outline-offset: 4px; }
