/* Luminous silk gradient, midnight ink and restrained gold accents. */
:root {
  --font-serif-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-serif-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-serif-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-script: 'Great Vibes', 'Waterfall', 'Charm', cursive;
  --font-number: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --scroll-reveal-duration: 4s;
  --ink: #101b29;
  --navy: #102238;
  --gold: #b99351;
  --gold-light: #e0c48d;
  --paper: #ffffff;
  --silk-gradient: linear-gradient(135deg,
    #ffffff 0%,
    #f3f6fa 7%,
    #dbe3ec 16%,
    #f5f7fb 26%,
    #ffffff 36%,
    #d3dde8 48%,
    #f3f7fb 60%,
    #ffffff 70%,
    #d9e2ed 82%,
    #f6f8fc 92%,
    #ffffff 100%
  );
  --blue-950: #102238;
  --blue-800: #22364a;
  --blue-600: #b99351;
  --blue-300: #d8c6a4;
  --blue-100: #f3f1ec;
  --shadow: 0 8px 26px rgb(16 34 56 / 10%);
}
html { scroll-behavior: smooth; }
body, body.cover-visible, body:not(.cover-visible) { background: #d8dee6; color: var(--ink); }
.invitation {
  width: min(100%, 760px);
  background: var(--silk-gradient);
  box-shadow: 0 0 50px rgba(16, 34, 56, 0.12);
}
/* One continuous background beneath all sections: no texture restarts. */
.hero, .details, .countdown-section, .about, .dress-code, .timeline, .rsvp, .guestbook, .site-footer, .details-actions { background: transparent; }
body.cover-visible { overflow: hidden; }
body.cover-visible .invitation { visibility: hidden; }
.section-pad { padding-left: 9%; padding-right: 9%; }
.section-title { color: var(--ink); font: 600 18px/1.3 var(--font-serif-heading); text-transform: uppercase; letter-spacing: .03em; margin: 10px 0 6px; }
.section-kicker, .dress-code__text, .rsvp > p {
  color: #4b525a;
  font: normal 500 13.5px/1.5 var(--font-serif-heading);
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}
.section-kicker { margin: 4px 0 16px; }
.mini-ornament, .ornament { color: var(--navy); gap: 12px; }
.mini-ornament span, .ornament span { border-color: #73777c; width: 70px; }
.mini-ornament b, .ornament b { width: 10px; height: 10px; flex-basis: 10px; background: var(--navy); clip-path: polygon(50% 0, 90% 50%, 50% 100%, 10% 50%); }
.section-divider { margin-top: 18px; margin-bottom: 14px; }
.script { font-family: var(--font-script); color: var(--ink); }
button:focus-visible, a:focus-visible, [tabindex='0']:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
main:focus { outline: none; }

/* An original clothbound yearbook cover. */
.cover {
  background-color: #ffffff;
  background-image: url('../assets/back.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 24px 20px;
  perspective: 1400px;
  transition: opacity .65s ease, visibility .65s ease;
}
.cover::before, .cover::after { display: none; }
.cover__frame { width: min(100%, 420px); text-align: center; }
.cover__eyebrow { color: var(--navy); font: 700 clamp(16px, 2.8vw, 22px)/1.3 var(--font-serif-heading); letter-spacing: .3em; margin: 0 0 10px; text-transform: uppercase; }
.cover .ornament { margin: 0 0 20px; }
.cover .ornament span { width: 48px; border-color: var(--gold); }
.cover__book { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: min(62svh, 550px); min-height: 330px; padding: 36px 30px 32px; border: 1px solid #a3824c; border-radius: 3px 12px 12px 3px; color: #ead6ae; background: repeating-linear-gradient(35deg, #ffffff03 0 1px, transparent 1px 4px), linear-gradient(100deg, #071524 0%, #1c3045 9%, #102238 12%, #142940 90%, #0b1c30 100%); box-shadow: -8px 0 0 #17283c, -11px 1px 0 #c9b38a, 5px 7px 0 #e0d9ca, 7px 9px 0 #a99878, 0 22px 40px #10223829; cursor: pointer; transform-origin: left center; transition: transform .65s ease, opacity .65s ease; }
.cover__book-border { position: absolute; inset: 14px 15px 14px 20px; border: 1px solid #ba985977; pointer-events: none; }
.cover__book-border::after { content: ''; position: absolute; inset: 5px; border: 1px solid #ba985938; }
.cover__cap { width: min(34%, 130px); margin: 0 auto 6px; filter: drop-shadow(0 5px 12px #0005); }
.cover__book-title { font: 400 clamp(44px, 6.5vw, 60px)/1.1 var(--font-script); color: #f0d7a5; margin-top: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.cover__book-subtitle { font: 400 12px/1.6 var(--font-serif-heading); letter-spacing: .28em; margin-top: 12px; color: #d6be8b; }
.cover__book-rule { width: 50px; border-top: 1px solid #b9935199; margin: 18px auto 14px; }
.cover__recipient { font: 700 clamp(16px, 2.6vw, 21px)/1.3 var(--font-serif-heading); letter-spacing: .18em; text-transform: uppercase; color: #ead6ae; overflow-wrap: anywhere; }
.cover__guest { font: italic 500 clamp(16px, 2.4vw, 19px)/1.4 var(--font-serif-heading); margin-top: 8px; color: #d8c6a4; letter-spacing: .03em; }
.cover__guest em { font-style: normal; font-weight: 600; color: #f0d7a5; }
.cover__book-bottom { font-size: 16px; margin: 10px 0 0; color: var(--gold); }
.open-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 168px; min-height: 42px; margin: 24px auto 0; padding: 9px 22px; border: 1px solid var(--gold); border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 4px 12px #10223818; font: 500 14px/1.2 var(--font-serif-body); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.open-button:hover { background: #20384f; transform: translateY(-2px); }
.cover.is-opening { opacity: 0; }
.cover.is-opening .cover__book { transform: rotateY(-38deg); opacity: .1; }
.cover.is-hidden { visibility: hidden; pointer-events: none; }

/* The first page follows the standard text hierarchy. */
.hero.section-pad { container-type: inline-size; padding: 1.5% 0 8%; min-height: auto; }
.hero__cap { width: min(24cqw, 110px); max-width: none; margin: 0 auto 1.4cqw; }
.hero__title { font: 700 clamp(24px, 4.8cqw, 36px)/1.2 var(--font-serif-display); color: #050505; text-transform: uppercase; letter-spacing: .025em; margin: 0 auto .6cqw; }
.hero__subtitle { font: 400 clamp(12px, 2.2cqw, 16px)/1.2 var(--font-serif-heading); letter-spacing: .24em; text-transform: uppercase; color: #080808; margin: 0 auto; padding-left: .24em; }
.portrait-composition { position: relative; width: 100%; margin-top: 3.8cqw; }
.portrait-wrap { width: 64.3cqw; height: auto; aspect-ratio: 4 / 5; margin: 0 auto; border: 0; border-radius: 50% 50% 0 0 / 40% 40% 0 0; overflow: hidden; background: #ecebe6; box-shadow: none; }
.portrait { padding: 0; border-radius: 0; object-position: center; }
.hero .portrait-note { position: absolute; top: 39%; right: 2.7%; width: 13.5%; margin: 0; font: 400 clamp(14px, 2.4cqw, 18px)/1.15 var(--font-script); color: #676767; transform: rotate(-12deg); pointer-events: none; text-align: center; }
.portrait-note span { display: block; font: 400 clamp(15px, 2.6cqw, 20px)/1.2 var(--font-script); margin-top: .6cqw; }
.hero .host-name { max-width: 88cqw; font: 400 clamp(48px, 9.5cqw, 68px)/1.15 var(--font-script); color: #050505; margin: 1.2cqw auto 0; white-space: normal; }
.hero__signature-rule { display: none; }
.class-pill { color: #33383e; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; font: 600 14px/1.5 var(--font-serif-body); letter-spacing: .06em; flex-wrap: wrap; justify-content: center; }
.class-pill span:first-child { font-size: inherit; font-weight: 600; }
.class-pill i { color: var(--gold); }
.hero__date { margin: 1.2cqw auto 0; padding: 0 0 2cqw .4em; border: 0; border-bottom: 1px solid #171717; width: 38cqw; max-width: 100%; font: 700 clamp(12px, 2cqw, 14.5px)/1.4 var(--font-serif-display); letter-spacing: .35em; }
.hero blockquote { max-width: 73cqw; color: #080808; font: italic 400 15px/1.7 var(--font-serif-body); letter-spacing: .02em; padding: 0; margin: 3.5cqw auto 0; }
blockquote { color: var(--ink); font: italic 400 15px/1.7 var(--font-serif-body); padding: 0; margin-top: 14px; }
blockquote::before, blockquote::after { display: none; }
blockquote::before, blockquote::after { display: none; }

/* Elegant subtle golden divider line between Hero and Ceremony Details */
.gold-line-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 155, 79, 0.05) 0%, rgba(197, 155, 79, 0.35) 15%, rgba(197, 155, 79, 0.48) 50%, rgba(197, 155, 79, 0.35) 85%, rgba(197, 155, 79, 0.05) 100%);
  margin: 0;
  position: relative;
  z-index: 5;
}

/* Academic ribbons frame the date and location. */
.details { position: relative; text-align: center; padding-top: 36px; padding-bottom: 20px; }
.details > .section-divider { margin-top: 6px; }
.details .section-title, .details .section-kicker, .details__school { max-width: 72%; margin-left: auto; margin-right: auto; }
.academic-ribbon { position: absolute; top: 0; width: 25%; height: 375px; max-height: 58vw; pointer-events: none; background-position: center top; background-size: 100% 100%; background-repeat: no-repeat; }
.academic-ribbon--left { left: -4%; background-image: url('../assets/left'); }
.academic-ribbon--right { right: -5%; background-image: url('../assets/right.png'); }
.academic-ribbon span { position: absolute; left: 33%; right: 28%; top: 30%; color: #eed7a6; font: 400 clamp(10px, 1.6vw, 12px)/1.3 var(--font-serif-heading); text-align: center; }
.academic-ribbon b { font-weight: 500; }
.academic-ribbon--right span { top: 26%; font-size: clamp(10px, 1.5vw, 12px); line-height: 1.06; }
.details__logo { width: 22%; height: auto; max-height: 135px; object-fit: contain; margin: 0 auto 20px; }
.details__school { font: 600 clamp(14px, 2.2vw, 18px)/1.3 var(--font-serif-heading); text-transform: uppercase; margin-top: 12px; }
.details__cap { width: 32%; margin: 24px auto 0; }
.details__name { font-size: clamp(32px, 6vw, 44px); line-height: 1.25; margin: 8px 0 20px; }

.event-date-fallback { display: flex; flex-direction: column; gap: 8px; margin: 24px auto; font-size: 14px; }
.info-card { display: block; border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: 100%; padding: 10px 0; margin: 8px auto; }
.info-card div { align-items: center; text-align: center; }
.info-card small { color: var(--ink); font: 700 12px/1.5 var(--font-serif-heading); letter-spacing: .12em; margin-bottom: 8px; }
.info-card small::before, .info-card small::after { content: '—'; color: var(--gold); margin: 0 10px; }
.info-card strong { color: var(--ink); font: 700 16px/1.3 var(--font-serif-display); text-transform: uppercase; letter-spacing: .03em; }
.info-card span { color: #33383e; font: 400 14px/1.4 var(--font-serif-body); }
.info-card a { border: 1px solid var(--gold); border-radius: 999px; background: var(--navy); color: #fff; padding: 7px 20px; margin-top: 14px; font: 600 12.5px/1.2 var(--font-serif-body); box-shadow: 0 3px 8px #10223815; text-decoration: none; }
.info-card a::after { content: ' →'; margin-left: 8px; }
.map-embed-wrap { border-color: #d1c8b6; border-radius: 2px; filter: saturate(.55); }

/* ==========================================================================
   NGÀY TỔ CHỨC & ĐẾM NGƯỢC (Exact layout matching user reference)
   ========================================================================== */
.countdown-section {
  padding-top: 14px;
  padding-bottom: 24px;
  text-align: center;
}

/* Section Header */
.organize-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 16px;
  width: 100%;
}
.organize-header .floral-branch {
  width: 46px;
  height: 16px;
  color: #c59b4f;
  flex-shrink: 0;
}
.floral-branch--right {
  transform: scaleX(-1);
}
.organize-title {
  font: 600 18px/1.3 var(--font-serif-heading);
  color: #0c1828;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 3-Column Organize Date Banner */
.organize-date-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  max-width: 440px;
  margin: 16px auto 22px;
  width: 100%;
}
.date-col--month,
.date-col--year {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.date-col__label {
  font: 600 18px/1.2 var(--font-serif-heading);
  letter-spacing: .06em;
  color: #0c1828;
  text-transform: uppercase;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.date-col--main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-left: 1px solid #102238;
  border-right: 1px solid #102238;
  text-align: center;
}
.date-weekday {
  font: 600 14px/1.2 var(--font-serif-heading);
  letter-spacing: .12em;
  color: #0c1828;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.date-day {
  font: 700 52px/0.95 var(--font-serif-display);
  color: #c59b4f;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  display: block;
}
.date-time {
  font: 600 13px/1.2 var(--font-number);
  letter-spacing: .04em;
  color: #0c1828;
  margin-top: 4px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Monthly Calendar */
.event-calendar {
  max-width: 420px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 0 8px;
}
.event-calendar__month {
  font: 600 16px/1.3 var(--font-serif-heading);
  letter-spacing: .12em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.event-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font: 600 12.5px/1.2 var(--font-serif-heading);
  letter-spacing: .06em;
  color: #0c1828;
  padding-bottom: 8px;
  border-bottom: 1px solid #c59b4f;
}
.event-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font: 600 15px/1 var(--font-number);
  color: #0c1828;
  padding-top: 10px;
  row-gap: 8px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.event-calendar__days span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  isolation: isolate;
}
.is-event-day {
  font-weight: 700 !important;
  color: #0c1828 !important;
}
.is-event-day::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 48px;
  height: 46px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23deb86d'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  z-index: -1;
  filter: drop-shadow(0 3px 6px rgba(185, 147, 81, 0.4));
}

/* Countdown Title & Cards */
.countdown-kicker {
  font: 700 18px/1.3 var(--font-serif-heading);
  letter-spacing: .14em;
  color: #0c1828;
  text-transform: uppercase;
  text-align: center;
  margin: 16px 0 18px;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 22px;
  padding: 0 8px;
}
.countdown-box {
  border: 1px solid #d8cbaf;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(185, 147, 81, 0.1);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.countdown-box strong {
  font: 700 30px/1 var(--font-number);
  color: #0c1828;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.countdown-box strong::after {
  content: none;
}
.countdown-box span {
  font: 600 12px/1.2 var(--font-serif-heading);
  color: #0c1828;
  letter-spacing: .02em;
}

/* RSVP Button */
.details-actions {
  text-align: center;
  margin: 6px auto 18px;
}
.btn-rsvp-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #162b45 0%, #0d1a29 100%);
  border: 1.5px solid #d4af37;
  color: #ffffff;
  font: 600 13px/1.2 var(--font-serif-body);
  letter-spacing: .03em;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(16, 34, 56, 0.28), 0 0 10px rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-rsvp-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 34, 56, 0.35), 0 0 14px rgba(212, 175, 55, 0.3);
}
.btn-rsvp-confirm svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  flex-shrink: 0;
}
.btn-rsvp-confirm span {
  color: #fff;
  font: inherit;
  font-weight: 600;
}

/* Section Closing Script */
.details__closing-text {
  font: 400 32px/1.2 var(--font-script);
  color: #0c1828;
  text-align: center;
  margin: 14px auto 0;
}
.details__closing-heart {
  display: block;
  font-size: 26px;
  color: #0c1828;
  text-align: center;
  margin: 6px auto 0;
  line-height: 1;
}

/* ==========================================================================
   ALBUM ẢNH CÁ NHÂN & LỜI TỰ BẠCH
   ========================================================================== */
.about { padding-top: 20px; padding-bottom: 32px; text-align: center; }
.about-card { display: block; width: 100%; max-width: 580px; margin: 20px auto 0; }
.about-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.about-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 380px;
  max-height: 54vh;
  margin: 0 auto;
  overflow: hidden;
  perspective: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease;
  cursor: zoom-in;
}
.about-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.about-carousel__slide img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: none !important;
  box-shadow: 0 4px 18px rgba(16, 34, 56, 0.1);
  display: block;
}
.about-carousel__slide.is-landscape img {
  aspect-ratio: 16 / 10.5;
  width: min(520px, 100%);
  height: auto;
  max-height: 100%;
}
.about-carousel__slide.is-portrait img {
  aspect-ratio: 3 / 4;
  height: 100%;
  width: auto;
  max-width: min(320px, 80vw);
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid #c8c0b2;
  border-radius: 50%;
  color: var(--navy);
  background: #fafaf8f0;
  font: 400 24px/1 var(--font-serif-heading);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 3px 10px rgba(16, 34, 56, 0.14);
  transition: background .2s ease, transform .2s ease;
}
.gallery-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow--prev { left: -14px; }
.gallery-arrow--next { right: -14px; }
.gallery-counter {
  font: 600 12.5px/1.4 var(--font-number);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .12em;
  color: #0c1828;
  margin: 14px 0 14px;
}
.gallery-counter::before, .gallery-counter::after {
  content: '—';
  margin: 0 12px;
  color: #74777c;
}
.about-slider__dots {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: #b99351 transparent;
}
.about-slider__dot, .about-slider__dot.is-active {
  width: calc((100% - 32px) / 5);
  min-width: 62px;
  max-width: 110px;
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 6px;
  border: 0;
  opacity: .6;
  background: #ecebe6;
  overflow: hidden;
  transition: opacity .2s ease, outline .2s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.about-slider__dot.is-active {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.about-slider__dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lời Tự Bạch Section */
.about-heading {
  margin-top: 36px;
  font: 600 18px/1.3 var(--font-serif-heading);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #0c1828;
}
.about-heading + .section-kicker {
  margin-top: 6px;
  margin-bottom: 24px;
}
.about-story {
  display: grid;
  grid-template-columns: 36% 1fr;
  grid-template-rows: auto auto;
  gap: 16px 24px;
  margin-top: 20px;
  align-items: start;
}
.about-polaroid {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  margin: 0;
  padding: 8px 8px 4px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 34, 56, 0.12);
  transform: rotate(-4deg);
  transition: transform .3s ease;
}
.about-polaroid::before {
  content: '';
  position: absolute;
  width: 46%;
  height: 20px;
  background: rgba(214, 211, 203, 0.7);
  top: -10px;
  left: 27%;
  transform: rotate(-6deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.about-polaroid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.about-polaroid.is-landscape img {
  aspect-ratio: 4 / 3;
}
.about-polaroid figcaption {
  font-size: 16px;
  padding: 8px 0 4px;
  line-height: 1.2;
  color: #1b2430;
  font-family: var(--font-script);
  text-align: center;
}
.about-content {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  text-align: left;
}
.about-text {
  margin: 0;
  color: var(--ink);
  font: 400 14.5px/1.75 var(--font-serif-body);
  font-style: normal;
  white-space: pre-line;
  text-align: justify;
}
.about-quote-box {
  grid-column: 2;
  grid-row: 2;
  display: block;
  padding: 16px 0 0;
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}
.about-quote-box::before, .about-quote-box::after {
  content: '';
  display: block;
  width: 44px;
  margin: 0 auto;
  border-top: 1px solid #74777c;
}
.about-quote-box .quote-icon {
  display: none;
}
.about-quote {
  color: var(--ink);
  font: italic 400 14px/1.65 var(--font-serif-body);
  margin: 14px 0;
  text-align: center;
}

/* Preserve optional sections with the same visual language. */
.dress-code { padding-top: 8px; padding-bottom: 20px; }
.palette__label { color: #444b53; font-size: 11.5px; font-weight: 500; }
.palette__swatch { box-shadow: 0 2px 7px #10223819; }
.timeline {
  padding-top: 10px;
  padding-bottom: 32px;
  min-height: 330px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline__list {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 22px auto 0;
  padding: 0 16px 0 34px;
  box-sizing: border-box;
}
.timeline__list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 14px;
  left: 11px;
  width: 1px;
  background: var(--gold);
  border: none;
}
.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 68px auto;
  min-height: 48px;
  gap: 14px;
  align-items: center;
  text-align: left;
}
.timeline-row::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 1.2px solid var(--gold);
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  box-sizing: border-box;
}
.timeline-row time {
  background: transparent;
  color: var(--navy);
  border: 1px solid #cfbf9e;
  border-radius: 0;
  font: 600 12.5px/1.4 var(--font-number);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  padding: 5px 8px;
  text-align: center;
  white-space: nowrap;
}
.timeline-row strong {
  color: var(--ink);
  font: 600 13.5px/1.3 var(--font-serif-body);
  white-space: nowrap;
}
.timeline__note {
  position: static;
  display: block;
  margin: 22px auto 0;
  color: #5b5b5b;
  font: 400 clamp(19px, 4.8vw, 24px)/1.3 var(--font-script);
  text-align: center;
  transform: none;
  white-space: nowrap;
}
.timeline__note.visible, .reveal-section.visible .timeline__note { transform: none; }

/* Guestbook is a paper page, with light borders and clean text. */
.rsvp { padding-top: 20px; text-align: center; }
.guestbook-cap { width: 24%; max-width: 120px; margin: 0 auto 14px; }
.rsvp > p { max-width: 420px; margin: 0 auto 18px; }
.rsvp-form { max-width: 460px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.rsvp-form label { color: #54575c; font: 500 13px/1.4 var(--font-serif-body); }
.rsvp-form label b { color: var(--gold); }
.rsvp-form input, .rsvp-form textarea {
  background: #ffffff65;
  border: 1px solid #c2c3c4;
  border-radius: 7px;
  color: var(--ink);
  padding: 8px 12px;
  font: 400 13.5px/1.45 var(--font-serif-body) !important;
}
.rsvp-form input::placeholder, .rsvp-form textarea::placeholder {
  font-size: 12.5px;
  color: #8c9298;
  opacity: 0.85;
}
.rsvp-form textarea { resize: vertical; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px #b993511c; }
.rsvp-form-actions { max-width: 360px; margin: 16px auto 0; gap: 8px; }
.rsvp-form-actions .btn-submit { color: #fff; background: var(--navy); border: 1px solid var(--gold); border-radius: 999px; font: 600 13px/1.3 var(--font-serif-body); box-shadow: none; padding: 11px; }
.btn-quick-wishes { height: 42px; width: 44px; border: 1px solid #bcbdbd; border-radius: 6px; background: transparent; color: var(--navy); }
.btn-quick-wishes:hover { color: var(--navy); background: #ebe5d9; border-color: var(--gold); }
.guestbook { padding-top: 24px; padding-bottom: 20px; text-align: center; }
.guestbook__list { max-width: 560px; margin: 0 auto; gap: 10px; max-height: 560px; scrollbar-color: #b6a481 #ecebe6; }
.guest-entry { border: 1px solid #cdcecf; border-radius: 9px; background: #ffffff45; box-shadow: none; padding: 12px 16px; }
.guest-entry strong { color: var(--ink); font: 600 13.5px/1.25 var(--font-serif-body); }
.guest-entry p { color: var(--ink); font: 400 13px/1.4 var(--font-serif-body); }
.guest-entry time { color: #757575; font-size: 10.5px; }
.site-footer { padding: 20px 9% 36px; }
.thank-you { color: var(--ink); font-size: 23px; }
.footer-name { font-size: clamp(30px, 5vw, 36px); margin: 18px 0 8px; }
.footer-date { color: #35383c; font: 500 12.5px/1.5 var(--font-serif-heading); letter-spacing: .08em; }
.footer-credit { color: #818181; font: 500 10.5px/1.4 var(--font-serif-body); margin-top: 24px; }

/* Modals */
.attendance-modal__header, .wish-modal__header { background: #f6f4ef; border-color: #e4ddd0; }
.attendance-modal__header h3, .wish-modal__header h3, .attendance-form .form-label, .attendance-options-group .group-label, .attendance-option .option-card strong { color: var(--navy); font-family: var(--font-serif-heading); }
.attendance-modal__close, .wish-modal__close { background: #ede8de; color: var(--navy); }
.attendance-form input[type='text'], .attendance-form textarea { border-color: #c9c1b1; background: #fcfbf8; color: var(--ink); font-size: 16px; font-family: var(--font-serif-body); }
.attendance-form input[type='text']:focus, .attendance-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px #b9935120; }
.attendance-option .option-card { border-color: #d4caba; background: #faf9f5; font-family: var(--font-serif-body); }
.attendance-option .option-card small { color: #777064; }
.attendance-option input[type='radio']:checked + .option-card { border-color: var(--gold); background: #f4eee3; box-shadow: none; }
.attendance-option input[type='radio']:focus-visible + .option-card { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-confirm-submit { background: var(--navy); color: #fff; box-shadow: 0 4px 12px #10223818; font-family: var(--font-serif-body); }
.wish-suggest-item { color: var(--ink); background: #fcfbf8; border-color: #d4caba; font-family: var(--font-serif-body); }
.wish-suggest-item:hover { background: #f4eee3; border-color: var(--gold); }
.music-toggle {
  background: var(--navy);
  color: #e0c48d;
  border: 1px solid var(--gold);
  box-shadow: 0 3px 12px #10223828;
}
.music-toggle.playing {
  background: var(--navy);
  color: #e0c48d;
  border: 1px solid var(--gold);
  animation: musicSpin 4s linear infinite !important;
  opacity: 1;
}
.music-toggle.paused {
  background: var(--navy);
  color: #e0c48d;
  border: 1px solid var(--gold);
  box-shadow: 0 3px 12px #10223828;
  opacity: 0.85;
  animation-play-state: paused !important;
}
@keyframes musicSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.error-screen { background: var(--silk-gradient); }
.error-card { border-color: #cfbf9e; box-shadow: var(--shadow); }
.error-title, .error-message { color: var(--ink); }
.error-icon-wrap { color: var(--navy); border-color: var(--gold); background: #f3eee4; }
.btn-error-reload { background: var(--navy); font-family: var(--font-serif-body); }

/* ==========================================================================
   IMAGE LIGHTBOX / PHÓNG TO ẢNH (Frosted White Glassmorphism)
   ========================================================================== */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.image-lightbox__container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.image-lightbox__header {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}
.image-lightbox__counter {
  color: #0c1828;
  font: 600 13px/1 var(--font-number);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums lining-nums;
  background: rgba(255, 255, 255, 0.9);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 16px rgba(16, 34, 56, 0.1);
}
.image-lightbox__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.image-lightbox__btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #0c1828;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
  box-shadow: 0 4px 16px rgba(16, 34, 56, 0.1);
}
.image-lightbox__btn:hover {
  background: #102238;
  color: #ffffff;
  border-color: #d4af37;
  transform: scale(1.06);
}
.image-lightbox__btn--close {
  font-size: 26px;
  font-weight: 300;
}
.image-lightbox__stage {
  position: relative;
  width: 100%;
  height: calc(100% - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: pan-x pan-y pinch-zoom;
}
.image-lightbox__stage.is-zoomed {
  cursor: zoom-out;
  overflow: auto;
}
.image-lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(16, 34, 56, 0.22);
  border: 4px solid #ffffff;
  transition: transform .32s cubic-bezier(0.2, 0.8, 0.25, 1);
  user-select: none;
  -webkit-user-select: none;
}
.image-lightbox__stage.is-zoomed .image-lightbox__img {
  max-width: none;
  max-height: none;
  transform: scale(1.85);
  cursor: zoom-out;
}
.image-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #0c1828;
  font: 400 30px/1 var(--font-serif-heading);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 15;
  transition: background .2s, transform .2s, color .2s;
  box-shadow: 0 4px 16px rgba(16, 34, 56, 0.12);
}
.image-lightbox__nav:hover {
  background: #102238;
  color: #ffffff;
  border-color: #d4af37;
  transform: translateY(-50%) scale(1.08);
}
.image-lightbox__nav--prev { left: 14px; }
.image-lightbox__nav--next { right: 14px; }
.image-lightbox__hint {
  position: absolute;
  bottom: 14px;
  color: #555d68;
  font: 500 12px/1 var(--font-serif-body);
  letter-spacing: .02em;
  margin: 0;
  pointer-events: none;
}
.attendance-modal__backdrop,
.wish-modal__backdrop {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
.about-polaroid {
  cursor: zoom-in;
}
body.lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

/* ==========================================================================
   SCROLL PROGRESS & SCROLL REVEAL EFFECTS
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(16, 34, 56, 0.05);
  z-index: 99999;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c59b4f 0%, #ecd599 50%, #d4af37 100%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  transition: width 0.08s ease-out;
}

.btn-scroll-top {
  position: fixed;
  bottom: 22px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(185, 147, 81, 0.45);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 34, 56, 0.14), 0 0 10px rgba(185, 147, 81, 0.12);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity .35s cubic-bezier(0.16, 1, 0.3, 1), transform .35s cubic-bezier(0.16, 1, 0.3, 1), visibility .35s, background .2s, color .2s, border-color .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-scroll-top svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}
.btn-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.btn-scroll-top:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--gold);
  transform: translateY(-2px) scale(1.06);
}
.btn-scroll-top:active {
  transform: scale(0.94);
}

/* Scroll Reveal Classes */
.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1), transform var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}
.reveal-section.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-scale,
.reveal-pop {
  opacity: 0;
  transition: opacity var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1), transform var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up { transform: translateY(30px); }
.reveal-scale { transform: scale(0.92); }
.reveal-pop { transform: scale(0.85) translateY(20px); }

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible,
.reveal-scale.visible,
.reveal-pop.visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

/* Timeline Staggered Animation */
.timeline-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1), transform var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.timeline-row.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.timeline-row:nth-child(1) { transition-delay: 0.08s !important; }
.timeline-row:nth-child(2) { transition-delay: 0.16s !important; }
.timeline-row:nth-child(3) { transition-delay: 0.24s !important; }
.timeline-row:nth-child(4) { transition-delay: 0.32s !important; }
.timeline-row:nth-child(5) { transition-delay: 0.40s !important; }
.timeline-row:nth-child(6) { transition-delay: 0.48s !important; }

/* Countdown Boxes Stagger */
.countdown-box {
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  transition: opacity var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1), transform var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.countdown-box.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}
.countdown-box:nth-child(1) { transition-delay: 0.08s !important; }
.countdown-box:nth-child(2) { transition-delay: 0.16s !important; }
.countdown-box:nth-child(3) { transition-delay: 0.24s !important; }
.countdown-box:nth-child(4) { transition-delay: 0.32s !important; }

/* Palette Swatches Stagger */
.palette span,
.palette__item {
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1), transform var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.palette span.visible,
.palette__item.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}
.palette span:nth-child(1), .palette__item:nth-child(1) { transition-delay: 0.06s !important; }
.palette span:nth-child(2), .palette__item:nth-child(2) { transition-delay: 0.12s !important; }
.palette span:nth-child(3), .palette__item:nth-child(3) { transition-delay: 0.18s !important; }
.palette span:nth-child(4), .palette__item:nth-child(4) { transition-delay: 0.24s !important; }
.palette span:nth-child(5), .palette__item:nth-child(5) { transition-delay: 0.30s !important; }

/* Guestbook Entries */
.guest-entry {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1), transform var(--scroll-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.guest-entry.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.timeline__camera, .timeline__note {
  transition-duration: var(--scroll-reveal-duration), var(--scroll-reveal-duration);
}

@media (max-width: 620px) {
  .btn-scroll-top {
    bottom: 18px;
    left: 15px;
    width: 38px;
    height: 38px;
  }
  .btn-scroll-top svg {
    width: 16px;
    height: 16px;
  }
  .section-pad { padding-left: 8%; padding-right: 8%; }
  .hero.section-pad { padding-top: calc(1.5% + 10px); padding-bottom: calc(8% + 12px); }
  .hero__cap { margin-bottom: calc(1.4cqw + 6px); }
  .hero__title { margin-bottom: calc(.6cqw + 6px); }
  .hero .portrait-composition { margin-top: calc(3.8cqw + 8px); }
  .hero .host-name { margin-top: calc(1.2cqw + 10px); }
  .hero__date { margin-top: calc(1.2cqw + 6px); padding-bottom: calc(2cqw + 4px); }
  .hero blockquote { margin-top: calc(3.5cqw + 8px); line-height: 1.85; }
  .section-title { font-size: 18px; }
  .class-pill { margin-top: 0; }
  .details { padding-top: 24px; }
  .details__cap { margin-top: 18px; }
  .details__name { margin-bottom: 16px; }
  .organize-header .floral-branch { width: 38px; }
  .organize-title { font-size: 18px; }
  .date-col__label { font-size: 15px; }
  .date-col--main { padding: 0 16px; }
  .date-weekday { font-size: 12.5px; }
  .date-day { font-size: 42px; }
  .date-time { font-size: 12px; }
  .countdown-grid { gap: 8px; }
  .countdown-box { padding: 10px 2px; border-radius: 8px; }
  .countdown-box strong { font-size: 26px; }
  .about { padding-bottom: 20px; }
  .about-carousel { height: 320px; max-height: 48vh; }
  .about-story {
    grid-template-columns: 33% 1fr;
    grid-template-rows: auto auto;
    gap: 12px 18px;
  }
  .about-polaroid {
    grid-column: 1;
    grid-row: 1;
  }
  .about-content {
    grid-column: 2;
    grid-row: 1;
  }
  .about-quote-box {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 440px;
    margin: 18px auto 0;
    text-align: center;
    padding-top: 12px;
  }
  .gallery-arrow { width: 30px; height: 30px; font-size: 20px; }
  .gallery-arrow--prev { left: -14px; }
  .gallery-arrow--next { right: -14px; }
  .gallery-counter { font-size: 12px; margin: 10px 0 14px; }
  .about-slider__dots { gap: 6px; }
  .about-slider__dot, .about-slider__dot.is-active { width: calc((100% - 24px) / 5); min-width: calc((100% - 24px) / 5); }
  .guest-entry { padding: 10px 12px; grid-template-columns: 1fr; gap: 4px; }
  .guest-entry time { justify-self: end; }
  .timeline-row { gap: 12px; }
  .cover__frame { max-width: 330px; }
  .cover__book { padding: 20px 28px; }
}
/* Keep text fields large enough to avoid focus zoom on mobile browsers. */
@media (max-width: 620px), (hover: none) and (pointer: coarse) {
  .rsvp-form input, .rsvp-form textarea { font-size: 16px !important; }
}
@media (max-width: 360px) {
  .section-pad { padding-left: 7%; padding-right: 7%; }
  .about-story {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
  }
  .about-polaroid {
    grid-column: 1;
    grid-row: 1;
    width: 52%;
    margin: 0 auto;
  }
  .about-content {
    grid-column: 1;
    grid-row: 2;
  }
  .about-quote-box {
    grid-column: 1;
    grid-row: 3;
    margin-top: 14px;
  }
  .about-carousel { height: 270px; }
  .organize-title { font-size: 18px; }
  .date-col__label { font-size: 13px; }
  .date-col--main { padding: 0 10px; }
  .date-day { font-size: 36px; }
  .countdown-grid { gap: 6px; }
  .countdown-box strong { font-size: 22px; }
}
@media (max-height: 670px) {
  .cover { padding: 12px 24px; }
  .cover .ornament { margin-bottom: 12px; }
  .cover__book { min-height: 280px; height: 65svh; padding: 14px 28px; }
  .cover__cap { width: 26%; margin: 5px auto; }
  .cover__book-title { font-size: 40px; margin-top: 4px; }
  .cover__book-rule { margin-bottom: 8px; }
  .cover__book-bottom { margin-top: 4px; }
  .open-button { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}
