@font-face {
  font-family: 'Nunito';
  src: url('assets/nunito-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face { font-family: 'Glacial Indifference'; src: url('assets/glacial-indifference-regular.woff') format('woff'); font-style: normal; font-weight: 400; font-display: swap; }

:root { color-scheme: light; background: #94ce96; color: #080c08; font-family: 'Nunito', sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
main {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(82px, 10vw, 144px) clamp(16px, 3vw, 40px) 13px;
  background-image: url('assets/sedlar.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: max(100%, 700px) auto;
}
#intro { width: min(100%, 900px); margin-inline: auto; text-align: center; }
#logo { max-width: 640px; margin: 0 auto; line-height: 0; }
#logo img { display: block; width: 100%; height: auto; }
#tagline {
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 400;
  margin: 0;
  padding-top: 13px;
  font-size: clamp(.875rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  text-transform: uppercase;
  text-wrap: balance;
}
#contact { margin: auto 0 0; padding-top: clamp(64px, 10vh, 130px); max-width: 100%; font-style: normal; }
#contact a { font-size: clamp(1rem, 2vw, 1.2rem); overflow-wrap: anywhere; }
a { color: inherit; font-size: 1.0625rem; line-height: 1.6; text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; border-radius: 2px; }
@media (min-width: 601px) and (max-width: 1024px) {
  #tagline { font-size: 1.25rem; }
  #logo { margin-top: 32px; padding-left: 16px; }
  main {
    background-image: url('assets/sedlar-mellan-v2.png');
    background-position: center 42px;
    background-size: 100% auto;
  }
}
@media (max-width: 600px) {
  #logo { margin-top: 13vh; padding-left: 16px; }
  main {
    background-image: url('assets/sedlar-mobil-v2.png');
    background-size: 100% auto;
  }
  #tagline { padding-top: 16px; font-size: 1rem; }
}

/* Opacity preserves layout while fonts load. Without JavaScript, text stays visible. */
html[data-fonts="loading"] :is(#tagline, #contact) { opacity: 0; }
html[data-fonts="fallback"] #tagline,
html[data-fonts="fallback"] #contact { font-family: Arial, sans-serif; }
html[data-fonts="ready"] :is(#tagline, #contact),
html[data-fonts="fallback"] :is(#tagline, #contact) { animation: reveal-text 250ms ease-out; }
@keyframes reveal-text { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :is(#tagline, #contact) { animation: none !important; }
}
