:root {
  --paper: #fbf8f1;
  --paper-deep: #f0e9dd;
  --ink: #3b3028;
  --ink-soft: #66574c;
  --rust: #943e35;
  --gold: #ad8148;
  --line: rgba(76, 56, 39, .17);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.page-shell { width: 100%; margin: 0 auto; overflow: hidden; position: relative; }
.site-header { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 78px; padding: 0 8%; display: flex; align-items: center; justify-content: flex-end; }
.monogram { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; font-weight: 600; color: #51402f; }
.site-header > .monogram { position: absolute; left: 50%; transform: translateX(-50%); padding: 7px 16px; border: 1px solid rgba(92, 65, 39, .18); border-radius: 999px; background: rgba(251, 248, 241, .92); box-shadow: 0 3px 14px rgba(57, 42, 27, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.monogram span { color: var(--rust); font-style: italic; font-weight: 400; }
.site-header nav { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .04em; color: #51402f; }
.site-header nav a { color: var(--ink-soft); padding: 10px 15px; border: 1px solid rgba(92, 65, 39, .18); border-radius: 999px; background: rgba(251, 248, 241, .92); box-shadow: 0 3px 14px rgba(57, 42, 27, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header nav a:hover, .text-link:hover, .back-top:hover { color: var(--rust); }
.hero { width: 100%; height: 100svh; min-height: 640px; margin: 0 auto; display: grid; place-items: center; position: relative; background-color: #faf5eb; background-image: var(--desktop-background, url("assets/royal-palace-wide.jpg")); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-copy { width: min(70%, 800px); text-align: center; margin-top: 2%; z-index: 1; color: #49382b; }
.eyebrow { margin: 0 0 17px; color: var(--rust); font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; color: #765b3d; }
.eyebrow-line { width: 18px; height: 1px; background: var(--gold); }
.invite-intro { color: #735d4a; font-family: var(--serif); font-size: clamp(12px, 1.8vw, 16px); line-height: 1.55; margin: 0 0 13px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { display: flex; flex-direction: column; align-items: center; gap: .035em; font-size: clamp(40px, 6vw, 86px); line-height: 1; letter-spacing: -.045em; margin: 0 0 13px; color: #702b2d; }
h1 em, h2 em { color: var(--rust); font-weight: 400; }
h1 .name-line { display: block; white-space: nowrap; }
h1 .amp-line { display: block; font-size: .62em; line-height: 1; }
.family-line { display: block; margin-top: 7px; color: #765b3d; font-family: var(--sans); font-size: clamp(9px, .15em, 13px); font-weight: 500; letter-spacing: .035em; line-height: 1.35; white-space: normal; }
.hero-subtitle { color: #856d54; font-family: var(--serif); font-style: italic; font-size: clamp(12px, 1.7vw, 15px); line-height: 1.65; margin-bottom: 17px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #66513c; }
.text-link span { font-size: 14px; color: var(--rust); }
.section-pad { padding: 94px max(8%, calc((100% - 980px)/2)); }
.intro { text-align: center; background: #f2ebe0; }
.intro .eyebrow { margin-bottom: 20px; }
.intro h2, .section-heading h2, .rsvp h2 { font-size: clamp(39px, 5vw, 61px); line-height: 1.12; letter-spacing: -.035em; margin: 0; }
.intro-copy { max-width: 500px; margin: 25px auto; color: var(--ink-soft); font-size: 13px; line-height: 2; }
.ornament { color: var(--gold); letter-spacing: .35em; font-size: 14px; }
.ornament span { color: var(--rust); font-size: 10px; }
.details { background: var(--paper); }
.section-heading { text-align: center; max-width: 530px; margin: 0 auto 48px; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 13px; line-height: 1.8; margin: 17px auto 0; max-width: 410px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-card { min-height: 232px; position: relative; padding: 30px 26px; border-right: 1px solid var(--line); }
.detail-card:first-child { border-left: 1px solid var(--line); }
.card-number { font-size: 10px; color: #9a8e7e; letter-spacing: .1em; }
.card-icon { display: block; margin: 20px 0 14px; color: var(--rust); font-size: 18px; }
.detail-card h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin-bottom: 9px; }
.detail-main { font-size: 12px; font-weight: 600; margin: 0 0 7px; }
.detail-time { color: var(--rust); font-size: 12px; font-weight: 600; margin: 0 0 7px; }
.detail-note { color: var(--ink-soft); font-size: 11px; line-height: 1.7; margin: 0; }
.countdown-label { text-align: center; color: var(--rust); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; margin: 38px 0 12px; }
.countdown { text-align: center; font-family: var(--serif); font-size: 16px; color: var(--ink-soft); min-height: 25px; }
.countdown-timer { display: flex; justify-content: center; gap: 30px; }
.countdown-timer span { display: grid; gap: 4px; font-size: 24px; color: var(--ink); }
.countdown-timer small { font-family: var(--sans); font-size: 8px; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-soft); }
.site-footer { min-height: 94px; display: flex; justify-content: space-between; align-items: center; padding: 0 max(7%, calc((100% - 980px)/2)); background: var(--paper); }
.site-footer .monogram { font-size: 19px; }
.back-top { color: var(--ink-soft); font-size: 10px; margin: 0; letter-spacing: .04em; }
@media (max-width: 620px) {
  .site-header { height: 94px; padding: 0 5%; align-items: flex-start; z-index: 3; }
  .site-header > .monogram { top: 6px; padding: 5px 14px; font-size: 19px; line-height: 1.2; }
  .site-header nav { position: absolute; top: 48px; left: 0; right: 0; justify-content: center; gap: 10px; font-size: 10px; }
  .site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 82px; padding: 9px 15px; border-color: rgba(92, 65, 39, .28); background: rgba(251, 248, 241, .97); box-shadow: 0 3px 12px rgba(57, 42, 27, .16); }
  .hero { width: 100%; height: 100svh; min-height: 620px; aspect-ratio: auto; background-image: var(--mobile-background, url("assets/royal-palace.jpg")); background-size: cover; background-position: center; }
  .hero-copy { width: 72%; margin-top: 1%; }
  .hero .eyebrow { font-size: 7px; gap: 6px; margin-bottom: 12px; }
  .eyebrow-line { width: 12px; }
  .invite-intro { font-size: 12px; margin-bottom: 11px; }
  h1 { font-size: clamp(37px, 11vw, 52px); margin-bottom: 10px; }
  .hero-subtitle { font-size: 12px; margin-bottom: 12px; }
  .text-link { font-size: 8px; }
  .hero-foot { font-size: 9px; }
  .section-pad { padding: 72px 8%; }
  .intro h2, .section-heading h2 { font-size: 42px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-card, .detail-card:first-child { min-height: auto; padding: 24px; border: 0; border-bottom: 1px solid var(--line); }
  .detail-card:last-child { border-bottom: 0; }
  .card-icon { margin: 13px 0 8px; }
  .countdown-timer { gap: 16px; }
  .site-footer { padding: 0 6%; min-height: 78px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.venue-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.venue-link { display: inline-block; color: var(--rust); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
