:root {
  --navy: #0f1b2d;
  --navy-light: #1c2f4a;
  --gold: #c9a24b;
  --gold-light: #e6c878;
  --maroon: #8a2432;
  --maroon-light: #b23347;
  --cream: #faf7f0;
  --ink: #1a1a1a;
  --muted: #5b6472;
  --border: #e4dfd3;
  --radius: 14px;
  --max-width: 1100px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 4px solid var(--maroon);
  border-bottom: 3px solid var(--gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand span { color: var(--gold-light); }

.brand:hover { text-decoration: none; opacity: 0.9; }

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #e8e6df;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--gold-light); text-decoration: none; }

.site-nav a.active { color: var(--gold-light); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 70px 0 90px;
  text-align: center;
}

.photo-credit {
  color: #9aa5b5;
  font-size: 0.72rem;
  margin-top: 26px;
}

.photo-credit a { color: #b7c0cd; }

/* Feature photo tile */
.feature-photo {
  margin: 0;
  padding: 0;
}

.feature-photo img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(15,27,45,0.22);
  border: 1px solid var(--border);
}

.feature-photo figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

.feature-photo figcaption a { color: var(--navy-light); font-weight: 600; }

.hero .eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
  line-height: 1.15;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #cfd6e2;
  max-width: 640px;
  margin: 0 auto 30px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-meta div {
  text-align: left;
}

.hero-meta .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.hero-meta .value {
  font-size: 1.05rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  transition: transform 0.15s ease, background 0.15s ease;
}

button.btn {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.btn:hover {
  background: var(--gold-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.btn-outline {
  background: transparent;
  color: var(--gold-light);
}

.btn.btn-outline:hover { background: rgba(201,162,75,0.12); }

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 34px 0 4px;
  flex-wrap: wrap;
}

.countdown .box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,75,0.4);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 78px;
}

.countdown .num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-light);
}

.countdown .unit {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cfd6e2;
}

/* Sections */
section.block {
  padding: 60px 0;
}

section.block.alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2.section-title {
  font-size: 1.9rem;
  margin: 0 0 8px;
  color: var(--navy);
}

p.section-sub {
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 620px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.1rem;
}

.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.card.accent-maroon {
  background: linear-gradient(180deg, rgba(138,36,50,0.07), rgba(138,36,50,0.02));
  border: 1px solid rgba(138,36,50,0.35);
  border-left: 4px solid var(--maroon);
}

.card.accent-maroon h3 { color: var(--maroon); }

/* Agenda timeline */
.timeline {
  border-left: 3px solid var(--gold);
  margin-left: 10px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline .item { position: relative; }

.timeline .item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
}

.timeline .time {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.timeline h3 {
  margin: 4px 0 6px;
  font-size: 1.15rem;
  color: var(--navy-light);
}

.timeline p { margin: 0; color: var(--muted); }

.timeline .badges {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,27,45,0.08);
  color: var(--navy);
}

.badge.evening {
  background: rgba(201,162,75,0.18);
  color: #7a5c14;
}

.venue-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 26px;
}

.venue-box h3 { margin-top: 0; color: var(--navy); }

/* Attendee grid */
.attendee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.attendee-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.attendee-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,27,45,0.08);
  text-decoration: none;
}

.avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--navy-light);
}

.avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 2.2rem;
  font-weight: 700;
}

.attendee-card h3 {
  margin: 16px 0 2px;
  font-size: 1.02rem;
  color: var(--navy);
}

.attendee-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Attendee profile page */
.profile-header {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-header .avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 2.8rem;
}

.profile-header h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 2rem;
}

.profile-header .meta {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 10px;
}

.tagline {
  font-style: italic;
  color: var(--navy-light);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.gallery img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.gallery-empty {
  color: var(--muted);
  font-style: italic;
  margin-top: 20px;
}

.links-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.back-link { display: inline-block; margin-bottom: 22px; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cfd6e2;
  padding: 34px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a { color: var(--gold-light); }

@media (max-width: 640px) {
  .profile-header { flex-direction: column; text-align: center; }
  section.block { padding: 44px 0; }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .hero-meta div { text-align: center; }

  .countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .countdown .box { min-width: 0; }
}
