:root {
  --indigo-deep: #0b113a;
  --indigo: #161f6d;
  --violet: #5800b7;
  --violet-soft: #f2ebfb;
  --gold: #ffea8b;
  --gold-muted: #c9a646;
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #1e2030;
  --ink-muted: #545770;
  --border: rgba(22, 31, 109, 0.12);
  --shadow-sm: 0 2px 12px rgba(11, 17, 58, 0.06);
  --shadow-md: 0 12px 36px rgba(11, 17, 58, 0.11);
  --radius: 14px;
  --max-w: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, .brand {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--indigo-deep);
  line-height: 1.28;
  margin-top: 0;
}

a {
  color: var(--indigo);
  text-decoration-color: rgba(22, 31, 109, 0.35);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--violet);
  text-decoration-color: var(--violet);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--indigo-deep);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--indigo-deep);
  background: var(--violet-soft);
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 0, 183, 0.18), transparent 48%),
    radial-gradient(circle at 82% 18%, rgba(255, 234, 139, 0.14), transparent 42%),
    linear-gradient(160deg, #090e31 0%, #141c5b 58%, #28135b 100%);
  color: #f7f5ef;
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 48px;
  align-items: center;
}

.hero-emblem-wrap {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
}

.hero-emblem-wrap img {
  width: 100%;
  border-radius: 12px;
}

.eyebrow {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 20px;
}

.hero-mission {
  font-size: clamp(1.14rem, 2vw, 1.38rem);
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 250, 235, 0.94);
  margin: 0 0 28px;
  max-width: 58ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--indigo-deep);
  box-shadow: 0 6px 20px rgba(255, 234, 139, 0.25);
}

.btn-gold:hover {
  background: #fff1aa;
  color: var(--indigo-deep);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-primary {
  background: var(--indigo-deep);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--violet);
  color: #ffffff;
}

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

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

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

/* Featured Post Card */
.feature-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-media {
  min-height: 300px;
  background: var(--indigo-deep);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.feature-body h3 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.feature-body p {
  margin: 0 0 24px;
  color: var(--ink-muted);
}

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

.photo-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 14px 18px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ink);
}

.photo-card figcaption small {
  display: block;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Page Banner */
.page-banner {
  background:
    radial-gradient(circle at 80% 25%, rgba(88, 0, 183, 0.22), transparent 50%),
    linear-gradient(155deg, #0b113a 0%, #1c195c 100%);
  color: #ffffff;
  padding: 58px 0;
}

.page-banner h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 10px;
}

.page-banner p {
  color: rgba(255, 250, 235, 0.86);
  max-width: 64ch;
  margin: 0;
  font-size: 1.08rem;
}

/* About layout */
.about-card {
  display: grid;
  grid-template-columns: minmax(220px, 310px) 1fr;
  gap: 44px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.about-portrait {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.about-blessing {
  margin-top: 22px;
  padding: 20px 24px;
  background: var(--violet-soft);
  border-left: 4px solid var(--violet);
  border-radius: 0 10px 10px 0;
  color: var(--indigo-deep);
}

/* Solstice Post */
.solstice-article {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: #090e31;
  background-image: linear-gradient(
      rgba(9, 14, 49, 0.78),
      rgba(14, 11, 46, 0.86)
    ),
    url('/assets/img/34d43c71-1e97-4163-876f-ba526711fa04_1_105_c.jpeg');
  background-size: cover;
  background-position: center;
  padding: clamp(32px, 5vw, 68px);
  color: #fff6cf;
  box-shadow: var(--shadow-md);
}

.solstice-inner {
  max-width: 720px;
  margin: 0 auto;
}

.solstice-article h1 {
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 10px;
}

.solstice-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 234, 139, 0.78);
  margin-bottom: 34px;
}

.solstice-article p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin: 0 0 24px;
  color: #fff5c8;
}

.solstice-pullquote {
  margin: 38px 0;
  padding: 22px 28px;
  border-top: 1px solid rgba(255, 234, 139, 0.35);
  border-bottom: 1px solid rgba(255, 234, 139, 0.35);
  text-align: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.24rem;
  font-style: italic;
  color: #ffffff;
}

.solstice-closing {
  font-style: italic;
  font-size: 1.16rem;
  color: var(--gold);
  margin-top: 32px;
}

/* Starfield banner */
.starfield-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  max-height: 280px;
}

.starfield-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: var(--indigo-deep);
  color: rgba(255, 250, 235, 0.82);
  padding: 48px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.site-footer p {
  margin: 0;
  font-size: 0.94rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 28, 0.92);
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-figure {
  max-width: min(94vw, 1100px);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-height: 78vh;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-figure figcaption {
  color: #fff6d6;
  text-align: center;
  margin-top: 14px;
  font-size: 1rem;
}

.lightbox-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 820px) {
  .hero-grid,
  .feature-card,
  .about-card {
    grid-template-columns: 1fr;
  }

  .hero-emblem-wrap {
    max-width: 280px;
  }

  .feature-body,
  .about-card {
    padding: 28px 24px;
  }
}
