/* ==========================================================================
   Quốc Huy & Thạch Thảo — Wedding Website Stylesheet
   Concept: "Thiệp Giấy Bông & Phòng Trưng Bày Dọc"
   ========================================================================== */

:root {
  /* === Surfaces === */
  --bg-porcelain: #FAFBFD;
  --bg-surface: #FFFFFF;
  --bg-mist: #EEF4F9;
  --bg-linen: #F5F2EC;
  --bg-prussian: #133A56;
  --bg-midnight: #0F2D44;
  --bg-glass-nav: rgba(250, 251, 253, 0.90);
  --bg-glass-dock: rgba(250, 251, 253, 0.94);
  --bg-scrim-modal: rgba(15, 45, 68, 0.68);
  --bg-scrim-lightbox: rgba(11, 31, 48, 0.96);

  /* === Ink & Brand === */
  --ink-primary: #133A56;
  --ink-secondary: #435F75;
  --ink-muted: #577084;
  --ink-on-dark: #FAFBFD;
  --ink-on-dark-muted: #CFE4F2;

  --brand-blue: #165B89;
  --brand-blue-hover: #10466B;
  --hydrangea-sky: #89BFE2;
  --hydrangea-tint: #CFE4F2;
  --accent-sienna: #A94E33;
  --accent-sienna-soft: rgba(169, 78, 51, 0.12);
  --accent-champagne: #C4A47C;

  /* === Semantic Feedback === */
  --color-success: #1E6B52;
  --color-success-bg: #ECF6F2;
  --color-error: #B33A3A;
  --color-error-bg: #FDF2F2;

  /* === Hairline Borders === */
  --border-subtle: rgba(22, 91, 137, 0.12);
  --border-hairline: rgba(22, 91, 137, 0.20);
  --border-arch: rgba(22, 91, 137, 0.30);
  --border-strong: rgba(22, 91, 137, 0.44);
  --border-on-dark: rgba(207, 228, 242, 0.22);

  /* === Typography === */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-hero: clamp(2.05rem, min(4.1vw, 6.0svh), 3.45rem);
  --text-h2: clamp(1.625rem, 2.6vw, 2.35rem);
  --text-h3: clamp(1.1875rem, 1.6vw, 1.45rem);
  --text-subtitle: clamp(0.95rem, 1.2vw, 1.125rem);
  --text-body: clamp(0.875rem, 0.9vw, 0.9375rem);
  --text-sm: 0.8125rem;
  --text-xs: 0.75rem;
  --text-micro: 0.65rem;

  --leading-display-vi: 1.12;
  --leading-heading-vi: 1.24;
  --leading-body: 1.66;
  --leading-compact: 1.42;

  /* === Spacing & Layout === */
  --section-py: clamp(2.75rem, 5vw, 4.5rem);
  --container-max: 1080px;
  --container-px: clamp(1rem, 3.2vw, 2.5rem);

  /* === Border Radius Hierarchy === */
  --radius-photo: 3px;
  --radius-control: 4px;
  --radius-card: 8px;
  --radius-modal: 12px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px 4px 4px;
  --radius-arch-card: 280px 280px 10px 10px;

  /* === Elevation === */
  --shadow-paper: 0 8px 28px -6px rgba(19, 58, 86, 0.08), 0 2px 6px rgba(19, 58, 86, 0.04);
  --shadow-frame: 0 20px 50px -16px rgba(19, 58, 86, 0.16), 0 4px 12px rgba(19, 58, 86, 0.06);
  --shadow-dock: 0 10px 30px -6px rgba(19, 58, 86, 0.18);
  --shadow-modal: 0 28px 64px -12px rgba(11, 31, 48, 0.36);

  /* === Motion & Z-Index === */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 160ms;
  --dur-normal: 280ms;
  --dur-crossfade: 1100ms;

  --z-nav: 40;
  --z-dock: 45;
  --z-drawer: 60;
  --z-modal: 80;
  --z-lightbox: 90;
  --z-toast: 100;
}

/* === Base Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-primary);
  background-color: var(--bg-porcelain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--bg-prussian);
  color: var(--ink-on-dark);
  border-radius: var(--radius-control);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: top var(--dur-fast) var(--ease-ui);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section-pad {
  padding-block: var(--section-py);
  scroll-margin-top: 64px;
}

.section-header {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: var(--leading-heading-vi);
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.section-desc {
  margin: 0.5rem auto 0;
  font-size: var(--text-body);
  color: var(--ink-secondary);
  max-width: 52ch;
}

.section-sprig {
  display: block;
  width: 180px;
  height: 20px;
  margin: 0.75rem auto 0;
  color: var(--brand-blue);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    background-color var(--dur-fast) var(--ease-ui),
    border-color var(--dur-fast) var(--ease-ui),
    color var(--dur-fast) var(--ease-ui),
    transform var(--dur-fast) var(--ease-ui);
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-blue);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background-color: var(--bg-mist);
  border-color: var(--brand-blue);
}

.btn-mist {
  background-color: var(--bg-mist);
  color: var(--ink-primary);
  border-color: var(--border-subtle);
}

.btn-mist:hover {
  background-color: #E0ECF6;
  border-color: var(--border-hairline);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  color: inherit;
  transition: background-color var(--dur-fast) var(--ease-ui);
}

.icon-btn:hover {
  background-color: rgba(22, 91, 137, 0.09);
}

/* === Signature Romanesque Arch Frame === */
.arch-frame {
  position: relative;
  border-radius: var(--radius-arch);
}

.arch-frame-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: inherit;
  overflow: hidden;
  background-color: var(--bg-mist);
  box-shadow: var(--shadow-frame);
}

.arch-frame-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.arch-frame::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--border-arch);
  border-radius: 999px 999px 8px 8px;
  pointer-events: none;
}

/* ==========================================================================
   1. Top Navigation Bar & Mobile Drawer
   ========================================================================== */
.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 60px;
  z-index: var(--z-nav);
  color: var(--ink-primary);
  transition:
    background-color var(--dur-normal) var(--ease-ui),
    border-color var(--dur-normal) var(--ease-ui),
    color var(--dur-normal) var(--ease-ui),
    backdrop-filter var(--dur-normal) var(--ease-ui);
}

.site-nav.is-scrolled {
  background-color: var(--bg-glass-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.nav-brand-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--brand-blue);
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 24px);
}

.nav-links a {
  position: relative;
  padding: 8px 2px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-ui);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background-color: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-fast) var(--ease-editorial);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink-primary);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-gift-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--brand-blue);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-ui),
    color var(--dur-fast) var(--ease-ui);
}

.nav-gift-btn:hover {
  background-color: var(--brand-blue);
  color: #FFFFFF;
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-scrim-modal);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-drawer) - 1);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background-color: var(--bg-surface);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 32px;
  box-shadow: var(--shadow-modal);
  transform: translateX(100%);
  transition: transform var(--dur-normal) var(--ease-editorial);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-monogram {
  width: 44px;
  height: 44px;
  color: var(--brand-blue);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 24px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-gift-cta {
  margin-top: 20px;
}

.drawer-footer-note {
  margin-top: auto;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   2. Hero / Phần Mở Đầu (Desktop Split & Mobile Native Vertical Stage)
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(100svh, 780px);
  background-color: var(--bg-porcelain);
}

.hero-stationery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px clamp(18px, 3.2vw, 44px) 22px;
  text-align: center;
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(137, 191, 226, 0.22), transparent 52%),
    radial-gradient(circle at 92% 88%, rgba(137, 191, 226, 0.14), transparent 46%);
  pointer-events: none;
}

.hero-stationery-inner {
  position: relative;
  z-index: 2;
  max-width: 460px;
  width: 100%;
  animation: heroSettle 700ms var(--ease-editorial) both;
}

@keyframes heroSettle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-monogram {
  width: clamp(46px, 7.6svh, 66px);
  height: clamp(46px, 7.6svh, 66px);
  color: var(--brand-blue);
  margin-inline: auto;
}

.hero-preamble {
  margin: clamp(0.3rem, 0.7svh, 0.55rem) 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-subtitle);
  color: var(--ink-secondary);
}

.hero-names {
  margin: clamp(0.2rem, 0.5svh, 0.4rem) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-amp {
  font-style: italic;
  font-size: 0.56em;
  line-height: 1;
  color: var(--brand-blue);
  margin-block: 1px;
}

.hero-date {
  margin: clamp(0.45rem, 1.1svh, 0.8rem) 0 0;
  font-size: clamp(0.875rem, 1.05vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}

.hero-locale {
  margin: 0.15rem 0 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* Hairline Countdown Strip */
.countdown-block {
  margin: clamp(0.7rem, 1.8svh, 1.25rem) auto 0;
  max-width: 300px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 4px;
}

.countdown-cell + .countdown-cell {
  border-left: 1px solid var(--border-hairline);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, min(2.2vw, 3.5svh), 2.0rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink-primary);
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown-label {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.countdown-done {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brand-blue);
}

.hero-actions {
  margin-top: clamp(0.8rem, 2.0svh, 1.4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Right Portrait Bay */
.hero-portrait-bay {
  position: relative;
  background-color: var(--bg-mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 66px 24px 20px;
}

.hero-arch-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-arch-frame {
  width: clamp(190px, min(365px, 34vw, calc((100svh - 166px) * 0.6667)), 365px);
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  opacity: 0;
  transition: opacity var(--dur-crossfade) ease-in-out;
}

.hero-slide-img.is-active {
  opacity: 1;
}

.hero-mobile-arch-line,
.hero-mobile-scrim {
  display: none;
}

.hero-slide-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
}

.hero-dot::before {
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--border-arch);
  border-radius: 2px;
  transition: background-color var(--dur-normal) var(--ease-ui), height var(--dur-fast);
}

.hero-dot.is-active::before {
  height: 3px;
  background-color: var(--brand-blue);
}

.hero-play-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast);
}

.hero-play-btn:hover {
  background-color: var(--bg-porcelain);
}

/* ==========================================================================
   3. Cô Dâu & Chú Rể
   ========================================================================== */
.couple-section {
  background-color: var(--bg-surface);
}

.lineage-plaque {
  max-width: 680px;
  margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 20px;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.lineage-divider {
  width: 1px;
  height: 60px;
  background-color: var(--border-hairline);
}

.lineage-side {
  margin: 0 0 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--brand-blue);
}

.lineage-parents {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink-primary);
}

.lineage-place {
  margin: 4px 0 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.couple-diptych {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: start;
}

.couple-card--bride {
  margin-top: 32px;
}

.couple-arch {
  max-width: min(285px, 38svh);
  margin-inline: auto;
}

.couple-stem {
  display: flex;
  justify-content: center;
  padding-top: 115px;
}

.couple-meta {
  max-width: 36ch;
  margin: 18px auto 0;
  text-align: center;
}

.couple-role {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--brand-blue);
}

.couple-name {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink-primary);
}

.couple-bio {
  margin: 8px 0 0;
  color: var(--ink-secondary);
  line-height: var(--leading-body);
}

/* ==========================================================================
   4. Quick Action Strip
   ========================================================================== */
.quick-actions {
  background-color: var(--bg-prussian);
  color: var(--ink-on-dark);
}

.quick-actions-grid {
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 18px;
  text-align: center;
  background: transparent;
  border: none;
  color: inherit;
  transition: background-color var(--dur-fast) var(--ease-ui);
}

.quick-action-item + .quick-action-item {
  border-left: 1px solid var(--border-on-dark);
}

.quick-action-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.quick-action-item:focus-visible {
  outline-color: var(--hydrangea-sky);
  outline-offset: -3px;
}

.quick-action-icon {
  color: var(--hydrangea-tint);
}

.quick-action-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-action-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.quick-action-sub {
  font-size: var(--text-xs);
  color: var(--ink-on-dark-muted);
}

/* ==========================================================================
   5. Chuyện Tình Yêu (Warm Archival Linen + Matted 2:3 Spreads)
   ========================================================================== */
.story-section {
  background-color: var(--bg-linen);
}

.story-timeline {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background-color: var(--border-hairline);
  transform: translateX(-50%);
}

.story-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
  margin-bottom: clamp(28px, 3.6vw, 48px);
}

.story-item:last-child {
  margin-bottom: 0;
}

.story-photo-wrap {
  width: min(100%, 255px);
  aspect-ratio: 2 / 3;
  padding: 8px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-paper);
  justify-self: end;
}

.story-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 2px;
}

.story-node {
  position: relative;
  z-index: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--bg-linen);
}

.story-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-blue);
  background-color: var(--bg-linen);
}

.story-copy {
  max-width: 38ch;
  justify-self: start;
}

.story-item:nth-child(even) .story-photo-wrap {
  order: 3;
  justify-self: start;
}

.story-item:nth-child(even) .story-node {
  order: 2;
}

.story-item:nth-child(even) .story-copy {
  order: 1;
  justify-self: end;
  text-align: right;
}

.story-date {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--brand-blue);
}

.story-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.26;
  color: var(--ink-primary);
}

.story-text {
  margin: 8px 0 0;
  color: var(--ink-secondary);
  white-space: pre-line;
}

/* ==========================================================================
   6. Album Hình Cưới (Editorial 2:3 Monograph + 2x2 Feature Anchors)
   ========================================================================== */
.album-section {
  background-color: var(--bg-porcelain);
}

.album-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.album-filter-bar::-webkit-scrollbar {
  display: none;
}

.album-tab {
  position: relative;
  flex-shrink: 0;
  padding: 10px 2px;
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-ui);
}

.album-tab:hover {
  color: var(--ink-primary);
}

.album-tab.is-active {
  color: var(--ink-primary);
}

.album-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--brand-blue);
}

.album-grid {
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
}

.album-tile {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background-color: var(--bg-mist);
}

.album-tile--feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 520ms var(--ease-editorial);
}

.album-tile:hover img,
.album-tile:focus-visible img {
  transform: scale(1.03);
}

.album-tile-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--dur-fast) var(--ease-ui),
    transform var(--dur-fast) var(--ease-ui);
  box-shadow: 0 4px 12px rgba(15, 45, 68, 0.16);
}

.album-tile:hover .album-tile-badge,
.album-tile:focus-visible .album-tile-badge {
  opacity: 1;
  transform: translateY(0);
}

.album-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.album-progress-text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.album-progress-track {
  width: min(240px, 70%);
  height: 2px;
  background-color: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.album-progress-fill {
  height: 100%;
  background-color: var(--brand-blue);
  width: 30%;
  transition: width var(--dur-normal) var(--ease-editorial);
}

/* ==========================================================================
   7. Sự Kiện Cưới & Lịch Tháng 12/2026
   ========================================================================== */
.events-section {
  background-color: var(--bg-mist);
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(295px, 342px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Sticky Arched Calendar Plaque */
.calendar-plaque {
  position: sticky;
  top: 74px;
  background-color: var(--bg-surface);
  border-radius: 240px 240px 10px 10px;
  padding: 34px 20px 20px;
  box-shadow: var(--shadow-paper);
}

.calendar-plaque::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border-arch);
  border-radius: 232px 232px 6px 6px;
  pointer-events: none;
}

.calendar-plaque-header {
  position: relative;
  text-align: center;
  margin-bottom: 12px;
}

.calendar-monogram {
  width: 46px;
  height: 46px;
  color: var(--brand-blue);
  margin-inline: auto;
}

.calendar-kicker {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.calendar-month {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-primary);
}

.calendar-year {
  margin: 2px 0 0;
  font-size: var(--text-xs);
  color: var(--ink-secondary);
}

.calendar-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 2px;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.cal-dow {
  padding-bottom: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-secondary);
}

.cal-dow.is-sun {
  color: var(--accent-sienna);
}

.cal-day {
  position: relative;
  min-height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 6px;
}

.cal-solar {
  position: relative;
  z-index: 2;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.cal-lunar {
  position: relative;
  z-index: 2;
  margin-top: 1px;
  font-size: var(--text-micro);
  line-height: 1;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.cal-lunar.is-new-month {
  color: var(--brand-blue);
  font-weight: 600;
}

.cal-day--wedding {
  cursor: pointer;
  border: none;
  background: transparent;
  transition: transform var(--dur-fast) var(--ease-ui);
}

.cal-day--wedding:hover {
  transform: scale(1.06);
}

.cal-heart-bg {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 27px;
  height: 25px;
  transform: translateX(-50%);
  z-index: 1;
}

.cal-day--wedding .cal-solar {
  color: #FFFFFF;
  font-weight: 600;
}

.cal-day--wedding .cal-lunar {
  margin-top: 5px;
  color: var(--accent-sienna);
  font-weight: 600;
}

.calendar-legend {
  position: relative;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 6px;
  border: none;
  background: transparent;
  border-radius: var(--radius-control);
  text-align: left;
  font-size: var(--text-xs);
  line-height: 1.38;
  color: var(--ink-secondary);
  transition: background-color var(--dur-fast);
}

.calendar-legend-item:hover {
  background-color: var(--bg-mist);
}

.legend-heart {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Event Cards */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
}

.event-card.is-highlighted {
  border-color: var(--accent-sienna);
  box-shadow: 0 0 0 2px var(--accent-sienna-soft), var(--shadow-paper);
}

.event-card-media {
  width: 136px;
  aspect-ratio: 2 / 3;
  height: 100%;
  background-color: var(--bg-mist);
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.event-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.event-group {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--brand-blue);
}

.event-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink-primary);
}

.event-meta-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.event-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.event-meta-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-blue);
}

.event-lunar {
  color: var(--ink-muted);
  font-style: italic;
}

.event-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-actions .btn {
  min-height: 38px;
  padding: 0 14px;
}

.cal-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 15;
  min-width: 210px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dock);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-popover[hidden] {
  display: none;
}

.cal-popover-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-control);
  font-size: var(--text-sm);
  text-align: left;
  color: var(--ink-primary);
}

.cal-popover-item:hover {
  background-color: var(--bg-mist);
}

/* ==========================================================================
   8. Sổ Lưu Bút & Xác Nhận Tham Dự
   ========================================================================== */
.guestbook-section {
  background-color: var(--bg-porcelain);
}

.guestbook-atelier {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.composer-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.4vw, 24px);
  box-shadow: var(--shadow-paper);
}

.composer-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.composer-tab {
  position: relative;
  min-height: 40px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--dur-fast);
}

.composer-tab:hover {
  color: var(--ink-primary);
}

.composer-tab.is-active {
  color: var(--ink-primary);
}

.composer-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--brand-blue);
}

.composer-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.composer-panel[hidden] {
  display: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field-inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-primary);
}

.req {
  color: var(--accent-sienna);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-control);
  background-color: var(--bg-porcelain);
  color: var(--ink-primary);
  font-size: var(--text-body);
  line-height: 1.48;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.form-input {
  min-height: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 82px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background-color: var(--bg-surface);
}

.radio-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.radio-pill input,
.rsvp-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span,
.rsvp-choice-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-control);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-secondary);
  background-color: var(--bg-porcelain);
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--dur-fast),
    background-color var(--dur-fast),
    color var(--dur-fast);
}

.radio-pill input:checked + span,
.rsvp-choice-card input:checked + span {
  border-color: var(--brand-blue);
  background-color: var(--bg-mist);
  color: var(--brand-blue);
}

.radio-pill input:focus-visible + span,
.rsvp-choice-card input:focus-visible + span {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.rsvp-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rsvp-events-check {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background-color: var(--bg-porcelain);
  font-size: var(--text-sm);
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-blue);
  flex-shrink: 0;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-control);
  overflow: hidden;
}

.stepper-btn {
  width: 38px;
  height: 38px;
  border: none;
  background-color: var(--bg-mist);
  color: var(--ink-primary);
  font-size: 1.05rem;
}

.stepper-btn:hover {
  background-color: #DFECF6;
}

.stepper-val {
  min-width: 38px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wish-suggestions-label {
  margin: 0 0 6px;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.wish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wish-chip {
  text-align: left;
  padding: 5px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background-color: var(--bg-mist);
  color: var(--ink-primary);
  font-size: 0.72rem;
  line-height: 1.38;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}

.wish-chip:hover {
  background-color: #E1EDF7;
  border-color: var(--border-hairline);
}

.form-feedback {
  margin: 0;
  padding: 9px 12px;
  border-radius: var(--radius-control);
  font-size: var(--text-sm);
}

.form-feedback.is-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.form-feedback.is-error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

/* Archival Wishes Stream + Smooth New-Wish Prepend Motion */
.wishes-stream-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.wishes-stream-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
}

.wishes-count {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.wishes-list {
  max-height: 470px;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 6px;
}

.wishes-list::-webkit-scrollbar {
  width: 5px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background-color: var(--border-arch);
  border-radius: 4px;
}

.wish-entry-shell {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  transition:
    grid-template-rows 460ms var(--ease-editorial),
    opacity 420ms var(--ease-editorial),
    transform 460ms var(--ease-editorial);
}

.wish-entry-shell.is-entering {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-10px);
}

.wish-entry-inner {
  overflow: hidden;
  min-height: 0;
}

.wish-entry {
  padding: 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
  border-left: 2.5px solid transparent;
  transition:
    background-color 2.2s ease,
    border-left-color 2.2s ease,
    padding-left 460ms var(--ease-editorial);
}

.wish-entry.is-fresh {
  background-color: var(--bg-mist);
  border-left-color: var(--brand-blue);
  padding-left: 14px;
  border-radius: 4px;
}

.wish-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.wish-author-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wish-author {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.wish-tag {
  padding: 2px 7px;
  border-radius: 3px;
  background-color: var(--bg-mist);
  color: var(--brand-blue);
  font-size: 0.7rem;
  font-weight: 500;
}

.wish-badge-new {
  padding: 2px 7px;
  border-radius: 3px;
  background-color: var(--accent-sienna-soft);
  color: var(--accent-sienna);
  font-size: 0.68rem;
  font-weight: 600;
}

.wish-time {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  white-space: nowrap;
}

.wish-body {
  margin: 5px 0 0;
  color: var(--ink-secondary);
  line-height: 1.62;
  white-space: pre-line;
}

.wishes-more-btn {
  margin-top: 16px;
}

/* ==========================================================================
   9. Thank You Footer (2:3 Portrait-Native Closing Medallion)
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--bg-midnight);
  color: var(--ink-on-dark);
  padding: clamp(44px, 6vw, 72px) 0 32px;
  text-align: center;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 24px;
  left: 50%;
  width: min(440px, 100%);
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(137, 191, 226, 0.14), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-arch {
  width: clamp(144px, 16vw, 176px);
  margin: 0 auto 20px;
}

.footer-arch::after {
  border-color: rgba(207, 228, 242, 0.34);
}

.footer-monogram {
  width: 48px;
  height: 48px;
  color: var(--ink-on-dark-muted);
  margin-inline: auto;
}

.footer-quote {
  margin: 12px auto 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1875rem, 2vw, 1.55rem);
  line-height: 1.32;
  color: var(--ink-on-dark);
}

.footer-names {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink-on-dark-muted);
}

.footer-date {
  margin: 3px 0 0;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--ink-on-dark-muted);
}

.footer-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: #FFFFFF;
}

.footer-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
}

/* ==========================================================================
   Modals, Lightbox, Floating Utility Dock & Toast
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background-color: var(--bg-scrim-lightbox);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--ink-on-dark);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-counter {
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
  font-variant-numeric: tabular-nums;
}

.lightbox-caption {
  font-size: var(--text-sm);
  color: var(--ink-on-dark);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-close,
.lightbox-nav {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(15, 45, 68, 0.56);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-stage {
  max-width: min(92vw, 900px);
  max-height: 82svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80svh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-photo);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Gift Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: var(--bg-scrim-modal);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-sheet {
  position: relative;
  width: min(640px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  background-color: var(--bg-surface);
  border-radius: var(--radius-modal);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-modal);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: var(--bg-mist);
  color: var(--ink-primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-sprig {
  width: 180px;
  height: 20px;
  color: var(--brand-blue);
  margin-inline: auto;
}

.modal-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--ink-primary);
}

.modal-desc {
  margin: 8px auto 0;
  max-width: 48ch;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.gift-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gift-card {
  background-color: var(--bg-porcelain);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gift-card-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.gift-qr-frame {
  width: 144px;
  height: 144px;
  padding: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-qr-placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed var(--border-arch);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.gift-bank {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.gift-holder {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
}

.gift-account {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}

.gift-copy-btn {
  margin-top: 6px;
  width: 100%;
  min-height: 44px;
}

.gift-qr-download {
  font-size: var(--text-xs);
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Floating Utility Dock */
.utility-dock {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: var(--z-dock);
  background-color: var(--bg-glass-dock);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: var(--shadow-dock);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dock-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast), color var(--dur-fast), opacity var(--dur-normal);
}

.dock-btn[hidden] {
  display: none;
}

.dock-btn:hover {
  background-color: var(--bg-mist);
  color: var(--brand-blue);
}

.dock-top-btn {
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.dock-top-btn.is-visible {
  opacity: 1;
  height: 44px;
  pointer-events: auto;
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.music-bars[hidden] {
  display: none;
}

.music-bars span {
  width: 2.5px;
  height: 6px;
  border-radius: 2px;
  background-color: var(--brand-blue);
  animation: musicWave 900ms ease-in-out infinite;
}

.nav-mobile-music .music-bars span {
  background-color: currentColor;
}

.is-waiting-autoplay {
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 91, 137, 0.32); }
  50% { box-shadow: 0 0 0 6px rgba(22, 91, 137, 0); }
}

.music-bars span:nth-child(2) {
  animation-delay: 200ms;
}

.music-bars span:nth-child(3) {
  animation-delay: 400ms;
}

@keyframes musicWave {
  0%, 100% { height: 5px; }
  50% { height: 14px; }
}

/* Autoplay Music Unlock Hint */
.music-hint {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: var(--z-dock);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 12px;
  background-color: var(--bg-glass-dock);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-dock);
  color: var(--ink-primary);
  font-size: var(--text-xs);
  max-width: calc(100vw - 32px);
}

.music-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 4px 0;
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 500;
}

.music-hint-btn svg {
  color: var(--brand-blue);
  flex-shrink: 0;
}

.music-hint-close {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.music-hint-close:hover {
  background-color: var(--bg-mist);
  color: var(--ink-primary);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-prussian);
  color: var(--ink-on-dark);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-modal);
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast[hidden] {
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet 768–1199px & Mobile < 768px)
   ========================================================================== */
@media (max-width: 1199px) {
  .events-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .calendar-plaque {
    position: static;
    max-width: 350px;
    margin-inline: auto;
  }
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-actions {
    display: flex;
  }

  /* Tablet 2-col split Hero — keeps entire Hero + CTA above fold */
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: min(100svh, 680px);
  }

  .hero-stationery {
    padding: 64px 16px 20px;
  }

  .hero-portrait-bay {
    padding: 64px 18px 20px;
  }

  .hero-arch-frame {
    width: clamp(190px, min(280px, 36vw, calc((100svh - 150px) * 0.6667)), 280px);
  }

  .couple-diptych {
    max-width: 700px;
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  }

  .couple-card--bride {
    margin-top: 24px;
  }

  .story-timeline::before {
    left: 14px;
    transform: none;
  }

  .story-item {
    grid-template-columns: 28px 180px minmax(0, 1fr);
    gap: 16px;
  }

  .story-node {
    order: 1 !important;
  }

  .story-photo-wrap {
    order: 2 !important;
    width: 180px;
    justify-self: start !important;
  }

  .story-copy {
    order: 3 !important;
    justify-self: start !important;
    text-align: left !important;
  }

  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .album-tile--feature {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 2 / 3;
    height: auto;
  }

  .guestbook-atelier {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .site-nav {
    height: 54px;
    color: var(--ink-on-dark);
    background: linear-gradient(to bottom, rgba(15, 45, 68, 0.48), transparent);
  }

  .site-nav .nav-brand-svg {
    color: var(--ink-on-dark);
  }

  .site-nav .nav-brand-text {
    font-size: 1.0rem;
  }

  .site-nav.is-scrolled {
    color: var(--ink-primary);
    background: var(--bg-glass-nav);
  }

  .site-nav.is-scrolled .nav-brand-svg {
    color: var(--brand-blue);
  }

  /* Native Mobile Full-Bleed Vertical Portrait Hero */
  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100svh;
    min-height: 540px;
    max-height: 820px;
    padding-top: 0;
    background-color: var(--bg-midnight);
    color: var(--ink-on-dark);
    overflow: hidden;
  }

  .hero-portrait-bay {
    position: absolute;
    inset: 0;
    padding: 0;
    background-color: var(--bg-midnight);
  }

  .hero-arch-stage {
    width: 100%;
    height: 100%;
  }

  .hero-arch-frame {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hero-arch-frame::after {
    display: none;
  }

  .hero-arch-frame .arch-frame-media {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-mobile-arch-line {
    display: block;
    position: absolute;
    inset: 56px 10px 10px;
    border: 1px solid rgba(250, 251, 253, 0.36);
    border-radius: 999px 999px 8px 8px;
    pointer-events: none;
    z-index: 3;
  }

  .hero-mobile-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      to top,
      rgba(15, 45, 68, 0.92) 0%,
      rgba(15, 45, 68, 0.62) 44%,
      rgba(15, 45, 68, 0.08) 76%,
      transparent 100%
    );
    pointer-events: none;
  }

  .hero-slide-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    margin-top: 0;
  }

  .hero-dot::before {
    background-color: rgba(250, 251, 253, 0.38);
  }

  .hero-dot.is-active::before {
    background-color: #FFFFFF;
  }

  .hero-play-btn {
    width: 28px;
    height: 28px;
    background: rgba(15, 45, 68, 0.55);
    border-color: rgba(250, 251, 253, 0.35);
    color: #FFFFFF;
  }

  .hero-stationery {
    position: relative;
    z-index: 4;
    padding: 64px 16px 46px;
  }

  .hero-monogram-wrap,
  .hero-wash {
    display: none;
  }

  .hero-preamble {
    color: var(--ink-on-dark-muted);
    font-size: clamp(0.875rem, 2.2svh, 1rem);
  }

  .hero-names {
    color: var(--ink-on-dark);
    font-size: clamp(1.95rem, min(9.5vw, 5.2svh), 2.75rem);
  }

  .hero-amp {
    color: var(--hydrangea-sky);
  }

  .hero-date {
    color: var(--ink-on-dark-muted);
    font-size: clamp(0.8125rem, 2svh, 0.9rem);
  }

  .hero-locale {
    color: rgba(207, 228, 242, 0.85);
    font-size: var(--text-xs);
  }

  .countdown-block {
    margin-top: clamp(0.6rem, 1.4svh, 0.95rem);
    max-width: 280px;
  }

  .countdown-cell + .countdown-cell {
    border-left-color: rgba(207, 228, 242, 0.25);
  }

  .countdown-value {
    color: #FFFFFF;
    font-size: clamp(1.3rem, 3svh, 1.6rem);
  }

  .countdown-label,
  .countdown-done {
    color: var(--ink-on-dark-muted);
  }

  .hero-actions {
    margin-top: clamp(0.7rem, 1.6svh, 1.05rem);
    gap: 8px;
  }

  .hero-actions .btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .hero-actions .btn-outline {
    color: #FFFFFF;
    border-color: rgba(250, 251, 253, 0.45);
  }

  .hero-actions .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.14);
  }

  /* Mobile Couple */
  .lineage-plaque {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lineage-divider {
    width: 64px;
    height: 1px;
    margin-inline: auto;
  }

  .couple-diptych {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .couple-stem {
    display: none;
  }

  .couple-card--bride {
    margin-top: 0;
  }

  .couple-arch {
    max-width: 245px;
  }

  /* Mobile Quick Actions */
  .quick-actions-grid {
    grid-template-columns: 1fr;
    padding: 4px 14px;
  }

  .quick-action-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
    padding: 14px 8px;
  }

  .quick-action-item + .quick-action-item {
    border-left: none;
    border-top: 1px solid var(--border-on-dark);
  }

  /* Mobile Love Story */
  .story-timeline::before {
    left: 11px;
    top: 10px;
  }

  .story-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
  }

  .story-node {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 24px;
  }

  .story-photo-wrap {
    grid-column: 2;
    grid-row: 2;
    width: min(100%, 230px);
  }

  .story-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .story-item:nth-child(even) .story-node,
  .story-item:nth-child(even) .story-photo-wrap,
  .story-item:nth-child(even) .story-copy {
    order: initial;
  }

  /* Mobile Album */
  .album-filter-bar {
    justify-content: flex-start;
    gap: 18px;
    padding-inline: 2px;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  /* Mobile Calendar & Event Cards */
  .calendar-plaque {
    max-width: 336px;
    padding: 30px 14px 18px;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card-body {
    padding: 14px 16px 16px;
  }

  .event-card-media {
    width: min(216px, 58vw, 35svh);
    height: auto;
    max-height: none;
    aspect-ratio: 2 / 3;
    margin: 16px auto 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-paper);
  }

  .event-card-media img {
    object-position: 50% 15%;
  }

  /* Mobile Guestbook & Gift Modal */
  .gift-cards-grid {
    grid-template-columns: 1fr;
  }

  .wishes-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  #dock-music-btn,
  #dock-gift-btn {
    display: none;
  }

  .utility-dock {
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .dock-top-btn {
    width: 40px;
    height: 40px;
    background-color: var(--bg-glass-dock);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-dock);
  }

  .dock-top-btn.is-visible {
    height: 40px;
  }

  .music-hint {
    left: 12px;
    top: 62px;
    bottom: auto;
    padding: 3px 5px 3px 10px;
  }
}

@media (max-width: 374px) {
  .nav-inner {
    padding-inline: 10px;
    gap: 6px;
  }

  .nav-brand {
    gap: 6px;
  }

  .nav-brand-svg {
    width: 28px;
    height: 28px;
  }

  .site-nav .nav-brand-text {
    font-size: 0.875rem;
  }

  .nav-mobile-actions {
    gap: 2px;
  }

  .nav-mobile-actions .icon-btn {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
