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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  font-family: "Inter", sans-serif;

  background: #080808;

  color: white;

  overflow-x: hidden;
}

/* =========================================
   HOME
========================================= */

.home {
  max-width: 1250px;

  margin: 0 auto;

  padding: 145px 35px 100px;
}

/* =========================================
   INTRO
========================================= */

.intro {
  max-width: 700px;

  margin-bottom: 65px;
}

.eyebrow {
  font-size: 11px;

  letter-spacing: 3px;

  color: #777;

  margin-bottom: 22px;
}

.intro h1 {
  font-family: "Playfair Display", serif;

  font-size: clamp(52px, 7vw, 92px);

  line-height: 0.92;

  font-weight: 500;

  letter-spacing: -3px;
}

.intro h1 span {
  color: #777;
}

.intro-text {
  margin-top: 30px;

  max-width: 480px;

  color: #777;

  font-size: 14px;

  line-height: 1.7;

  font-weight: 300;
}

/* =========================================
   CARD GRID
========================================= */

.cards {
  display: grid;

  grid-template-columns: 1.35fr 1fr;

  grid-template-rows: 310px 310px;

  gap: 18px;
}

/* =========================================
   CARD
========================================= */

.archive-card {
  position: relative;

  display: block;

  overflow: hidden;

  border-radius: 24px;

  text-decoration: none;

  color: white;

  isolation: isolate;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: #141414;

  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s ease,
    box-shadow 0.55s ease;
}

.archive-card:hover {
  transform: translateY(-8px);

  border-color: rgba(255, 255, 255, 0.2);

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* =========================================
   BACKGROUND IMAGE
========================================= */

.card-background {
  position: absolute;

  inset: -12px;

  background-size: cover;

  background-position: center;

  filter: blur(3px);

  transform: scale(1.08);

  opacity: 0.5;

  transition:
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.8s ease,
    opacity 0.5s ease;
}

.archive-card:hover .card-background {
  transform: scale(1.16);

  filter: blur(0);

  opacity: 0.72;
}

/* =========================================
   INDIVIDUAL IMAGES
========================================= */

.timeline-card .card-background {
  background-image: url("/images/background.jpg");

  background-position: 0% 70%;
}

.anniversary-card .card-background {
  background-image: url("/images/20260615_004318.jpg");

  background-position: 0% 60%;
}

.gallery-card .card-background {
  background-image: url("gallery.jpg");

  background-position: center;
}

.countdown-card .card-background {
  background-image: url("countdown.jpg");

  background-position: center;
}

/* =========================================
   DARK OVERLAY
========================================= */

.card-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.9) 100%
  );

  z-index: 1;

  transition: background 0.5s ease;
}

.archive-card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

/* =========================================
   CONTENT
========================================= */

.card-content {
  position: absolute;

  inset: 0;

  padding: 28px;

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  z-index: 2;
}

.card-number {
  display: block;

  margin-bottom: 12px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 11px;

  letter-spacing: 2px;
}

.card-content h2 {
  font-family: "Playfair Display", serif;

  font-size: 38px;

  font-weight: 500;

  line-height: 1;
}

.card-content p {
  margin-top: 10px;

  max-width: 300px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 13px;

  line-height: 1.5;
}

/* =========================================
   ARROW
========================================= */

.card-arrow {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.15);

  font-size: 20px;

  backdrop-filter: blur(10px);

  transform: translateY(12px);

  opacity: 0.65;

  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s ease,
    opacity 0.3s ease;
}

.archive-card:hover .card-arrow {
  transform: translateY(0) rotate(45deg);

  background: rgba(255, 255, 255, 0.18);

  opacity: 1;
}

/* =========================================
   FIRST CARD
========================================= */

.timeline-card {
  grid-row: span 2;
}

.timeline-card .card-content h2 {
  font-size: 52px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {
  .home {
    padding: 120px 18px 70px;
  }

  .intro {
    margin-bottom: 40px;
  }

  .intro h1 {
    font-size: 56px;

    letter-spacing: -2px;
  }

  .cards {
    display: flex;

    flex-direction: column;

    gap: 14px;
  }

  .archive-card {
    min-height: 240px;
  }

  .timeline-card {
    min-height: 310px;
  }

  .card-content h2 {
    font-size: 32px;
  }

  .timeline-card .card-content h2 {
    font-size: 42px;
  }
}

/* =========================================
   VERY SMALL SCREENS
========================================= */

@media (max-width: 480px) {
  .navbar {
    padding: 0 16px;
  }

  .nav-left {
    gap: 14px;
  }

  .nav-left a {
    font-size: 11px;
  }

  .together-link {
    display: none;
  }

  .intro h1 {
    font-size: 48px;
  }

  .archive-card {
    border-radius: 18px;
  }

  .card-content {
    padding: 22px;
  }
}
