:root {
  --ink: #10243c;
  --ink-soft: #2c4a68;
  --muted: #5a7186;
  --paper: #eaf1f6;
  --cream: #f6fafc;
  --card: #ffffff;
  --line: rgba(16, 36, 60, 0.12);
  --gold: #e85a1c;
  --gold-soft: #f0a04a;
  --navy: #0d2a4a;
  --horizon: #7eb7d6;
  --shadow: 0 18px 50px rgba(13, 42, 74, 0.12);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
p {text-align: justify;}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
}

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

a { color: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.eyebrow2 {
  font-size: 0.98REM;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
}

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(234, 241, 246, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.brand-name { white-space: nowrap; }

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end stretch;
  color: #f3f7fb;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.05);
}

.hero-bg img:first-child { object-position: right center; }
.hero-bg img:last-child { object-position: left center; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,22,0.18) 0%, rgba(8,12,22,0.28) 38%, rgba(8,10,18,0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 72px;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-family:  'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; 
  max-width: 14ch;
  margin: 12px 0 18px;
}

.hero p.lead {
  max-width: 38ch;
  font-size: 1.15rem;
  color: rgba(243, 247, 251, 0.88);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  font-size: 0.95rem;
}

.hero-meta b { display: block; font-weight: 600; letter-spacing: 0.04em; }
.hero-meta span { color: rgba(243,247,251,0.72); font-size: 0.92rem; }

/* SECTIONS */
section { padding: 92px 0; }

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 42px;
  max-width: 640px;
}

.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }

/* INVITE */
.invite-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.invite-card h3 { font-size: 2.4rem; margin: 8px 0 18px; }

.facts {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.facts dt { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--gold);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.quote {
  background: var(--navy);
  color: #eef5fa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.quote p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.3;
}

.quote cite { color: var(--gold-soft); font-style: normal; font-size: 0.95rem; }

/* PROGRAM */
.program {
  background: linear-gradient(180deg, #dce8f1, var(--paper));
}

.timeline {
  display: grid;
  gap: 16px;
}

.event {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 18px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}

.event time {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: var(--gold);
}

.event h3 { font-size: 1.55rem; margin-bottom: 4px; }
.event p { color: var(--muted); font-size: 0.98rem; }
.tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* GALLERY */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(13,42,74,0.82));
  color: #eef5fa;
  font-size: 0.92rem;
}

/* AUTHOR */
.author-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.author-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}

.bio p + p { margin-top: 16px; }
.bio .muted { color: var(--muted); margin-top: 22px; font-size: 0.95rem; }

.author-mark {
  width: 52px;
  height: 52px;
  margin: 18px 0 8px;
  border-radius: 8px;
}

/* PARTNERS */
.partners {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.partner:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}

.partner img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.82;
}

.partner:hover img {
  filter: none;
  opacity: 1;
}

/* INFO */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

form {
  display: grid;
  gap: 12px;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  border-radius: 10px;
  color: var(--ink);
}

textarea { min-height: 110px; resize: vertical; }

.map-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 36, 0.94);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}

.lightbox.open { display: grid; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox .cap {
  position: absolute;
  bottom: 18px;
  color: #d7e6f2;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: block; }
  .invite-grid,
  .author-grid,
  .info-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
  .event { grid-template-columns: 1fr; }
  .author-photo img { min-height: 360px; }
}

@media (max-width: 560px) {
  .gallery-grid { columns: 1; }
  .hero { min-height: 86vh; }
  .hero-bg { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  section { padding: 68px 0; }
  .partners-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
}
