:root {
  --navy: #0b1a2b;
  --navy-deep: #071018;
  --airforce: #16324f;
  --silver: #c9d0d8;
  --silver-bright: #e8eef4;
  --ivory: #f4efe6;
  --pale: #d5dee8;
  --mist: #8a96a3;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

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

.invite-bg {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(22, 50, 79, 0.9), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(11, 26, 43, 0.8), transparent 70%),
    var(--navy-deep);
}

.page {
  margin: 0 auto;
  max-width: 48rem;
}

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

.rule {
  margin: 0 auto;
  height: 1px;
  width: 6rem;
  background: rgba(201, 208, 216, 0.3);
}

.silver-border {
  box-shadow:
    inset 0 0 0 1px rgba(201, 208, 216, 0.28),
    inset 0 0 0 2px rgba(11, 26, 43, 0.4);
}

.kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--silver);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ivory);
}

.lede {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.625;
  color: var(--pale);
}

.lede + .lede {
  margin-top: 1rem;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.frame {
  pointer-events: none;
  position: absolute;
  inset: 0.75rem;
}

.frame span {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-color: rgba(201, 208, 216, 0.45);
  border-style: solid;
}

.frame .tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.frame .tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.frame .bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.frame .br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--silver);
}

.monogram .letter {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
}

.monogram .amp {
  font-family: var(--font-script);
  font-size: 1.875rem;
  line-height: 1;
  color: var(--ivory);
}

.monogram .dash {
  height: 1px;
  width: 1.25rem;
  background: rgba(201, 208, 216, 0.7);
}

.hero-line {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.hero-line span {
  height: 1px;
  width: 10rem;
  background: var(--silver);
}

.hero h1 {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--ivory);
}

.tagline {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--silver);
}

.tagline p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.025em;
  color: var(--silver-bright);
}

.star {
  width: 0.625rem;
  height: 0.625rem;
  fill: currentColor;
  opacity: 0.8;
}

.star-sm {
  width: 0.5rem;
  height: 0.5rem;
  opacity: 0.5;
}

.hero-kicker {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  font-weight: 300;
  line-height: 1.625;
  color: var(--pale);
}

.hero-when {
  margin-top: 2.5rem;
}

.horizon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.horizon .short { height: 1px; width: 2rem; background: rgba(201, 208, 216, 0.3); }
.horizon .long { height: 1px; width: 4rem; background: rgba(201, 208, 216, 0.55); }
.horizon .diamond {
  width: 0.375rem;
  height: 0.375rem;
  rotate: 45deg;
  border: 1px solid rgba(201, 208, 216, 0.7);
}

.hero-date {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.025em;
  color: var(--ivory);
}

.hero-time {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
}

.hero-extras {
  margin: 2.5rem auto 0;
  max-width: 24rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

.scroll {
  margin-top: 3rem;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(201, 208, 216, 0.8);
  transition: color 0.15s ease;
}

.scroll:hover {
  color: var(--ivory);
}

.scroll span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  text-align: center;
}

.section-narrow {
  margin: 0 auto;
  max-width: 32rem;
}

.section h2 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ivory);
}

.details-card {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
}

.details-date {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.025em;
  color: var(--ivory);
}

.hairline {
  margin: 1.5rem auto;
  height: 1px;
  width: 4rem;
  background: rgba(201, 208, 216, 0.5);
}

.hairline.loose {
  margin: 2rem auto;
}

.meta {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-bright);
}

.meta.muted {
  margin-top: 0.75rem;
  color: var(--silver);
}

.venue-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ivory);
}

.venue-address {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--pale);
}

.maps {
  display: inline-flex;
  min-height: 3rem;
  margin-top: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 208, 216, 0.6);
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-bright);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.maps:hover {
  border-color: var(--ivory);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ivory);
}

/* Evening */
.evening {
  padding: 2rem 1.5rem 4rem;
}

.evening-inner {
  margin: 0 auto;
  max-width: 32rem;
}

.floral {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  color: rgba(201, 208, 216, 0.7);
}

.floral .arm {
  height: 1px;
  width: 2.5rem;
  background: rgba(201, 208, 216, 0.4);
}

.floral svg {
  width: 6rem;
  height: 1.25rem;
  color: rgba(201, 208, 216, 0.8);
}

.evening h2 {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ivory);
}

.timeline {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .stem {
  position: absolute;
  left: 5px;
  top: 1rem;
  height: 100%;
  width: 1px;
  background: rgba(201, 208, 216, 0.25);
}

.timeline li:last-child .stem {
  display: none;
}

.timeline .dot {
  position: relative;
  margin-top: 0.375rem;
  width: 0.625rem;
  height: 0.625rem;
  flex-shrink: 0;
  rotate: 45deg;
  border: 1px solid rgba(201, 208, 216, 0.8);
  background: var(--navy);
}

.timeline .when {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
}

.timeline h3 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ivory);
}

.timeline .what {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  color: var(--pale);
}

.stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  color: var(--silver);
}

.celebrate h2 {
  margin: 0;
}

.rsvp-copy {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--pale);
}

.rsvp-form {
  margin: 2.5rem auto 0;
  max-width: 32rem;
}

.rsvp-form iframe {
  width: 100%;
  border: 0;
}

.site-footer {
  position: relative;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.site-footer .monogram {
  margin-top: 2.5rem;
}

.footer-names {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  color: var(--silver);
}

.footer-date {
  margin: 0.5rem 0 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes soft-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fade-up 0.65s ease-out both;
}

.animate-draw-line {
  animation: draw-line 0.7s ease-out both;
  transform-origin: center;
}

.animate-soft-reveal {
  animation: soft-reveal 0.8s ease-out both;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.6s; }

@media (min-width: 640px) {
  .frame { inset: 1.25rem; }
  .frame span { width: 3rem; height: 3rem; }
  .hero-line span { width: 14rem; }
  .hero h1 { font-size: 3.75rem; }
  .tagline p { font-size: 1.5rem; }
  .hero-date { font-size: 1.25rem; }
  .section { padding: 6rem 1.5rem; }
  .section h2 { font-size: 3rem; }
  .details-card { padding: 2.5rem; }
  .details-date { font-size: 1.875rem; }
  .evening { padding: 4rem 1.5rem; }
  .floral .arm { width: 4rem; }
  .evening h2 { font-size: 2.25rem; }
}

@media (min-width: 768px) {
  .page { padding: 2.5rem 2rem; }
  .card { border: 1px solid rgba(201, 208, 216, 0.25); }
  .hero h1 { font-size: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-fade-up,
  .animate-draw-line,
  .animate-soft-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
