:root {
  --navy: #081525;
  --navy-2: #0f2438;
  --navy-3: #16324a;
  --gold: #e8c547;
  --gold-soft: #f3dfa0;
  --cream: #f4efe4;
  --ink: #132033;
  --muted: #5c6b7a;
  --line: rgba(232, 197, 71, 0.28);
  --sidebar-w: 280px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(232, 197, 71, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f3ea 0%, #efe8d8 45%, #f7f3ea 100%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(8, 21, 37, 0.35);
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 5px auto;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background:
    linear-gradient(165deg, rgba(232, 197, 71, 0.08), transparent 35%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #f6f1e6;
  padding: 1.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 40;
  border-right: 1px solid rgba(232, 197, 71, 0.18);
  overflow-y: auto;
}

.sidebar__brand {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.sidebar__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar__place {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.nav-link {
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 0.4rem;
  color: rgba(246, 241, 230, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-link.is-active {
  color: var(--navy);
  background: var(--gold);
  font-weight: 700;
}

.sidebar__motto {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.overlay {
  display: none;
}

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: min(100vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 21, 37, 0.72) 0%, rgba(8, 21, 37, 0.35) 48%, rgba(8, 21, 37, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 21, 37, 0.15) 0%, rgba(8, 21, 37, 0.75) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 42rem;
}

.hero__label {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.8rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__date {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.section--intro,
.section--muted {
  background: rgba(255, 255, 255, 0.38);
}

.section--accent {
  background:
    linear-gradient(135deg, rgba(15, 36, 56, 0.96), rgba(22, 50, 74, 0.94)),
    var(--navy-2);
  color: #f6f1e6;
}

.section--accent .eyebrow,
.section--accent .note {
  color: var(--gold);
}

.section--accent .lede,
.section--accent .timeline p {
  color: rgba(246, 241, 230, 0.78);
}

.section--finale {
  background:
    radial-gradient(700px 320px at 20% 20%, rgba(232, 197, 71, 0.22), transparent 60%),
    linear-gradient(160deg, #0a1a2c, #132e45);
  color: #fff;
  text-align: center;
}

.section__inner {
  max-width: 920px;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #9a7a1f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #354556;
  max-width: 46rem;
}

.prose__closing {
  margin-top: 1.5rem !important;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--navy) !important;
}

.subhead {
  margin: 2rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.meta-item {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(232, 197, 71, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.meta-item__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(232, 197, 71, 0.18);
}

.timeline__step {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}

.timeline strong {
  display: block;
  margin-bottom: 0.2rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 1.5rem 0 0;
  color: #8a7330;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid rgba(19, 32, 51, 0.08);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.panel {
  padding: 1.35rem;
  background: var(--navy-2);
  color: #f6f1e6;
}

.panel .subhead {
  margin-top: 0;
  color: var(--gold);
}

.panel p {
  color: rgba(246, 241, 230, 0.8);
}

.facts {
  margin: 1rem 0 1.35rem;
}

.facts div {
  margin-bottom: 0.85rem;
}

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  word-break: break-all;
}

.stat {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: #fff;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
}

.stat__label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.55rem 0.9rem;
  background: rgba(15, 36, 56, 0.08);
  border: 1px solid rgba(15, 36, 56, 0.08);
  font-size: 0.92rem;
}

.gallery-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(19, 32, 51, 0.25);
  background:
    linear-gradient(135deg, rgba(232, 197, 71, 0.12), transparent),
    rgba(255, 255, 255, 0.45);
  color: var(--muted);
}

.grid-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.grid-topics article {
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border-top: 3px solid var(--gold);
}

.grid-topics h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.grid-topics p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.milestone {
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 197, 71, 0.18);
}

.milestone time {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.milestone h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.milestone p {
  margin: 0;
  color: rgba(246, 241, 230, 0.75);
  font-size: 0.95rem;
}

.milestone--highlight {
  background: rgba(232, 197, 71, 0.14);
  border-color: rgba(232, 197, 71, 0.45);
}

.glance {
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--gold);
  background: rgba(0, 0, 0, 0.18);
}

.glance h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.glance ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.people li {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid var(--gold);
}

.people strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.people a {
  color: #6d5a1c;
  font-size: 0.88rem;
  text-decoration: none;
}

.people a:hover {
  text-decoration: underline;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(19, 32, 51, 0.12);
  font-weight: 600;
}

.contact-block {
  margin-top: 0.5rem;
}

.contact-mail {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  text-decoration: none;
}

.contact-mail:hover {
  text-decoration: underline;
}

.finale-motto {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer {
  padding: 2rem clamp(1.25rem, 5vw, 4rem) 2.5rem;
  background: #06111d;
  color: rgba(246, 241, 230, 0.7);
  text-align: center;
  font-size: 0.9rem;
}

.footer p {
  margin: 0.25rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero__label.reveal { animation-delay: 0.1s; }
.hero__title.reveal { animation-delay: 0.25s; }
.hero__lead.reveal { animation-delay: 0.4s; }
.hero__actions.reveal { animation-delay: 0.55s; }
.hero__date.reveal { animation-delay: 0.7s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.07); }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
    width: min(86vw, 300px);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 17, 29, 0.55);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .main {
    margin-left: 0;
  }

  .split,
  .meta-row,
  .milestones {
    grid-template-columns: 1fr;
  }

  .hero__date {
    position: relative;
    right: auto;
    bottom: auto;
    padding: 0 clamp(1.25rem, 5vw, 2rem) 2rem;
  }

  .hero {
    min-height: min(100vh, 680px);
  }

  .hero__media img {
    object-position: center 45%;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(8, 21, 37, 0.2) 0%, rgba(8, 21, 37, 0.78) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}
