/* ==========================================================================
   Living Temple of God — shared stylesheet
   ========================================================================== */

:root {
  --bg: #10122a;
  --bg-panel: #171a3a;
  --bg-panel-2: #1b1e42;
  --gold: #cda45e;
  --gold-bright: #e6c589;
  --ink: #f4ecdb;
  --ink-muted: #b3aec8;
  --line: rgba(244, 236, 219, 0.12);
  --line-strong: rgba(205, 164, 94, 0.35);
  --max: 880px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(244,236,219,0.35), transparent 60%),
    radial-gradient(1px 1px at 78% 14%, rgba(244,236,219,0.25), transparent 60%),
    radial-gradient(1.5px 1.5px at 45% 8%, rgba(244,236,219,0.3), transparent 60%),
    radial-gradient(1px 1px at 88% 38%, rgba(244,236,219,0.2), transparent 60%),
    radial-gradient(1px 1px at 25% 45%, rgba(244,236,219,0.18), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 30%, rgba(244,236,219,0.22), transparent 60%);
  background-repeat: no-repeat;
  background-size: 100% 900px;
}

a { color: var(--gold-bright); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 42, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark { width: 34px; height: 34px; flex: none; border-radius: 50%; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

nav.links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav.links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

nav.links a:hover { color: var(--gold-bright); }
nav.links a.active { color: var(--gold-bright); }

.nav-toggle { display: none; }

@media (max-width: 640px) {
  nav.links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
  }
  nav.links.open { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    border-radius: 6px;
    padding: 7px 10px;
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 28px 72px;
  text-align: center;
}

.hero .mark-lg {
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  opacity: 0.98;
  border-radius: 50%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.eyebrow .rule { width: 22px; height: 1px; background: var(--line-strong); display: inline-block; }

h1.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--ink);
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--gold-bright);
  margin: 0 0 26px;
  letter-spacing: 0.02em;
}

.lede {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* ---------- Sections ---------- */

section.block {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 30px;
}

.section-head .eyebrow { margin-bottom: 12px; }

h2.h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin: 0 0 6px;
  color: var(--ink);
}

.section-sub {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.prose p { color: var(--ink-muted); margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Project grid ---------- */

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

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card .icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.card p {
  color: var(--ink-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Spotlight (Light & Salt) ---------- */

.spotlight {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: center;
}

@media (max-width: 620px) {
  .spotlight { flex-direction: column; text-align: center; }
}

.spotlight .glyph {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 50%;
}

.spotlight h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.spotlight p { color: var(--ink-muted); margin: 0 0 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* ---------- Contact ---------- */

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.contact-box .field { min-width: 220px; }

.contact-box .label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact-box a { text-decoration: none; }
.contact-box a:hover { text-decoration: underline; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 64px 28px 20px;
  text-align: center;
}

.page-hero h1.title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 10px;
}

.page-hero .lede { margin: 0 auto; }

/* ---------- Content cards (Publications / Media / Projects) ---------- */

.item-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.item {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
}

.item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.item .item-sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 0.95rem;
  margin: 2px 0 10px;
}

.item p { color: var(--ink-muted); margin: 0; font-size: 0.96rem; }

/* Item with cover image */

.item-with-cover {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.item-with-cover .cover {
  flex: none;
  width: 130px;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
}

.item-with-cover .item-body { flex: 1; min-width: 0; }

@media (max-width: 560px) {
  .item-with-cover { flex-direction: column; align-items: center; text-align: center; }
  .item-with-cover .cover { width: 150px; }
}

.status {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}

/* Video placeholder */

.video-slot {
  aspect-ratio: 16/9;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  margin-top: 14px;
  background: rgba(0,0,0,0.15);
}

.video-slot iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: none;
}

/* Link cards on Home linking out to sections */

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .link-cards { grid-template-columns: 1fr; }
}

.link-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.link-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.link-card .icon { font-size: 1.5rem; display: block; margin-bottom: 10px; }

.link-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.link-card p { color: var(--ink-muted); font-size: 0.9rem; margin: 0; }
.link-card .go { color: var(--gold-bright); font-size: 0.85rem; margin-top: 10px; display: inline-block; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0 0;
  margin-top: 20px;
}

.footer-org {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-org strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer-org a { color: var(--gold-bright); text-decoration: none; }
.footer-org a:hover { text-decoration: underline; }

footer.site .foot-row { padding: 18px 0 40px; }

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--ink-muted);
  font-size: 13.5px;
}

.foot-links a {
  color: var(--ink-muted);
  text-decoration: none;
  margin-inline-start: 18px;
}
.foot-links a:first-child { margin-inline-start: 0; }
.foot-links a:hover { color: var(--gold-bright); }

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 64px 0 80px;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 36px 0 10px;
  color: var(--gold-bright);
}

.legal p, .legal li { color: var(--ink-muted); font-size: 0.98rem; }
.legal ul { padding-inline-start: 20px; }

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13.5px;
}
.back-link:hover { color: var(--gold-bright); }
