@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/SourceCodePro-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/SourceCodePro-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: "Source Code Pro", monospace;
  background: white;
  overflow: hidden;
}

button,
a {
  font-family: "Source Code Pro", monospace;
}

body.loaded {
  overflow: auto;
}

.site {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100svh;
  background: white;
}

/* ENTER SCREEN */
.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.enter-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-button {
  border: none;
  background: transparent;
  color: #002dff;
  padding: 0.9rem 1.15rem;
  font-size: clamp(1rem, 3vw, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  font-weight: 700;
}

.enter-button:hover {
  color: black;
}

/* SUBTLE INTRO FLASH TEXT */
.enter-flash {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9;
  transform: translate(-50%, -50%);
  color: #002dff;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.enter-flash.visible {
  animation: yeahBabyFlash 1s ease forwards;
}

@keyframes yeahBabyFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -45%);
  }

  25% {
    opacity: 0.28;
    transform: translate(-50%, -50%);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
}

/* QUADRANT LAYOUT */
.quadrants {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  z-index: 1;
}

.quadrant {
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
}

.quadrant.visible {
  opacity: 1;
}

.q1 {
  background: #002dff;
  align-items: flex-start;
  justify-content: flex-start;
}

.q2 {
  background: #fad2d2;
  align-items: flex-start;
  justify-content: flex-start;
}

.q3 {
  background: #d4ffb6;
  align-items: flex-end;
  justify-content: flex-start;
}

.q4 {
  background: #a6f1ff;
}

/* CONTENT FADE-IN */
.quad-content {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  z-index: 2;
}

.quad-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TEXT */
h1 {
  font-size: clamp(2.5rem, 8vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  font-weight: 900;
  color: white;
}

.section-link,
.social-link,
.date-link {
  display: block;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.section-link {
  font-size: clamp(1.1rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.date-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.date-link {
  font-size: clamp(0.75rem, 1.3vw, 1rem);
  line-height: 1.15;
  max-width: 32ch;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.social-link {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.1;
}

/* BOTTOM-LEFT SOCIAL LINKS */
.q3 .social-link {
  color: black;
}

.q3 .social-link:hover {
  color: black;
}

.section-link:hover,
.date-link:hover,
.social-link:hover {
  text-decoration: underline;
}

/* MOBILE */
@media (max-width: 700px) {
  .quadrants {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .quadrant {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 4.5rem);
  }

  .section-link {
    font-size: clamp(0.9rem, 5vw, 1.5rem);
    line-height: 1;
    margin-bottom: 0.6rem;
  }

  .date-link {
    font-size: 0.7rem;
    line-height: 1.15;
    letter-spacing: 0.04em;
  }

  .social-link {
    font-size: 0.9rem;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .enter-screen,
  .quadrant,
  .quad-content {
    transition: none;
  }

  .enter-flash.visible {
    animation: none;
  }
}