@font-face {
  font-family: "Gatchina";
  src: url("./assets/fonts/gatchina-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("./assets/fonts/google-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f0e6;
  --ink: #191a17;
  --orange: #ff5c38;
  --orange-text: #b83218;
  --lime: #e8f58c;
  --gray: #c8c8c3;
  --body-font: "Google Sans", Arial, sans-serif;
  --display-font: "Gatchina", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange-text);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgb(25 26 23 / 16%);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-header__date {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-header__label {
  opacity: 0.62;
}

.site-header__spark {
  font-size: 1.8rem;
  color: var(--orange);
  line-height: 1;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(850px, calc(100svh - 74px));
  overflow: hidden;
  isolation: isolate;
  padding: 8vw clamp(24px, 7vw, 112px) 130px;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.26;
  background-image: radial-gradient(rgb(67 60 49 / 28%) 0.65px, transparent 0.65px);
  background-size: 6px 6px;
  pointer-events: none;
}

.hero__disc {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -7%;
  width: clamp(330px, 50vw, 730px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
  transform: rotate(-12deg);
}

.hero__disc::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgb(25 26 23 / 20%);
  border-radius: 50%;
}

.hero__scribble {
  position: absolute;
  z-index: 0;
  color: var(--orange);
  line-height: 1;
  pointer-events: none;
}

.hero__scribble--one {
  top: 10%;
  left: 5%;
  font-size: clamp(3rem, 6vw, 7rem);
  transform: rotate(-18deg);
}

.hero__scribble--two {
  right: 12%;
  bottom: 15%;
  font-size: clamp(4rem, 10vw, 10rem);
  transform: rotate(16deg);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 40px;
  height: 2px;
  background: currentColor;
}

.hero__eyebrow {
  margin: 0 0 18px 0.8vw;
}

.hero__title {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.035em;
}

.hero__name {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--orange-text);
  font-size: clamp(7rem, 18.5vw, 18rem);
  line-height: 0.84;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.hero__name .letter {
  display: inline-block;
  transform-origin: center 68%;
  animation: letter-arrive 760ms cubic-bezier(0.2, 0.95, 0.2, 1) both;
  animation-delay: calc(var(--index) * 90ms);
  transition: transform 440ms cubic-bezier(0.16, 1, 0.3, 1), opacity 440ms ease, filter 440ms ease;
}

.hero__wish {
  display: block;
  width: min(100%, 1100px);
  margin-top: 0.06em;
  font-size: clamp(3.5rem, 7.8vw, 8.5rem);
  line-height: 0.95;
  animation: wish-arrive 900ms 500ms both;
}

.hero__hint {
  margin: clamp(28px, 5vw, 64px) 0 0 0.8vw;
  color: rgb(25 26 23 / 64%);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
}

.scroll-cue {
  position: absolute;
  left: clamp(24px, 7vw, 112px);
  bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.scroll-cue__arrow {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: transform 220ms ease, background 220ms ease;
}

.scroll-cue:hover .scroll-cue__arrow {
  transform: translateY(4px);
  background: var(--lime);
}

.hero__side-note {
  position: absolute;
  right: 18px;
  top: 50%;
  color: rgb(25 26 23 / 56%);
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes letter-arrive {
  from { opacity: 0; filter: blur(12px); transform: translateY(35px) rotate(8deg); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) rotate(0); }
}

@keyframes wish-arrive {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-section {
  padding: clamp(70px, 8vw, 125px) clamp(24px, 7vw, 112px) clamp(95px, 10vw, 155px);
  background: #ebe6db;
}

.section-number {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  color: rgb(25 26 23 / 60%);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.section-number__line {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.32;
}

.message-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1400px;
  margin: 65px auto 0;
}

.message-section__asterisk {
  margin: 0 0 25px;
  color: var(--orange);
  font-size: 4.5rem;
  line-height: 1;
}

.message-section h2,
.photos-section h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(4.8rem, 7.9vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.message-section h2 em,
.photos-section h2 em {
  color: var(--orange-text);
  font-style: normal;
}

.message-section__description {
  max-width: 380px;
  margin: 35px 0 0;
  color: rgb(25 26 23 / 67%);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
}

.message-section__media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-ring {
  display: grid;
  width: min(100%, 450px);
  aspect-ratio: 1;
  padding: 20px;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 50%;
  transform: rotate(7deg);
}

.video-circle {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #c9c8c2;
  transform: rotate(-7deg);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: rgb(25 26 23 / 56%);
  text-align: center;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-placeholder::before,
.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgb(25 26 23 / 20%);
  border-radius: 50%;
}

.video-placeholder::after {
  inset: 18%;
}

.video-placeholder__icon {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.4rem;
  padding-left: 4px;
}

.video-circle video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.video-controls button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.video-controls button:hover {
  background: var(--ink);
  color: var(--paper);
}

.video-caption {
  margin: 18px 0 0;
  color: rgb(25 26 23 / 50%);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.photos-section {
  padding: clamp(76px, 8vw, 125px) clamp(24px, 7vw, 112px) clamp(100px, 10vw, 160px);
  background: var(--ink);
  color: var(--paper);
}

.section-number--light {
  color: rgb(245 240 230 / 59%);
}

.photos-section__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  max-width: 1400px;
  margin: 55px auto 85px;
}

.photos-section h2 {
  font-size: clamp(5rem, 8.2vw, 9.5rem);
}

.photos-section h2 em {
  color: var(--lime);
}

.photos-section__intro p {
  max-width: 270px;
  margin: 0 0 11px;
  color: rgb(245 240 230 / 66%);
  font-size: 1.04rem;
  line-height: 1.5;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(16px, 4vw, 68px);
  row-gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8px;
}

.photo-card {
  --turn: -3deg;
  width: 100%;
  margin: 0;
  padding: clamp(8px, 1vw, 14px);
  background: #f2eee6;
  color: var(--ink);
  box-shadow: 0 18px 34px rgb(0 0 0 / 20%);
  transform: rotate(var(--turn));
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease;
}

.photo-card:nth-child(5n + 2) { --turn: 3deg; }
.photo-card:nth-child(5n + 3) { --turn: -1deg; }
.photo-card:nth-child(5n + 4) { --turn: 4deg; }
.photo-card:nth-child(5n + 5) { --turn: -4deg; }
.photo-card:nth-child(3n + 2) { margin-top: clamp(45px, 7vw, 110px); }
.photo-card:nth-child(3n + 3) { margin-top: clamp(20px, 3.5vw, 55px); }

.photo-card:hover {
  position: relative;
  z-index: 1;
  box-shadow: 0 28px 54px rgb(0 0 0 / 30%);
  transform: translateY(-10px) rotate(0deg) scale(1.02);
}

.photo-card__surface {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(135deg, #d2d2cd, #bfc0bc 62%, #cecfca);
}

.photo-card--portrait .photo-card__surface { aspect-ratio: 4 / 5; }
.photo-card--square .photo-card__surface { aspect-ratio: 1 / 1; }

.photo-card__surface > span {
  color: rgb(25 26 23 / 18%);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
}

.photo-card__surface img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card.is-filled .photo-card__surface {
  background: #aaa;
}

.photo-card figcaption {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 3px 3px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.photo-card figcaption span {
  opacity: 0.45;
  font-weight: 400;
}

.ending {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: min(780px, 88svh);
  padding: clamp(85px, 10vw, 150px) clamp(24px, 7vw, 112px);
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
}

.ending__spark {
  position: absolute;
  top: 10%;
  right: 7%;
  color: var(--paper);
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 1;
  transform: rotate(-15deg);
  opacity: 0.5;
  pointer-events: none;
}

.ending__eyebrow {
  position: relative;
  margin: 0 0 28px;
  font-size: 0.8rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ending h2 {
  position: relative;
  max-width: 1120px;
  margin: 0;
  font-size: clamp(2.7rem, 5.6vw, 6.8rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.ending h2 span {
  display: inline-block;
  margin-top: 0.04em;
  padding: 0.01em 0.15em 0.08em;
  border-radius: 0.05em;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display-font);
  font-size: 1.2em;
  letter-spacing: -0.015em;
  transform: rotate(-2deg);
}

.ending__back {
  position: relative;
  display: inline-block;
  margin-top: 60px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero {
    min-height: 730px;
  }

  .hero__disc {
    top: 9%;
    right: -24%;
  }

  .message-section__layout {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .message-section__media {
    justify-self: center;
    width: min(100%, 470px);
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-card:nth-child(3n + 2),
  .photo-card:nth-child(3n + 3) {
    margin-top: 0;
  }

  .photo-card:nth-child(even) {
    margin-top: 65px;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 60px;
    padding: 0 22px;
  }

  .site-header__label {
    display: none;
  }

  .hero {
    align-items: center;
    min-height: max(680px, calc(100svh - 60px));
    padding: 110px 24px 120px;
  }

  .hero__disc {
    top: 13%;
    right: -56%;
    width: 115vw;
  }

  .hero__scribble--one {
    top: 5%;
    left: 8%;
    font-size: 4rem;
  }

  .hero__scribble--two {
    right: 3%;
    bottom: 15%;
    font-size: 5.6rem;
  }

  .hero__eyebrow {
    margin-bottom: 22px;
  }

  .hero__name {
    font-size: clamp(6.1rem, 25vw, 9rem);
  }

  .hero__wish {
    margin-top: 16px;
    font-size: clamp(3.55rem, 12vw, 5.8rem);
    line-height: 0.95;
  }

  .hero__hint {
    max-width: 210px;
    margin-top: 40px;
  }

  .hero__side-note {
    display: none;
  }

  .scroll-cue {
    left: 24px;
    bottom: 25px;
  }

  .message-section,
  .photos-section {
    padding-left: 26px;
    padding-right: 26px;
  }

  .message-section__layout {
    margin-top: 56px;
  }

  .message-section h2,
  .photos-section h2 {
    font-size: clamp(5rem, 16vw, 7rem);
  }

  .message-section__description {
    margin-top: 28px;
  }

  .video-ring {
    padding: 12px;
  }

  .photos-section__intro {
    display: block;
    margin: 56px auto 60px;
  }

  .photos-section__intro p {
    margin-top: 28px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    row-gap: 35px;
    padding: 0 6px;
  }

  .photo-card {
    width: 90%;
  }

  .photo-card:nth-child(odd) {
    justify-self: start;
    margin-top: 0;
  }

  .photo-card:nth-child(even) {
    justify-self: end;
    margin-top: 0;
  }

  .ending {
    min-height: 700px;
  }

  .ending__spark {
    top: 9%;
    right: -12%;
  }

  .ending h2 {
    font-size: clamp(2.5rem, 9.1vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
