:root {
  color-scheme: dark;
  --paper: #111a20;
  --ink: #f2f6f7;
  --soft: #a4b2bb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  min-height: 100svh;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  display: grid;
  grid-template-rows: 1fr auto;
}

main {
  width: 100%;
  padding: 105px 8vw 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 800px);
  aspect-ratio: 100 / 56;
}

#logo-image { display: block; width: 98%; height: auto; }

#flag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#flag:not([hidden]) ~ #logo-image { opacity: 0; }

.coming-soon {
  margin: 18px 0 0;
  padding-left: 5px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 5px;
  color: #d6e0e6;
}

footer {
  text-align: center;
  padding: 0 20px 30px;
  font-size: 10px;
  letter-spacing: .3px;
  color: var(--soft);
}

#motion-toggle {
  position: absolute;
  top: 26px;
  right: 30px;
  background: none;
  border: 1px solid #43505a;
  border-radius: 0;
  padding: 9px 12px;
  min-height: 36px;
  color: var(--soft);
  font: 10px/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

#motion-toggle:hover { border-color: #a6bac7; color: var(--ink); }
#motion-toggle:focus-visible { outline: 2px solid #5db4ed; outline-offset: 5px; }
#motion-toggle:active { transform: translateY(1px); }
#motion-toggle:disabled { cursor: default; opacity: .65; }

#logo-fallback {
  margin: 0;
  font-size: clamp(40px, 9vw, 90px);
  font-weight: 700;
  letter-spacing: -3px;
  text-align: center;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection { background: #287cbd; color: white; }

@media (max-width: 600px) {
  main { padding: 90px 7vw 70px; }
  .coming-soon { font-size: 10px; letter-spacing: 4px; margin-top: 15px; }
  #motion-toggle { top: 20px; right: 20px; }
  footer { padding-bottom: 25px; }
}

@media (max-width: 460px) {
  body:has(#nl-badge-frame) footer { text-align: start; padding-inline: 7vw; }
}

@media (max-height: 450px) {
  main { padding: 65px 15vw 30px; }
  .logo-frame { max-width: min(450px, 82svh); }
  .coming-soon { margin-top: 6px; }
  footer { padding-bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  #flag { visibility: hidden; }
  #flag:not([hidden]) ~ #logo-image { opacity: 1; }
}
