/* The Saints Unexplained: one stylesheet for the whole site. Mobile-first. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1A1410;
  --bg-raised: #241B15;
  --gold: #D4AF37;
  --gold-soft: #E3C66A;
  --red: #7A1F1F;
  --blue: #1F3354;
  --text: #EFE6D2;
  --text-muted: #CDBFA3;
  --rule: rgba(212, 175, 55, 0.45);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --wrap: 1100px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
h2 { font-size: clamp(2rem, 5vw, 2.75rem); text-align: center; }
h3 { font-size: 1.6rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--gold-soft); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
}
.brand:hover { color: var(--gold-soft); }
.header-link { font-size: 1rem; }

/* Hero: candlelight glow from CSS gradients only */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 30%, rgba(212, 175, 55, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 70% at 15% 100%, rgba(122, 31, 31, 0.45), transparent 70%),
    radial-gradient(ellipse 80% 70% at 85% 100%, rgba(31, 51, 84, 0.55), transparent 70%),
    var(--bg);
}
.hero-inner { padding-block: 3.5rem 4rem; max-width: 900px; }
.hero-emblem {
  display: block;
  margin: 0 auto 1.5rem;
  width: 84px;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.45));
}
.hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.lede {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--gold);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button-primary { background: var(--gold); color: var(--bg); }
.button-primary:hover { background: var(--gold-soft); color: var(--bg); }
.button-secondary { background: rgba(26, 20, 16, 0.6); color: var(--gold-soft); }
.button-secondary:hover { background: var(--red); color: var(--text); }

/* Sections */
.section { padding-block: 3.5rem; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(31, 51, 84, 0.28), rgba(31, 51, 84, 0.12)),
    var(--bg);
  border-block: 1px solid rgba(212, 175, 55, 0.18);
}

/* Thin gold rule with a small diamond in the middle */
.rule {
  position: relative;
  width: min(240px, 60%);
  height: 1px;
  margin: 0 auto 2.25rem;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  overflow: visible;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.card {
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--bg-raised);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-top: 3px solid var(--red);
  border-radius: 4px;
}
.card p { margin: 0; color: var(--text); }

.note { text-align: center; font-style: italic; color: var(--text-muted); }

.upcoming {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: upcoming;
}
.upcoming li {
  position: relative;
  padding: 1rem 0 1rem 2.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
}
.upcoming li:last-child { border-bottom: 0; }
.upcoming li::before {
  counter-increment: upcoming;
  content: counter(upcoming, upper-roman);
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 2rem;
  color: var(--gold);
  font-weight: 700;
}

.contact { text-align: center; }
.contact a { overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}
.site-footer p { margin: 0; }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding-block: 5rem 5.5rem; }
  .hero-emblem { width: 96px; }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .section { padding-block: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
