@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;
  overflow: hidden;
}

/* 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;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 1;
}

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

.quadrant.visible {
  opacity: 1;
}

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

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

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

.q4 {
  background: #c2f3fc;
}

/* 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);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* UPCOMING DATES */
.q2 .quad-content {
  width: 100%;
  max-width: 100%;
}

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

.date-link {
  display: block;
  font-size: clamp(0.55rem, 1.15vw, 1rem);
  line-height: 1.15;
  max-width: none;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

/* SOCIAL LINKS */
.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;
}

/* TABLET / SMALL DESKTOP */
@media (max-width: 900px) {
  .quadrant {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(2rem, 7.5vw, 5rem);
  }

  .section-link {
    font-size: clamp(1rem, 3.5vw, 2rem);
  }

  .date-link {
    font-size: clamp(0.5rem, 1.4vw, 0.85rem);
    letter-spacing: 0.04em;
  }

  .social-link {
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  }
}

/* MOBILE */
@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .site {
    width: 100vw;
    height: 100svh;
    overflow: hidden;
  }

  .quadrants {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100vw;
    height: 100svh;
  }

  .quadrant {
    padding: 0.75rem;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(1.55rem, 9.5vw, 3.25rem);
    line-height: 0.85;
    letter-spacing: -0.08em;
    max-width: 100%;
  }

  .section-link {
    font-size: clamp(0.72rem, 3.8vw, 1.15rem);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.035em;
  }

  .q2 .quad-content {
    width: 100%;
    max-width: 100%;
  }

  .date-list {
    width: 100%;
    gap: 0.2rem;
  }

  .date-link {
    font-size: clamp(0.38rem, 2.05vw, 0.62rem);
    line-height: 1.1;
    letter-spacing: 0.005em;
    white-space: nowrap;
    max-width: 100%;
  }

  .social-link {
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    line-height: 1.1;
    letter-spacing: 0.035em;
  }

  .enter-button {
    font-size: clamp(1rem, 5vw, 1.4rem);
  }

  .enter-flash {
    font-size: clamp(0.75rem, 3vw, 1rem);
  }
}

/* VERY SMALL PHONES */
@media (max-width: 430px) {
  .quadrant {
    padding: 0.6rem;
  }

  h1 {
    font-size: clamp(1.35rem, 8.8vw, 2.4rem);
    letter-spacing: -0.075em;
  }

  .section-link {
    font-size: clamp(0.62rem, 3.4vw, 0.95rem);
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
  }

  .date-link {
    font-size: clamp(0.33rem, 1.85vw, 0.52rem);
    letter-spacing: 0;
    line-height: 1.08;
  }

  .social-link {
    font-size: clamp(0.62rem, 3vw, 0.82rem);
    letter-spacing: 0.025em;
  }
}

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

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