:root {
  --primary: #0B1F3A;
  --secondary: #D4AF37;
  --background: #FFFFFF;
  --text: #1F2937;
  --muted: #667085;
  --soft: #F8F4EA;
  --card: rgba(255, 255, 255, 0.88);
  --border: rgba(212, 175, 55, 0.28);
  --shadow: 0 24px 80px rgba(11, 31, 58, 0.16);
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, .18), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #fffaf0 50%, #ffffff 100%);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 50px rgba(11, 31, 58, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--primary), #183A67);
  border: 2px solid var(--secondary);
}

.site-header nav {
  display: flex;
  gap: 18px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 32px;
  padding: 140px max(24px, calc((100vw - 1120px) / 2)) 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,31,58,.92), rgba(11,31,58,.62), rgba(11,31,58,.18)),
    url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(212,175,55,.28), transparent 26rem);
}

.hero-content, .graduate-card {
  position: relative;
  z-index: 1;
}

.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 900;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(46px, 8vw, 92px);
  line-height: .95;
  color: white;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: .22s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--primary);
  background: linear-gradient(135deg, #F6DF8E, var(--secondary));
  box-shadow: 0 14px 35px rgba(212,175,55,.28);
}

.btn-secondary {
  color: white;
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

.graduate-card {
  align-self: end;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6);
}

.graduate-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.graduate-card div {
  padding: 26px;
}

.small-label {
  margin: 0 0 6px;
  color: var(--secondary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}

.graduate-card h2 {
  margin: 0 0 8px;
  font-family: var(--heading-font);
  color: var(--primary);
  font-size: 34px;
}

.graduate-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

h2 {
  margin: 0;
  font-family: var(--heading-font);
  color: var(--primary);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.invitation-card, .thank-card {
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.invitation-card p, .thank-card p, .profile-content p, .section-heading p, .location-section p, .rsvp-copy p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.signature {
  margin-top: 24px;
  font-family: var(--heading-font);
  color: var(--primary);
  font-size: 30px;
  font-weight: 800;
}

.profile-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.profile-photo {
  padding: 14px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--secondary), #FFF2B3);
  box-shadow: var(--shadow);
}

.profile-photo img {
  height: 520px;
  width: 100%;
  object-fit: cover;
  border-radius: 26px;
}

blockquote {
  margin: 28px 0 0;
  padding-left: 22px;
  border-left: 4px solid var(--secondary);
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 28px;
  line-height: 1.35;
}

.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 34px 0;
}

.countdown div {
  padding: 28px 16px;
  text-align: center;
  border-radius: 28px;
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.countdown strong {
  display: block;
  color: var(--secondary);
  font-family: var(--heading-font);
  font-size: clamp(34px, 5vw, 58px);
}

.countdown span {
  font-weight: 800;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.event-cards article {
  min-height: 160px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: white;
  box-shadow: 0 18px 45px rgba(11,31,58,.08);
}

.event-cards span {
  display: block;
  color: var(--secondary);
  font-weight: 900;
  margin-bottom: 14px;
}

.event-cards strong {
  color: var(--primary);
  line-height: 1.55;
}

.location-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.map-box {
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  border: 8px solid white;
  box-shadow: var(--shadow);
}

.map-box iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100px;
  width: 2px;
  background: linear-gradient(var(--secondary), rgba(212,175,55,.1));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  margin-bottom: 24px;
}

.timeline-time {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 800;
  border: 4px solid white;
  box-shadow: var(--shadow);
}

.timeline-card {
  padding: 24px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(11,31,58,.08);
}

.timeline-card h3 {
  margin: 0 0 8px;
  color: var(--primary);
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: white;
  box-shadow: 0 18px 45px rgba(11,31,58,.08);
  border: 1px solid var(--border);
}

.gallery-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: .35s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card figcaption {
  padding: 18px 20px;
  color: var(--primary);
  font-weight: 900;
}

.rsvp-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 42px;
  align-items: start;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 32px;
  border-radius: 32px;
  background: var(--primary);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field span {
  color: white;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  padding: 14px 16px;
  color: white;
  background: rgba(255,255,255,.1);
  outline: none;
  font: inherit;
}

select option {
  color: var(--primary);
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,.62);
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--secondary);
  font-weight: 900;
}

.thank-section {
  padding-top: 40px;
}

.thank-card {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(11,31,58,.96), rgba(22,59,102,.95)),
    radial-gradient(circle at top right, rgba(212,175,55,.32), transparent 24rem);
}

.thank-card h2 {
  color: white;
}

.thank-card p {
  color: rgba(255,255,255,.82);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 54px;
  color: var(--primary);
}

.footer p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
    border-radius: 24px;
  }

  .site-header nav {
    display: none;
  }

  .hero, .intro-grid, .profile-section, .location-section, .rsvp-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 118px;
  }

  .graduate-card {
    align-self: auto;
  }

  .event-cards, .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 44px;
  }

  .event-cards, .gallery-grid, .rsvp-form {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 44px;
  }

  .timeline-item {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .timeline-time {
    width: 76px;
    height: 76px;
    font-size: 20px;
  }

  .invitation-card, .thank-card, .rsvp-form {
    padding: 24px;
  }
}
