:root {
  --gold: #bc9964;
  --gold-dark: #9d794b;
  --bg: #f8f3ed;
  --text: #4f4338;
  --paper: rgba(255, 253, 251, 0.88);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  overscroll-behavior-y: none;
}

body {
  position: relative;
  overflow-x: hidden;
  overscroll-behavior-y: none;

  background:
    radial-gradient(circle at 8% 12%, rgba(205, 154, 91, 0.28), transparent 22%),
    radial-gradient(circle at 92% 18%, rgba(176, 126, 72, 0.2), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(222, 170, 104, 0.2), transparent 28%),
    radial-gradient(circle at 84% 88%, rgba(153, 105, 58, 0.14), transparent 30%),
    linear-gradient(135deg, #fffaf3 0%, #f7efe5 28%, #f0e2ce 58%, #e8d6b7 100%);

  background-attachment: fixed;

  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
}

body::before {
  content: '';

  position: fixed;
  inset: 0;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(117, 88, 63, 0.06)),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.7), transparent 25%),
    repeating-linear-gradient(
      0deg,
      rgba(96, 72, 51, 0.04) 0,
      rgba(96, 72, 51, 0.04) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 5px
    ),
    url('https://www.transparenttextures.com/patterns/rice-paper-3.png');

  background-size:
    cover,
    cover,
    auto,
    auto,
    220px 220px;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat;

  mix-blend-mode: multiply;
  opacity: 0.56;

  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';

  position: fixed;
  inset: -15%;

  pointer-events: none;
  z-index: -1;

  opacity: 0.6;

  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8), transparent 18%),
    radial-gradient(circle at 75% 55%, rgba(255, 231, 195, 0.46), transparent 22%),
    radial-gradient(circle at 45% 90%, rgba(255, 255, 255, 0.48), transparent 20%),
    radial-gradient(circle at center, transparent 56%, rgba(92, 69, 51, 0.14) 100%);

  animation: ambientGlow 18s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 1%, 0) scale(1.06);
  }
}

.falling-leaves {
  position: fixed;
  inset: 0;

  pointer-events: none;
  z-index: 999;

  overflow: hidden;
}

.falling-leaves span {
  position: absolute;
  top: -100px;

  font-size: 42px;

  animation: fall linear infinite;

  opacity: 0.72;

  filter: drop-shadow(0 5px 8px rgba(90, 60, 30, 0.12));

  will-change: transform;
}

.falling-leaves span:nth-child(1) {
  left: 3%;
  animation-duration: 12s;
}

.falling-leaves span:nth-child(2) {
  left: 15%;
  animation-duration: 18s;
  animation-delay: 2s;
}

.falling-leaves span:nth-child(3) {
  left: 28%;
  animation-duration: 14s;
  animation-delay: 4s;
}

.falling-leaves span:nth-child(4) {
  left: 40%;
  animation-duration: 16s;
  animation-delay: 1s;
}

.falling-leaves span:nth-child(5) {
  left: 55%;
  animation-duration: 13s;
  animation-delay: 5s;
}

.falling-leaves span:nth-child(6) {
  left: 70%;
  animation-duration: 17s;
  animation-delay: 3s;
}

.falling-leaves span:nth-child(7) {
  left: 85%;
  animation-duration: 15s;
  animation-delay: 1s;
}

.falling-leaves span:nth-child(8) {
  left: 95%;
  animation-duration: 19s;
  animation-delay: 6s;
}

@keyframes fall {
  0% {
    transform: translate3d(0, -100px, 0) rotate(0deg);
    opacity: 0;
  }

  8% {
    opacity: 0.72;
  }

  25% {
    transform: translate3d(45px, 25vh, 0) rotate(100deg);
  }

  50% {
    transform: translate3d(-30px, 50vh, 0) rotate(210deg);
  }

  75% {
    transform: translate3d(65px, 75vh, 0) rotate(300deg);
  }

  92% {
    opacity: 0.72;
  }

  100% {
    transform: translate3d(-25px, 110vh, 0) rotate(390deg);
    opacity: 0;
  }
}

.container {
  width: min(1200px, 90%);
  margin: auto;
}

section {
  position: relative;
  padding: 100px 0;
}

section::before {
  content: '🍁';

  position: absolute;

  top: 30px;
  right: 40px;

  font-size: 40px;

  opacity: 0.15;

  transform: rotate(15deg);

  animation: leafFloat 5s ease-in-out infinite;
}

section::after {
  content: '🍂';

  position: absolute;

  bottom: 30px;
  left: 40px;

  font-size: 50px;

  opacity: 0.12;

  transform: rotate(-15deg);

  animation: leafFloat 6s ease-in-out infinite reverse;
}

@keyframes leafFloat {
  0%,
  100% {
    transform: translateY(0) rotate(15deg);
  }

  50% {
    transform: translateY(-12px) rotate(25deg);
  }
}

.title {
  position: relative;

  text-align: center;

  font-size: 52px;

  color: var(--gold);

  margin-bottom: 60px;

  text-shadow: 0 4px 18px rgba(93, 65, 35, 0.12);

  animation: titleAppear 1s ease both;
}

.title::after {
  content: '✦  ❧  ✦';

  display: block;

  margin-top: 14px;

  font-size: 20px;

  letter-spacing: 8px;

  color: var(--gold);

  opacity: 0.55;
}

@keyframes titleAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;

  position: relative;
}

.hero-grid {
  display: grid;

  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);

  gap: 80px;

  align-items: center;

  width: min(100%, 1160px);
  margin: 0 auto;
}

.subtitle {
  text-transform: uppercase;

  letter-spacing: 4px;

  color: var(--gold);

  margin-bottom: 30px;

  font-size: 22px;
}

.names {
  font-family: 'Great Vibes', cursive;

  font-size: 120px;

  line-height: 0.95;

  margin-bottom: 25px;

  color: #5b4a3c;

  text-shadow: 0 8px 25px rgba(84, 60, 39, 0.13);

  animation:
    namesAppear 1.5s ease both,
    namesFloat 5s ease-in-out 1.5s infinite;
}

@keyframes namesAppear {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes namesFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.date {
  font-size: 42px;

  margin-bottom: 25px;

  color: var(--gold-dark);

  letter-spacing: 2px;
}

.hero-text {
  max-width: 520px;
  margin: 0 auto;
}

.hero-text p {
  font-size: 34px;

  line-height: 1.3;

  max-width: 650px;
}

.hero-photos {
  position: relative;

  width: min(100%, 620px);
  min-height: 700px;
  margin: 0 auto;
}

.photo {
  position: absolute;

  background: white;

  padding: 10px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);

  transition:
    transform 0.6s ease,
    box-shadow 0.6s ease;
}

.photo:hover {
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.2);

  z-index: 5;
}

.photo img {
  width: 100%;
  display: block;
}

.photo-1 {
  width: min(85%, 520px);

  right: 0;
  top: 0;

  transform: rotate(-3deg);
}

.photo-1:hover {
  transform: rotate(-1deg) scale(1.025);
}

.photo-2 {
  width: min(60%, 360px);

  left: 0;
  bottom: 40px;

  transform: rotate(4deg);
}

.photo-2:hover {
  transform: rotate(2deg) scale(1.035);
}

.timeline-wrapper {
  display: grid;

  grid-template-columns: 1fr 500px;

  gap: 60px;

  align-items: center;
}

.timeline-photo {
  width: 100%;
  height: 560px;

  overflow: hidden;

  background: #fff;

  padding: 12px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);

  border: 1px solid rgba(188, 153, 100, 0.35);
}

.timeline-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.timeline {
  background: var(--paper);

  border-radius: 20px;

  padding: 50px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);

  backdrop-filter: blur(8px);
}

.event {
  margin-bottom: 40px;

  position: relative;
}

.event:last-child {
  margin-bottom: 0;
}

.time {
  color: var(--gold);

  font-size: 60px;

  font-weight: 700;

  line-height: 1;
}

.event h3 {
  font-size: 42px;

  margin-bottom: 10px;
}

.event p {
  font-size: 28px;

  line-height: 1.25;
}

.info-grid {
  display: grid;

  grid-template-columns: 400px 1fr;

  gap: 60px;

  align-items: center;
}

.info-photo {
  transform: rotate(-4deg);

  background: white;

  padding: 10px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);

  transition: transform 0.5s ease;
}

.info-photo:hover {
  transform: rotate(-1deg) scale(1.025);
}

.info-photo img {
  width: 100%;
  display: block;
}

.info-content {
  background: var(--paper);

  padding: 50px;

  border-radius: 20px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);

  backdrop-filter: blur(8px);
}

.info-content h2 {
  color: var(--gold);

  font-size: 54px;

  margin-bottom: 25px;
}

.info-content p {
  font-size: 30px;

  line-height: 1.3;

  margin-bottom: 20px;
}

.map-card {
  overflow: hidden;

  border-radius: 20px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);

  background: white;

  padding: 10px;

  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.map-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.16);
}

.map-card iframe {
  display: block;

  width: 100%;

  border: none;

  border-radius: 12px;
}

.countdown {
  text-align: center;
}

.timer {
  display: flex;

  justify-content: center;

  gap: 30px;

  flex-wrap: wrap;
}

.timer-box {
  width: 150px;
  height: 150px;

  background: var(--paper);

  border-radius: 20px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.timer-box:hover {
  transform: translateY(-8px);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.13);
}

.timer-box span:first-child {
  font-size: 52px;

  color: var(--gold);

  font-weight: 700;
}

.timer-box span:last-child {
  font-size: 22px;

  color: var(--text);
}

footer {
  position: relative;

  text-align: center;

  padding: 90px 20px 110px;

  font-family: 'Great Vibes', cursive;

  font-size: 52px;

  color: var(--gold);

  text-shadow: 0 4px 18px rgba(93, 65, 35, 0.16);
}

footer::before {
  content: '';

  display: block;

  width: 120px;
  height: 1px;

  margin: 0 auto 24px;

  background: linear-gradient(90deg, transparent, var(--gold), transparent);

  opacity: 0.65;
}

footer::after {
  content: '✦';

  position: absolute;

  left: 50%;
  top: 38px;

  transform: translateX(-50%);

  font-family: 'Cormorant Garamond', serif;

  font-size: 22px;

  opacity: 0.65;

  animation: twinkle 2.8s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.35;
  }

  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.9;
  }
}

.hero,
.timeline-wrapper,
.info-grid,
.map-card {
  animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(40px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  section {
    padding: 65px 0;
  }

  .container {
    width: min(100% - 32px, 620px);
  }

  .hero {
    min-height: 100svh;

    padding: 70px 0 50px;
  }

  .hero-grid,
  .timeline-wrapper,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 45px;
    width: 100%;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .subtitle {
    font-size: 15px;

    letter-spacing: 2px;

    line-height: 1.4;

    margin-bottom: 22px;
  }

  .names {
    font-size: 78px;

    line-height: 0.9;

    margin-bottom: 20px;
  }

  .date {
    font-size: 32px;

    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: 25px;

    line-height: 1.25;

    margin: 0 auto;

    max-width: 520px;
  }

  .hero-photos {
    min-height: 480px;

    width: min(100%, 520px);
  }

  .photo-1 {
    width: 88%;

    right: 0;
    top: 0;
  }

  .photo-2 {
    width: 62%;

    left: 0;
    bottom: 15px;
  }

  .title {
    font-size: 42px;

    margin-bottom: 40px;

    line-height: 1.05;
  }

  .timeline-wrapper {
    gap: 35px;
  }

  .timeline {
    padding: 32px 25px;
  }

  .event {
    margin-bottom: 32px;
  }

  .time {
    font-size: 48px;
  }

  .event h3 {
    font-size: 34px;

    line-height: 1.05;
  }

  .event p {
    font-size: 23px;

    line-height: 1.2;
  }

  .timeline-photo {
    width: 100%;

    height: auto;

    aspect-ratio: 4 / 5;

    border-radius: 0;
  }

  .timeline-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
  }

  .info-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
  }

  .info-content {
    order: 1;
    padding: 32px 25px;
  }

  .info-photo {
    order: 2;
    width: min(90%, 420px);

    margin: 0 auto;
  }

  .info-content h2 {
    font-size: 44px;
  }

  .info-content p {
    font-size: 24px;
  }

  .map-card iframe {
    height: 420px;
  }

  .timer {
    gap: 12px;
  }

  .timer-box {
    width: calc(50% - 8px);

    max-width: 150px;

    height: 130px;
  }

  .timer-box span:first-child {
    font-size: 44px;
  }

  .timer-box span:last-child {
    font-size: 18px;
  }

  footer {
    font-size: 42px;

    line-height: 1.05;

    padding: 75px 15px 90px;
  }

  .falling-leaves span {
    font-size: 28px;
  }

  section::before {
    right: 10px;

    font-size: 30px;
  }

  section::after {
    left: 10px;

    font-size: 35px;
  }
}

@media (min-width: 360px) and (max-width: 430px) {
  .hero {
    padding-top: 40px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-photos {
    width: min(100%, 360px);
    min-height: 290px;
    margin: 0 auto;
  }

  .photo {
    padding: 6px;
  }

  .photo-1 {
    width: 82%;
    right: 4px;
    top: 0;
  }

  .photo-2 {
    width: 58%;
    left: 4px;
    bottom: 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 55px 0;
  }

  .container {
    width: calc(100% - 24px);
  }

  .hero {
    padding-top: 55px;
  }

  .subtitle {
    font-size: 13px;

    letter-spacing: 1.5px;
  }

  .names {
    font-size: clamp(52px, 16vw, 64px);

    line-height: 0.96;
  }

  .date {
    font-size: clamp(24px, 7vw, 28px);
  }

  .hero-text p {
    font-size: clamp(20px, 5.5vw, 22px);

    max-width: 100%;
  }

  .hero-photos {
    min-height: 330px;
  }

  .photo-1 {
    width: 88%;

    right: 6px;
  }

  .photo-2 {
    width: 62%;

    left: 4px;
    bottom: 8px;
  }

  .title {
    font-size: 35px;
  }

  .timeline {
    padding: 28px 20px;
  }

  .time {
    font-size: 43px;
  }

  .event h3 {
    font-size: 31px;
  }

  .event p {
    font-size: clamp(18px, 5vw, 21px);
  }

  .timeline-photo {
    aspect-ratio: 3 / 4;

    padding: 8px;

    border-radius: 12px;
  }

  .timeline-photo img {
    border-radius: 8px;
  }

  .info-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .info-content {
    order: 1;
    padding: 28px 20px;
  }

  .info-photo {
    order: 2;
  }

  .info-content h2 {
    font-size: 39px;
  }

  .info-content p {
    font-size: clamp(18px, 5vw, 22px);
  }

  .map-card {
    padding: 6px;
  }

  .map-card iframe {
    height: 350px;
  }

  .timer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 330px;
    margin: 0 auto;
  }

  .timer-box {
    width: 100%;
    flex: none;

    min-width: 0;
    height: 110px;
  }

  .timer-box span:first-child {
    font-size: clamp(30px, 9vw, 36px);
  }

  .timer-box span:last-child {
    font-size: clamp(13px, 3.8vw, 16px);
  }

  footer {
    font-size: 34px;

    padding: 65px 10px 75px;
  }

  .falling-leaves {
    opacity: 0.7;
  }
}

@media (max-width: 360px) {
  .names {
    font-size: clamp(44px, 15vw, 56px);
  }

  .date {
    font-size: 24px;
  }

  .hero-text p,
  .event p,
  .info-content p {
    font-size: 20px;
  }

  .title {
    font-size: 30px;
  }

  .timer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 100%;
  }

  .timer-box {
    width: 100%;
    flex-basis: 100%;
    max-width: 100%;
  }
}
