@font-face {
  font-family: "Google Sans Flex";
  src: url("/assets/fonts/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --dept-bg: #08090a;
  --dept-fg: #f5f4f0;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--dept-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--dept-bg);
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: clamp(1.5rem, 6vw, 4rem);
}

.hero--dept {
  flex: 1 1 auto;
  background: var(--dept-bg);
}

@media (prefers-reduced-motion: no-preference) {
  #butterfly-logo {
    opacity: 0;
    transform: scale(0.82);
    transform-origin: center center;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  }

  #butterfly-logo.is-in {
    opacity: 1;
    transform: scale(1);
  }
}

.logo-stage {
  width: 100%;
}

.logo-stage svg {
  display: block;
  width: 100%;
  height: auto;
}

.logo-stage--dept {
  max-width: clamp(220px, 60vw, 480px);
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: clamp(1.5rem, 5vw, 3rem);
}

.monarch-wordmark {
  width: clamp(220px, 60vw, 480px);
  color: #ffffff;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.monarch-wordmark.is-visible {
  opacity: 1;
}

#site-footer {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#site-footer.is-visible {
  opacity: 1;
}

.monarch-wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  flex: 0 0 auto;
  background: var(--dept-bg);
  color: var(--dept-fg);
  text-align: center;
  padding: clamp(1rem, 4vw, 1.5rem) 1rem;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 420px) {
  .hero {
    padding: 1.5rem;
  }
}
