:root {
  --navy: #061a3d;
  --navy-deep: #031027;
  --gold: #d89d32;
  --gold-soft: rgba(216, 157, 50, 0.22);
  --gold-light: #f2cd78;
  --burgundy: #681008;
  --red: #b22a14;
  --white: #fff;
  --off-white: #fbf5e8;
  --cream: #f1e3cc;
  --ink: #30170d;
  --muted: #684d40;
  --border: rgba(83, 46, 24, 0.18);
  --radius: 2px;
  --shadow: 0 20px 48px rgba(30, 18, 10, 0.18);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 31, 92, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 160, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  transition: background 150ms ease;
}
.btn-primary:hover,
.btn-primary:focus-visible { background: #f0b100; }

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  transition: background 150ms ease;
}
.btn-gold:hover,
.btn-gold:focus-visible { background: #f0b100; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(224, 160, 0, 0.18), transparent 42%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.1rem;
}

.hero-mark {
  width: clamp(150px, 18vw, 200px);
  margin: 0;
  padding: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
}
.hero-mark img { width: 100%; }

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-meta {
  margin: 0;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-copy {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(5.5rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.countdown-item { display: grid; gap: 0.15rem; }
.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}
.countdown-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.day { background: var(--white); }
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--gold);
}
.timeline-item {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) 1fr;
  gap: 1.5rem;
  padding: 0 0 2.5rem 2rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline-time {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.timeline-body p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
}

.lead-up { background: var(--off-white); }
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.event-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9rem) 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}
.event-date {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.event-body p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
}

.story {
  color: var(--white);
  background: var(--navy-deep);
}
.story-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
}
.story-logo {
  width: 96px;
  opacity: 0.95;
}
.story p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}
.story strong { color: var(--gold); }

.site-footer {
  background: #00112f;
  color: var(--white);
  padding: 3.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.footer-sub {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}
.footer-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
    order: 2;
  }
  .site-header .btn {
    width: 100%;
    order: 3;
  }
  .brand { order: 1; }

  .timeline-item,
  .event-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .timeline {
    border-left: 0;
    padding-left: 0;
  }
  .timeline-item {
    padding: 0 0 2rem 0;
    border-left: 1px solid var(--gold);
    margin-left: 4px;
  }
  .timeline-item::before { left: -5px; }
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* Approved Sacred Heart 100th Anniversary artwork layout */
.site-header {
  background: rgba(3, 16, 39, 0.96);
  border-bottom-color: rgba(242, 205, 120, 0.36);
}

.hero {
  background: var(--navy-deep);
  padding: 0 0 clamp(3.5rem, 7vw, 6rem);
}

.hero::before { display: none; }

.hero-artwork {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.hero-artwork img { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24); }

.hero-inner {
  gap: 1rem;
  padding-top: clamp(2.75rem, 6vw, 5.5rem);
}

.hero-meta,
.section-kicker {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-copy { color: rgba(255, 255, 255, 0.82); }

.countdown {
  margin-top: 1.1rem;
  padding: 1.1rem;
  border-color: rgba(242, 205, 120, 0.25);
}

.countdown-label { color: var(--gold-light); }

.celebration { background: #fff; }

.celebration h2 { margin: 0.65rem 0 2.65rem; }

.wide-artwork {
  margin: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.day {
  display: grid;
  grid-template-columns: minmax(12rem, 0.75fr) 1.25fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: transparent;
}

.day-heading h3 { color: var(--navy); }

.day-heading p { margin: 0.55rem 0 0; color: var(--muted); }

.timeline { border-left-color: var(--gold); }

.timeline-item {
  grid-template-columns: 7.2rem 1fr;
  gap: 1rem;
  padding-left: 1.8rem;
}

.timeline-item::before { background: var(--gold); }

.timeline-time { color: var(--burgundy); }

.timeline-body h4 {
  margin: 0 0 0.28rem;
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.15;
}

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

.five-k { background: var(--cream); }

.five-k-inner {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 9vw, 8rem);
}

.flyer-frame { width: min(100%, 25rem); margin: 0 auto; }

.flyer-frame img { border: 1px solid var(--border); box-shadow: var(--shadow); }

.flyer-frame figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.five-k-copy h2 { margin: 0.65rem 0 1.4rem; color: var(--burgundy); }

.intro {
  margin: 0;
  color: var(--ink);
  font: 600 clamp(1.25rem, 2.4vw, 1.75rem)/1.2 var(--font-display);
}

.event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 30rem;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.event-details div { display: grid; gap: 0.25rem; }

.event-details dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.event-details dd {
  margin: 0;
  color: var(--burgundy);
  font: 600 1.35rem/1.1 var(--font-display);
}

.five-k-copy > p:last-child { max-width: 32rem; margin: 0; color: var(--muted); }

.history { color: #fff; background: var(--navy-deep); }

.history-inner {
  display: grid;
  grid-template-columns: minmax(17rem, 1.25fr) minmax(16rem, 0.75fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.history-artwork { margin: 0; }

.history-artwork img { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28); }

.history-copy .section-kicker { color: var(--gold-light); }

.history-copy h2 { margin: 0.6rem 0 1.25rem; }

.history-copy p:last-child {
  max-width: 25rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.gallery { background: var(--off-white); }

.gallery-inner { display: grid; justify-items: center; max-width: 40rem; text-align: center; }

.gallery h2 { margin-bottom: 1.1rem; }

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

.site-footer { background: #020b1d; }

.footer-note { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; }

@media (max-width: 760px) {
  .container { width: min(100% - 2rem, 1120px); }

  .hero { padding-bottom: 3.5rem; }

  .hero-inner { padding-top: 3rem; }

  .hero-artwork img { min-height: 0; object-fit: contain; }

  .day,
  .five-k-inner,
  .history-inner { grid-template-columns: 1fr; }

  .day { gap: 2rem; }

  .timeline-item { grid-template-columns: 1fr; gap: 0.45rem; }

  .five-k-copy,
  .history-copy { text-align: center; }

  .five-k-copy h2,
  .history-copy h2,
  .history-copy p:last-child,
  .five-k-copy > p:last-child { margin-inline: auto; }

  .event-details { margin-inline: auto; text-align: left; }
}
