/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

@font-face {
  font-family: "ChiosevkaTermext";
  src: url("./assets/ChiosevkaTermext-ExtendedLight.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #191724;
  font-family: "ChiosevkaTermext", monospace;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 20vh rgba(0, 0, 0, 0.9) inset;
  pointer-events: none;
}

#maindiv {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#linksdiv {
  display: flex;
  position: absolute;
  justify-content: center;
  text-align: center;
  bottom: 0;
  width: 100%;
}

a {
  color: #908caa;
  margin: 1rem 2rem;
  text-decoration: none;
  font-size: 2.2vw;
}

a:hover {
  color: white;
  filter: drop-shadow(0 0 0.2rem white);
}

/*
 * Intentionally unconditional: the drawing animation in logoanim.css and
 * this finishing flash are the site's core reveal and must always play.
 */
#Layer_5 {
  width: 90vw;
  height: 90vh;
  filter: invert(60%) sepia(67%) saturate(1263%) hue-rotate(302deg)
    brightness(90%) contrast(91%) drop-shadow(0.2em 0.2em 0.6em #eb6f92);
  animation: brightness-flash 1.7s ease-in 2.248s forwards;
}

h1 {
  display: none;
  filter: invert(60%) sepia(67%) saturate(1263%) hue-rotate(302deg)
    brightness(90%) contrast(91%) drop-shadow(0em 0em 0.1em #eb6f92);
  font-size: 6vw;
}

.site-description {
  position: absolute;
  bottom: 1.5rem;
  color: #908caa;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  letter-spacing: 0.08em;
}

/* ⬇ flash once the stroke‑drawing is finished */
@keyframes brightness-flash {
  /* immediately at 2.248 s → 115 % */
  0% {
    filter: invert(60%) sepia(67%) saturate(1263%) hue-rotate(302deg)
      brightness(120%) contrast(91%) drop-shadow(0.2em 0.2em 1.2em #fa7399)
      drop-shadow(0.2em 0.2em 0.6em #fa7399);
  }

  /* ease back over the next second → 96 % */
  100% {
    filter: invert(60%) sepia(67%) saturate(1263%) hue-rotate(302deg)
      brightness(96%) contrast(91%) drop-shadow(0.2em 0.2em 0.6em #eb6f92);
  }
}
