:root {
  --ink: #090a10;
  --ink-soft: #11131d;
  --paper: #eee5d5;
  --paper-muted: #c8bdab;
  --gold: #c9a96b;
  --gold-bright: #e4ca91;
  --sapphire: #5f7fae;
  --rust: #8c4939;
  --rust-bright: #bd7258;
  --line: rgba(228, 202, 145, .24);
  --card: rgba(14, 16, 24, .78);
  --shadow: 0 24px 80px rgba(0,0,0,.34);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -10%, rgba(91, 108, 154, .17), transparent 32rem),
    linear-gradient(180deg, #08090f 0%, #0a0b11 58%, #120d0d 100%);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }

.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.star-field { position: absolute; inset: 0; opacity: .55; background-repeat: repeat; }
.star-field-a {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(201,169,107,.9) 0 1px, transparent 1.2px);
  background-size: 88px 88px, 133px 133px;
  background-position: 11px 9px, 44px 18px;
}
.star-field-b {
  opacity: .22;
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.4px);
  background-size: 47px 47px;
  transform: rotate(7deg) scale(1.1);
}
.atlas-ring { position: absolute; border: 1px solid rgba(201,169,107,.09); border-radius: 50%; }
.atlas-ring::before, .atlas-ring::after { content: ""; position: absolute; inset: 18%; border: inherit; border-radius: inherit; }
.atlas-ring::after { inset: 38%; }
.atlas-ring-1 { width: 72vw; height: 72vw; top: -34vw; left: -25vw; }
.atlas-ring-2 { width: 60vw; height: 60vw; right: -30vw; top: 26vh; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(24px, calc((100vw - 1180px)/2));
  backdrop-filter: blur(18px);
  background: rgba(8,9,15,.72);
  border-bottom: 1px solid rgba(201,169,107,.14);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: .05em; }
.brand-sun, .brand-moon { color: var(--gold-bright); }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; text-decoration: none; color: var(--paper-muted); transition: color .2s; }
.site-header nav a:hover { color: var(--paper); }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { min-height: 88vh; display: grid; place-items: center; align-content: center; text-align: center; padding: 120px 0 90px; position: relative; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero h1, .section-heading h2, .closing h2, .photo-upload-section h2 { font-family: var(--serif); font-weight: 500; }
.hero h1 { margin: 0; font-size: clamp(4.6rem, 12vw, 9.8rem); line-height: .76; letter-spacing: -.045em; }
.hero h1 em { color: var(--gold-bright); font-weight: 500; }
.hero-names { margin: 30px 0 0; font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: .08em; }
.hero-names span { color: var(--gold); margin: 0 12px; }
.hero-tagline { margin: 6px 0 34px; color: var(--paper-muted); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }

.celestial-emblem { width: min(620px, 78vw); aspect-ratio: 2.1/1; position: absolute; top: 70px; opacity: .32; }
.orbit { position: absolute; border: 1px solid var(--gold); border-radius: 50%; transform: rotate(-10deg); }
.orbit-a { inset: 12% 7%; }
.orbit-b { inset: 24% 20%; transform: rotate(11deg); }
.sun-mark { position: absolute; left: 6%; top: 36%; width: 68px; height: 68px; }
.sun-core { position: absolute; inset: 20%; border: 1px solid var(--gold); border-radius: 50%; }
.sun-ray { position: absolute; left: 50%; top: 50%; width: 1px; height: 33px; background: var(--gold); transform-origin: 50% 0; }
.ray-1 { transform: rotate(0deg) translateY(-45px); }.ray-2 { transform: rotate(45deg) translateY(-45px); }.ray-3 { transform: rotate(90deg) translateY(-45px); }.ray-4 { transform: rotate(135deg) translateY(-45px); }
.ray-5 { transform: rotate(180deg) translateY(-45px); }.ray-6 { transform: rotate(225deg) translateY(-45px); }.ray-7 { transform: rotate(270deg) translateY(-45px); }.ray-8 { transform: rotate(315deg) translateY(-45px); }
.moon-mark { position: absolute; width: 78px; height: 78px; right: 5%; top: 31%; border-radius: 50%; box-shadow: -18px 0 0 -2px var(--gold); transform: rotate(-15deg); }

.countdown-card {
  width: min(680px, 100%);
  background: linear-gradient(145deg, rgba(17,19,29,.84), rgba(10,11,17,.72));
  border: 1px solid rgba(201,169,107,.28);
  box-shadow: var(--shadow);
  padding: 22px 28px 18px;
  position: relative;
  overflow: hidden;
}
.countdown-card::before { content:""; position:absolute; inset:6px; border:1px solid rgba(201,169,107,.08); pointer-events:none; }
#countdown-kicker { margin: 0 0 14px; font-family: var(--serif); font-style: italic; color: var(--paper-muted); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown > div { border-right: 1px solid var(--line); }
.countdown > div:last-child { border-right: 0; }
.countdown strong { display: block; font-family: var(--serif); font-size: clamp(2.3rem, 8vw, 4.5rem); line-height: .9; color: var(--gold-bright); font-weight: 500; }
.countdown span { display: block; margin-top: 8px; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
.countdown-date { margin: 17px 0 0; font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); }

.hero-actions, .route-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; text-decoration: none; cursor: pointer; font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #17120c; }
.button-primary:hover { background: var(--gold-bright); }
.button-ghost { border-color: rgba(201,169,107,.36); color: var(--paper); background: rgba(255,255,255,.02); }

.marquee { display: flex; width: 100%; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(201,169,107,.04); }
.marquee div { flex: 1 0 auto; padding: 13px 26px; font-size: .67rem; text-transform: uppercase; letter-spacing: .18em; color: var(--paper-muted); }
.marquee div::after { content: " / "; margin-left: 26px; color: var(--rust-bright); }

.content-section { padding: 110px 0; }
.section-heading { max-width: 700px; margin-bottom: 52px; }
.section-heading h2, .photo-upload-section h2 { margin: 0 0 14px; font-size: clamp(3rem, 7vw, 5.4rem); line-height: .9; letter-spacing: -.025em; }
.section-heading > p:last-child { color: var(--paper-muted); max-width: 640px; }

.timeline { position: relative; max-width: 950px; }
.timeline::before { content: ""; position: absolute; left: 141px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--gold), rgba(201,169,107,.08)); }
.timeline-item { display: grid; grid-template-columns: 120px 42px 1fr; align-items: start; padding: 0 0 34px; position: relative; }
.timeline-time { padding-top: 23px; color: var(--gold-bright); font-family: var(--serif); font-size: 1.25rem; text-align: right; }
.timeline-dot { width: 32px; height: 32px; margin: 22px 0 0 21px; transform: translateX(-50%); display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: var(--ink); color: var(--gold); font-size: .9rem; z-index: 2; }
.timeline-card { margin-left: 14px; padding: 22px 24px; background: var(--card); border: 1px solid rgba(201,169,107,.15); box-shadow: 0 15px 45px rgba(0,0,0,.15); }
.timeline-item.featured .timeline-card { border-color: rgba(228,202,145,.35); }
.timeline-item.ceremony .timeline-card { background: linear-gradient(135deg, rgba(140,73,57,.18), rgba(17,19,29,.86)); border-color: rgba(189,114,88,.45); }
.timeline-item.deadline .timeline-card { border-color: rgba(95,127,174,.6); background: linear-gradient(135deg, rgba(95,127,174,.12), rgba(17,19,29,.86)); }
.timeline-label { margin: 0 0 4px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .62rem; font-weight: 700; }
.timeline-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.timeline-card p:not(.timeline-label) { margin: 0 0 10px; color: var(--paper-muted); }
.mini-link { display: inline-block; margin-top: 6px; color: var(--gold-bright); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; cursor: pointer; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 4px; }
.chip-row span { padding: 4px 9px; border: 1px solid rgba(201,169,107,.2); color: var(--paper-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }

.map-section { padding: 105px 0; border-block: 1px solid rgba(201,169,107,.13); background: linear-gradient(180deg, rgba(140,73,57,.08), rgba(95,127,174,.06)); }
.map-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 50px; align-items: center; }
.map-copy { margin: 0; }
.map-copy .route-links { justify-content: flex-start; }
.map-note { font-size: .78rem; margin-top: 22px !important; padding-left: 14px; border-left: 2px solid var(--rust); }
#wedding-map { height: 560px; border: 1px solid rgba(201,169,107,.35); box-shadow: var(--shadow); background: #141620; }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #12141d; color: var(--paper); }
.leaflet-popup-content strong { color: var(--gold-bright); }
.celestial-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #11131d; border: 2px solid var(--gold); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.celestial-pin span { display: grid; place-items: center; width: 100%; height: 100%; transform: rotate(45deg); color: var(--gold-bright); font-weight: 700; font-size: .7rem; }

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.info-card { padding: 28px 24px; min-height: 220px; background: rgba(17,19,29,.64); border: 1px solid rgba(201,169,107,.15); }
.info-icon { color: var(--gold); font-size: 1.5rem; }
.info-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin: 16px 0 8px; }
.info-card p { color: var(--paper-muted); margin: 0; }
.deadline-card { border-color: rgba(95,127,174,.5); }

.photo-plan { padding-top: 15px; }
.photo-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.photo-plan-grid article { min-height: 330px; padding: 36px 30px; border-right: 1px solid var(--line); position: relative; overflow: hidden; background: rgba(10,11,17,.34); }
.photo-plan-grid article:last-child { border-right: 0; }
.photo-plan-grid article::after { content:""; position:absolute; width:220px; height:220px; border:1px solid rgba(201,169,107,.12); border-radius:50%; right:-90px; bottom:-90px; }
.roman { display: block; color: rgba(201,169,107,.45); font-family: var(--serif); font-size: 4rem; line-height: 1; }
.photo-kicker { margin: 36px 0 0; color: var(--gold); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
.photo-plan-grid h3 { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; margin: 2px 0 10px; }
.photo-plan-grid p:last-child { color: var(--paper-muted); }

.photo-upload-section { margin-top: 110px; padding: 110px 0; background: linear-gradient(180deg, rgba(95,127,174,.07), rgba(201,169,107,.04)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.photo-upload-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.upload-intro { color: var(--paper-muted); max-width: 560px; }
.upload-form { display: grid; gap: 16px; margin-top: 30px; }
.upload-form label { display: grid; gap: 7px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--paper-muted); }
.upload-form label span { text-transform: none; letter-spacing: 0; opacity: .7; }
.upload-form input[type="text"], .upload-form input[type="password"] { width: 100%; color: var(--paper); background: rgba(8,9,15,.7); border: 1px solid rgba(201,169,107,.25); padding: 13px 14px; outline: none; }
.upload-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,107,.08); }
.file-drop { min-height: 150px; border: 1px dashed rgba(201,169,107,.42); background: rgba(201,169,107,.035); display: flex !important; align-items: center; justify-content: center; text-align: center; padding: 24px; cursor: pointer; }
.file-drop input { position: absolute; opacity: 0; pointer-events: none; }
.file-drop strong { color: var(--paper); font-size: 1rem; text-transform: none; letter-spacing: 0; }
.file-drop small { text-transform: none; letter-spacing: 0; opacity: .72; }
.file-icon { color: var(--gold) !important; font-size: 1.7rem; }
.form-status { margin: 0; min-height: 1.4em; font-size: .78rem; color: var(--paper-muted); }
.form-status.error { color: #ef9a8e; }.form-status.success { color: #b9d8ae; }
.hidden { display: none !important; }

.gallery-panel { border: 1px solid rgba(201,169,107,.18); background: rgba(9,10,16,.48); padding: 24px; min-height: 530px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.gallery-heading h3 { margin: 0; font-family: var(--serif); font-size: 2.3rem; font-weight: 500; }
.text-button { color: var(--gold-bright); background: none; border: 0; cursor: pointer; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-empty { grid-column: 1/-1; min-height: 350px; display: grid; place-items: center; text-align: center; border: 1px dashed rgba(201,169,107,.18); color: var(--paper-muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; padding: 40px; }
.gallery-card { margin: 0; position: relative; overflow: hidden; background: #0c0d13; border: 1px solid rgba(201,169,107,.14); }
.gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-card figcaption { padding: 11px 12px 12px; }
.gallery-card strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.gallery-card span { display: block; margin-top: 2px; color: var(--paper-muted); font-size: .72rem; }
.gallery-file { min-height: 180px; display: grid; place-items: center; color: var(--gold-bright); text-decoration: none; padding: 20px; text-align: center; }

.closing { text-align: center; padding: 135px 0; }
.closing-symbol { color: var(--gold-bright); font-size: 2rem; letter-spacing: .3em; }
.closing-symbol span { color: var(--sapphire); }
.closing h2 { margin: 10px 0 4px; font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: .95; }
.closing > p:last-child { font-family: var(--serif); font-size: 1.5rem; color: var(--paper-muted); }
footer { display: flex; justify-content: space-between; padding: 24px max(24px, calc((100vw - 1180px)/2)); border-top: 1px solid var(--line); color: var(--paper-muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { min-height: auto; padding-top: 145px; }
  .celestial-emblem { top: 72px; }
  .timeline::before { left: 16px; }
  .timeline-item { grid-template-columns: 32px 1fr; }
  .timeline-time { grid-column: 2; text-align: left; padding: 0 0 7px 12px; font-size: 1rem; }
  .timeline-dot { grid-column: 1; grid-row: 1/3; margin: 0; transform: translateX(0); }
  .timeline-card { grid-column: 2; margin-left: 12px; }
  .map-grid, .photo-upload-grid { grid-template-columns: 1fr; }
  #wedding-map { height: 460px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-plan-grid { grid-template-columns: 1fr; }
  .photo-plan-grid article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 240px; }
  .photo-plan-grid article:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .section-shell { width: min(100% - 26px, 1180px); }
  .site-header { padding: 14px 16px; }
  .hero { padding-top: 126px; }
  .hero h1 { font-size: clamp(4rem, 22vw, 6rem); }
  .celestial-emblem { width: 94vw; opacity: .25; }
  .countdown-card { padding-inline: 12px; }
  .countdown strong { font-size: 2.35rem; }
  .content-section, .map-section, .photo-upload-section { padding-block: 80px; }
  .section-heading h2, .photo-upload-section h2 { font-size: 3.2rem; }
  .timeline-card { padding: 18px; }
  .timeline-card h3 { font-size: 1.7rem; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: unset; }
  #wedding-map { height: 420px; }
  .gallery { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
