:root {
  --wine: #4b0f1a;
  --wine-dark: #28070d;
  --wine-soft: #6a1a2a;
  --ivory: #fff8ee;
  --cream: #f3eadf;
  --ink: #171317;
  --rose: #c9a3a8;
  --emerald: #113f34;
  --silver: #d8d6d1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--wine);
  font-family: "Gaegu", cursive;
  overflow-y: scroll;
}

.panel {
  min-height: 100vh;
  width: 100%;
  position: relative;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 8vw, 110px);
  overflow: hidden;
}

.panel::before,
.panel::after {
  position: absolute;
  font-family: "Gaegu", cursive;
  color: currentColor;
  opacity: 0.22;
  font-size: clamp(34px, 5vw, 70px);
  pointer-events: none;
  z-index: 1;
}

.panel::before {
  content: "♡";
  top: 8%;
  left: 8%;
  transform: rotate(-12deg);
}

.panel::after {
  content: "✦";
  bottom: 8%;
  right: 8%;
  transform: rotate(10deg);
}

.panel-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.center {
  text-align: center;
}

.wide {
  width: min(1180px, 100%);
  text-align: center;
}

.ivory {
  background: var(--ivory);
  color: var(--wine);
}

.wine {
  background: var(--wine);
  color: var(--ivory);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("castle.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: slowZoom 18s ease-out forwards;
}

.blurred {
  filter: blur(3px);
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(40, 7, 13, 0.45), rgba(40, 7, 13, 0.65));
  z-index: 1;
}

h1,
h2,
h3,
.names,
.script,
.big-serif,
.footer h2 {
  font-family: "Gaegu", cursive;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-style: normal;
}

h2 {
  margin: 0 0 26px;
  font-size: clamp(58px, 8vw, 120px);
  line-height: 0.85;
}

h3 {
  font-size: clamp(34px, 4vw, 56px);
  margin: 0 0 14px;
}

p {
  font-family: "Gaegu", cursive;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
}

.kicker,
.date,
.tiny,
.timeline span,
.countdown span,
.button,
.mini-button,
.label,
.scroll-cue {
  font-family: "Gaegu", cursive;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 18px;
}

.wine-text {
  color: var(--wine);
}

.names {
  margin: 0;
  font-size: clamp(70px, 11vw, 150px);
  line-height: 0.78;
}

.names span {
  display: block;
  font-family: "Gaegu", cursive;
  font-size: 0.45em;
  margin: 0.16em 0;
}

.big-serif {
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.78;
}

.script {
  font-size: clamp(68px, 10vw, 140px);
  line-height: 0.78;
}

.date {
  font-size: 22px;
}

.narrow {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.tiny {
  font-size: 16px;
}

.announcement {
  background:
    radial-gradient(
      circle at top left,
      rgba(75, 15, 26, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(75, 15, 26, 0.08),
      transparent 32%
    ),
    var(--ivory);
  color: var(--wine);
}

.announcement-inner {
  text-align: center;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.doodle-row,
.doodle-flourish {
  font-family: "Gaegu", cursive;
  font-size: clamp(32px, 5vw, 58px);
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 28px;
}

.couple-doodle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--wine);
}

.person {
  width: 76px;
  height: 112px;
  border: 3px solid var(--wine);
  border-radius: 48% 48% 40% 40%;
  font-family: "Gaegu", cursive;
  font-size: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
}

.bride {
  transform: rotate(-6deg);
}

.groom {
  transform: rotate(6deg);
}

.hands {
  font-family: "Gaegu", cursive;
  font-size: 36px;
  margin-top: 20px;
}

.doodle-title {
  margin: 18px 0 24px;
  font-family: "Gaegu", cursive;
  font-size: clamp(76px, 13vw, 160px);
  line-height: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--wine);
}

.identity-mark {
  margin: 34px auto 0;
  width: 82px;
  height: 82px;
  border: 3px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Gaegu", cursive;
  font-size: 34px;
  color: var(--wine);
}

.identity-mark span {
  font-size: 22px;
  margin: 0 5px;
}

.scroll-cue,
.button,
.mini-button {
  display: inline-block;
  text-decoration: none;
  transition: 0.35s ease;
}

.scroll-cue {
  color: var(--ivory);
  margin-top: 28px;
  border-bottom: 3px solid currentColor;
  padding-bottom: 8px;
}

.button,
.mini-button {
  border: 3px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 12px 28px;
}

.button:hover,
.mini-button:hover {
  background: var(--wine-dark);
  color: var(--ivory);
  transform: rotate(-2deg) scale(1.03);
}

.wine .button:hover,
.wine .mini-button:hover {
  background: var(--ivory);
  color: var(--wine);
}

.letter,
.rsvp-card,
.timeline article,
.hotel-grid article,
.storyline article {
  border: 3px solid currentColor;
  border-radius: 24px;
  box-shadow: none;
  background: transparent;
}

.letter {
  max-width: 760px;
  text-align: center;
  padding: clamp(38px, 6vw, 80px);
  background: var(--ivory);
}

.signature {
  margin-top: 36px;
}

.invitation .ornament {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 3px solid rgba(255, 248, 238, 0.35);
  border-radius: 50%;
}

.invitation .top {
  top: 8vh;
  right: 10vw;
}

.invitation .bottom {
  bottom: 8vh;
  left: 10vw;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 90px);
}

.image-frame {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  justify-self: end;
}

.image-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--wine);
  border-radius: 28px;
}

.text-block {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.timeline article,
.hotel-grid article {
  padding: 32px 20px;
  min-height: 170px;
}

.timeline span,
.storyline span {
  display: block;
  margin-bottom: 18px;
  color: var(--rose);
}

.timeline strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.timeline small {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  opacity: 0.8;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 18px;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid currentColor;
}

.wine-s {
  background: var(--wine);
}

.black-s {
  background: #111;
}

.emerald-s {
  background: var(--emerald);
}

.silver-s {
  background: var(--silver);
}

.blush-s {
  background: var(--rose);
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.hotel-grid p {
  font-size: 24px;
}

.storyline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.storyline article {
  padding: 28px 20px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 230px 230px;
  gap: 18px;
  margin-top: 46px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.12) brightness(0.85);
  border: 3px solid currentColor;
  border-radius: 24px;
}

.gallery img:first-child {
  grid-row: span 2;
}

.rsvp-card {
  width: min(720px, 100%);
  text-align: center;
  background: var(--ivory);
  padding: clamp(44px, 7vw, 90px);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 44px auto 10px;
  max-width: 820px;
}

.countdown div {
  border: 3px solid currentColor;
  border-radius: 24px;
  padding: 24px 14px;
}

.countdown strong {
  display: block;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.9;
}

.footer {
  position: relative;
  overflow: hidden;
}

.footer h2 {
  font-size: clamp(70px, 11vw, 150px);
}

.footer-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: clamp(28px, 4vw, 54px);
  border: 3px solid rgba(255, 248, 238, 0.85);
  border-radius: 32px;
  background: rgba(75, 15, 26, 0.78);
  backdrop-filter: blur(3px);
}

.footer-gallery {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.footer-gallery img {
  position: absolute;
  width: clamp(150px, 18vw, 290px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 3px solid currentColor;
  border-radius: 24px;
  opacity: 0.88;
}

.footer-gallery img:nth-child(1) {
  top: 6%;
  left: 5%;
  transform: rotate(-7deg);
}

.footer-gallery img:nth-child(2) {
  top: 7%;
  right: 7%;
  width: clamp(160px, 20vw, 320px);
  transform: rotate(6deg);
}

.footer-gallery img:nth-child(3) {
  bottom: 7%;
  left: 8%;
  transform: rotate(4deg);
}

.footer-gallery img:nth-child(4) {
  bottom: 8%;
  right: 9%;
  width: clamp(160px, 19vw, 300px);
  transform: rotate(-5deg);
}

.footer-gallery img:nth-child(5) {
  top: 50%;
  left: 2%;
  width: clamp(130px, 15vw, 230px);
  transform: translateY(-50%) rotate(5deg);
}

.dot-nav {
  position: fixed;
  top: 50%;
  right: 45px;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dot-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(201, 163, 168, 0.85);
  border: 2px solid rgba(75, 15, 26, 0.5);
  transition: 0.35s ease;
  z-index: 2;
}

.label {
  position: absolute;
  right: 28px;
  white-space: nowrap;
  background: rgba(75, 15, 26, 0.96);
  color: var(--ivory);
  padding: 10px 16px;
  border-radius: 30px;
  opacity: 0;
  transform: translateX(12px);
  transition: 0.35s ease;
  pointer-events: none;
}

.dot-nav a:hover .label {
  opacity: 1;
  transform: translateX(0);
}

.dot-nav a:hover .dot {
  background: var(--ivory);
  transform: scale(1.7);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms ease,
    transform 900ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-panel {
  padding: clamp(28px, 4vw, 70px);
}

.faq-panel .wide {
  max-width: 820px;
}

.faq-panel h2 {
  font-size: clamp(48px, 6vw, 86px);
  margin-bottom: 12px;
}

.faq-panel .kicker {
  margin-bottom: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  text-align: left;
}

.faq-item {
  border: 2px solid currentColor;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 18px;
  font-family: "Gaegu", cursive;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  flex: 0 0 auto;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 18px 16px;
}

.faq-answer p {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.25;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer .mini-button {
  font-size: 14px;
  padding: 8px 18px;
}

.faq-item summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 12px;
}

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.12);
  }
}

@media (max-width: 900px) {
  html {
    scroll-snap-type: none;
  }

  .panel {
    min-height: 100vh;
    padding: 70px 22px;
  }

  .split-panel,
  .timeline,
  .hotel-grid,
  .storyline,
  .countdown {
    grid-template-columns: 1fr;
  }

  .split-panel {
    display: flex;
    flex-direction: column;
  }

  .image-frame {
    justify-self: center;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery img {
    height: 240px;
  }

  .dot-nav {
    display: none;
  }

  .doodle-title {
    font-size: clamp(64px, 18vw, 100px);
  }

  .person {
    width: 56px;
    height: 86px;
  }

  .faq-list {
    gap: 14px;
    margin-top: 34px;
  }

  .faq-item summary {
    padding: 20px 22px;
    font-size: 28px;
  }

  .faq-answer {
    padding: 0 22px 22px;
  }

  .faq-answer p {
    font-size: 22px;
  }

  .footer {
    padding: 90px 22px;
  }

  .footer-content {
    padding: 28px 22px;
  }

  .footer-gallery img {
    width: 135px;
    opacity: 0.55;
  }

  .footer-gallery img:nth-child(1) {
    top: 3%;
    left: -18px;
  }

  .footer-gallery img:nth-child(2) {
    top: 4%;
    right: -18px;
  }

  .footer-gallery img:nth-child(3) {
    bottom: 4%;
    left: -16px;
  }

  .footer-gallery img:nth-child(4) {
    bottom: 4%;
    right: -16px;
  }

  .footer-gallery img:nth-child(5) {
    display: none;
  }
}
