/* faithmap.org — site stylesheet
   Rebuilt from the Squarespace (Brine) design. Colors and type sizes below
   were taken from the live site's computed styles. */

/* ---- Fonts -------------------------------------------------------------
   Josefin Sans (Google Fonts) for headings, nav, labels, and buttons;
   Open Sans for body text. Both are loaded in the <head> of every page. */

:root {
  --font-display: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --ink: #292929;        /* body text */
  --ink-dark: #1c1c1c;   /* section labels */
  --navy: #1e1d32;       /* brand palette from the map artwork */
  --plum: #2d2c4c;
  --purple: #4b3b68;
  --slate: #717184;
  --gray: #868698;       /* hero button */
  --accent: rgba(129, 64, 226, 0.73); /* "On To Question 1" button */
  --rule: #e6e6ea;
  --bg: #ffffff;

  --measure: 44rem;      /* reading width for text sections */
  --wide: 56rem;         /* video width */
  --pad-x: 24px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); }
a:hover { color: var(--navy); }

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

/* ---- Header ---------------------------------------------------------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #000;
  text-decoration: none;
  line-height: 1;
  padding-top: 0.15em; /* optical centering for Josefin Sans */
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  opacity: 0.85;
  padding-top: 0.2em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--gray); }

@media (max-width: 480px) {
  .site-header__inner { padding: 14px 16px; }
  .site-title { font-size: 22px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; letter-spacing: 0.12em; }
}

/* ---- Map sections ---------------------------------------------------- */
.map-section {
  position: relative;
  padding: clamp(64px, 12vw, 150px) var(--pad-x);
  background: var(--bg);
}
.map-section__inner {
  margin: 0 auto;
}
.map-section--text .map-section__inner { max-width: var(--measure); }
.map-section--video .map-section__inner { max-width: var(--wide); }

/* Hero */
.map-section--hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(30, 29, 50, 0.15), rgba(30, 29, 50, 0.15)),
    url("/images/map-hero-blur.jpg") center / cover no-repeat var(--plum);
  padding-top: 80px;
  padding-bottom: 120px;
}
.map-section--hero .map-section__inner { max-width: 48rem; }
.map-section--hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9.5vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 0.45em;
  padding-top: 0.15em;
}
.map-section--hero p {
  margin: 0 auto 1em;
  max-width: 36rem;
  color: #fff;
}
.map-section--hero .btn-row { margin-top: 1.5em; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}
.scroll-hint svg { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint svg { animation: nudge 2.4s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
}

/* Video */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-section--video .btn-row { margin-top: 2.5em; }

/* Buttons (outline style, as on the original) */
.btn-row { text-align: center; margin: 2em 0 0; }
.btn {
  display: inline-block;
  padding: 1em 2.5em;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--gray { color: var(--gray); }
.btn--gray:hover { background: var(--gray); color: #fff; }
.btn--purple { color: var(--accent); }
.btn--purple:hover { background: var(--accent); color: #fff; }

/* ---- Prose (question text, About, Sources) --------------------------- */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose p { margin: 0 0 1.25em; }

/* Section label, e.g. "QUESTION 1" */
.prose > h3:first-child {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-dark);
  margin: 0 0 0.6em;
}
/* The question itself */
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-dark);
  margin: 0 0 1.4em;
}
/* Sub-headings inside a question */
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-dark);
  margin: 1.8em 0 0.6em;
}
.prose h3 strong { font-weight: inherit; }

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--gray);
}
.prose blockquote p { margin: 0 0 0.75em; }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose ul { padding-left: 1.25em; }

/* ---- Side dot navigation (index page, desktop only) ----------------- */
.dot-nav {
  display: none;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  flex-direction: column;
  align-items: flex-end;
}
@media (min-width: 900px) and (hover: hover) {
  .dot-nav { display: flex; }
}
.dot-nav a {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  margin: 7px 0;
  border: 1px solid var(--slate);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.dot-nav a:hover { transform: scale(1.4); }
.dot-nav a.is-active { background: var(--ink-dark); border-color: var(--ink-dark); }
.dot-nav a span {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(6px, -50%);
  margin-right: 14px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.dot-nav a:hover span { opacity: 1; transform: translate(0, -50%); }
.dot-nav--light a { border-color: rgba(255, 255, 255, 0.75); }
.dot-nav--light a.is-active { background: #fff; border-color: #fff; }
.dot-nav--light a span { color: #fff; }

/* ---- Standalone section pages ---------------------------------------- */
.is-section .map-section--hero { min-height: 70vh; }
.pager {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad-x) 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pager a { color: var(--slate); text-decoration: none; }
.pager a:hover { color: var(--ink-dark); }
.pager__map { text-align: center; }
.pager__next { text-align: right; }
@media (max-width: 600px) {
  .pager { flex-wrap: wrap; justify-content: center; text-align: center; }
  .pager__map { order: 3; flex-basis: 100%; }
}

/* ---- Banner pages (About, Sources, 404) ------------------------------ */
.banner {
  height: clamp(220px, 38vh, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  color: #fff;
  background:
    linear-gradient(rgba(30, 29, 50, 0.2), rgba(30, 29, 50, 0.2)),
    url("/images/map-banner.jpg") center / cover no-repeat var(--plum);
}
.banner h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
  padding-top: 0.15em;
}
.page { padding: clamp(48px, 8vw, 96px) var(--pad-x); }
.page__inner { max-width: var(--measure); margin: 0 auto; }
.page .prose h3 { margin-top: 2em; }
.page .prose > h3:first-child {
  text-align: left; letter-spacing: 0; text-transform: none;
  font-size: 1.15rem; font-weight: 700; margin: 1.8em 0 0.6em;
}

.link-list { list-style: none; padding: 0; margin: 1em 0 0; columns: 2; gap: 2em; }
.link-list li { margin: 0 0 0.4em; break-inside: avoid; }
@media (max-width: 480px) { .link-list { columns: 1; } }

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px var(--pad-x);
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.site-footer nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; }
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--ink-dark); }
.site-footer p { margin: 0; }
