:root {
  --bg: #fffaf2;
  --bg-soft: #f6efe3;
  --ink: #1e1b18;
  --muted: #665b50;
  --primary: #7f1d1d;
  --primary-dark: #571313;
  --gold: #c6922e;
  --cream: #fff7e8;
  --line: rgba(30, 27, 24, 0.14);
  --shadow: 0 22px 60px rgba(45, 30, 18, 0.16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 99;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  box-shadow: 0 10px 26px rgba(127, 29, 29, 0.26);
}

.brand strong, .brand small { display: block; line-height: 1.1; }
.brand small { color: var(--muted); margin-top: 3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a:focus { color: var(--primary); background: #fff; }
.nav-cta { background: var(--primary); color: #fff !important; }
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }

.mobile-menu-button { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 25%, rgba(198, 146, 46, 0.35), transparent 34%),
    linear-gradient(135deg, rgba(87, 19, 19, 0.96), rgba(127, 29, 29, 0.88)),
    url('https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.28), rgba(0,0,0,0.05));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 410px;
  align-items: center;
  gap: 54px;
  padding: 86px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
}

.hero h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
  margin: 0;
}
.hero h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); max-width: 850px; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 650px; color: rgba(255,255,255,0.89); margin: 24px 0; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 16px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: #211400; box-shadow: 0 16px 32px rgba(198, 146, 46, .28); }
.button.primary:hover { background: #d8a53d; }
.button.secondary { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.32); }
.section .button.secondary, .contact-card .button.secondary { color: var(--primary); background: #fff; border: 1px solid var(--line); }
.button.full { width: 100%; }

.small-note { font-size: .92rem; color: rgba(255,255,255,0.76); }
.section .small-note, .coming-card .small-note { color: var(--muted); }

.hero-card {
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 2.2rem; margin: 6px 0 10px; }
.hero-card p { margin: 10px 0; color: rgba(255,255,255,.9); }
.card-label { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.hero-card hr { border: 0; border-top: 1px solid rgba(255,255,255,0.24); margin: 22px 0; }
.text-link { color: #fff; font-weight: 800; text-underline-offset: 4px; }

.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-accent { background: linear-gradient(135deg, #fff3db, #f8e5bd); }
.two-column, .rsvp-layout, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.two-column h2, .section-heading h2, .rsvp-layout h2, .contact-grid h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.two-column p, .section-heading p, .rsvp-layout p, .contact-grid p { color: var(--muted); font-size: 1.04rem; }
.centered { text-align: center; margin: 0 auto 42px; max-width: 760px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.detail-card, .mini-card, .update-card, .coming-card, .static-form, .contact-card, .rsvp-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 38px rgba(45, 30, 18, 0.08);
}
.detail-card h3, .mini-card h3, .update-card h3, .static-form h3, .contact-card h3, .rsvp-box h3 { margin: 8px 0 8px; }
.detail-card p, .mini-card p, .update-card p, .rsvp-box p { color: var(--muted); margin: 0; }
.icon { font-size: 2rem; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin: 12px 0; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 900; }

.static-form label { display: block; font-weight: 800; margin: 14px 0 6px; }
.static-form input, .static-form textarea, .coming-toolbar input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background: #fffaf2;
}
.static-form textarea { resize: vertical; }

.coming-card { max-width: 860px; margin: 0 auto; }
.coming-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin-bottom: 20px; }
.coming-toolbar span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.classmate-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.classmate-list li { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 700; }

.stacked-cards { display: grid; gap: 18px; }
.updates-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.update-card time { color: var(--primary); font-weight: 800; font-size: .9rem; }

.narrow { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; box-shadow: 0 10px 30px rgba(45, 30, 18, 0.06); }
summary { cursor: pointer; font-weight: 800; padding: 20px 0; }
details p { color: var(--muted); margin: 0 0 20px; }

.contact-section { background: var(--primary); color: #fff; }
.contact-section .eyebrow { color: #f1bd55; }
.contact-grid p { color: rgba(255,255,255,0.82); }
.contact-card p { color: var(--muted); }
.contact-card a:not(.button) { color: var(--primary); font-weight: 800; }

.site-footer { padding: 28px 0; background: #160f0c; color: rgba(255,255,255,.76); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-grid a { color: #fff; font-weight: 800; }

@media (max-width: 980px) {
  .mobile-menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .mobile-menu-button span:not(.sr-only) { display: block; height: 2px; width: 22px; background: var(--ink); margin: 0 auto; }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 14px; }
  .hero-grid, .two-column, .rsvp-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .classmate-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .brand small { display: none; }
  .hero { min-height: auto; }
  .hero-grid { padding: 64px 0; }
  .hero h1 { font-size: 3.1rem; }
  .section { padding: 68px 0; }
  .detail-grid, .updates-list, .classmate-list { grid-template-columns: 1fr; }
  .coming-toolbar { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; text-align: center; }
}
