/* =========================================================================
   Prayer Pause v3 - Sub-page shell (static night sky)
   Composes AFTER type-a.css. Reuses --display / --sans / --serif from it, and
   re-declares them here so the file also stands alone. This is the calm isha
   night stop of the homepage, frozen: no scroll engine, no GSAP, zero JS.
   Fully readable with JavaScript disabled. No em dashes anywhere.
   ========================================================================= */

:root {
  /* ---- night palette (the homepage isha stop) ---- */
  --bg:     #130F0B;
  --ink:    #E3CDB6;
  --muted:  rgba(227,205,182,0.80);
  --accent: #CBA978;
  --accentInk: #1A120A;
  --card:   rgba(245,239,228,0.045);
  --bd:     rgba(203,169,120,0.14);

  /* dune silhouettes: dark browns, near dune darkest (closest to viewer) */
  --dune1: #241A10;
  --dune2: #180F09;
  --dune3: #0E0906;

  /* soft warm ember near the horizon */
  --glow:    rgba(203,169,120,0.16);
  --horizon: rgba(198,140,96,0.12);

  /* fonts: mirror type-a.css so page.css also works alone */
  --display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 760px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accentInk); }

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

/* ---- skip link ---- */
.skip {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accentInk);
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* =========================================================================
   FIXED NIGHT SKY (static)
   ========================================================================= */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(140% 100% at 50% 118%, var(--horizon), transparent 60%),
    var(--bg);
}

/* a low warm ember pooled at the horizon line */
.page-glow {
  position: absolute;
  left: -10%; right: -10%;
  bottom: 0; height: 52vh;
  background: radial-gradient(120% 90% at 50% 100%, var(--glow), transparent 64%);
  opacity: 0.9;
}

/* star field: two pseudo-layers of tiny box-shadow points, zero JS */
.stars { position: absolute; inset: 0; opacity: 0.85; }
.stars::before,
.stars::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: transparent;
}
.stars::before {
  box-shadow:
    6vw 12vh 0 0 rgba(227,205,182,0.55),
    18vw 26vh 0 0 rgba(227,205,182,0.30),
    27vw 9vh 0 0 rgba(227,205,182,0.65),
    39vw 20vh 0 0 rgba(227,205,182,0.28),
    46vw 34vh 0 0 rgba(227,205,182,0.50),
    58vw 14vh 0 0 rgba(227,205,182,0.35),
    67vw 28vh 0 0 rgba(227,205,182,0.60),
    76vw 8vh 0 0 rgba(227,205,182,0.30),
    84vw 22vh 0 0 rgba(227,205,182,0.48),
    93vw 15vh 0 0 rgba(227,205,182,0.55),
    12vw 40vh 0 0 rgba(227,205,182,0.25),
    33vw 44vh 0 0 rgba(227,205,182,0.40);
}
.stars::after {
  box-shadow:
    9vw 30vh 0 0 rgba(227,205,182,0.22),
    22vw 16vh 0 0 rgba(227,205,182,0.50),
    31vw 33vh 0 0 rgba(227,205,182,0.26),
    43vw 11vh 0 0 rgba(227,205,182,0.58),
    52vw 25vh 0 0 rgba(227,205,182,0.30),
    63vw 38vh 0 0 rgba(227,205,182,0.24),
    71vw 18vh 0 0 rgba(227,205,182,0.46),
    81vw 32vh 0 0 rgba(227,205,182,0.28),
    89vw 42vh 0 0 rgba(227,205,182,0.36),
    97vw 24vh 0 0 rgba(227,205,182,0.42),
    3vw 22vh 0 0 rgba(227,205,182,0.40),
    50vw 6vh 0 0 rgba(227,205,182,0.52);
}
@media (prefers-reduced-motion: no-preference) {
  .stars { animation: sky-breathe 9s ease-in-out infinite; }
}
@keyframes sky-breathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 0.95; }
}

/* three static dune silhouettes: alpha masks tinted with dark browns */
.dunes { position: absolute; inset: 0; }
.dune {
  position: absolute;
  left: -2%; right: -2%;
  bottom: 0;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: bottom center;
  mask-position: bottom center;
  /* stretch, never crop: cover decapitates the crests on wide screens */
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.dune--far {
  height: min(22vh, 280px);
  background-color: var(--dune1);
  -webkit-mask-image: url(images/art/dune-far.webp);
  mask-image: url(images/art/dune-far.webp);
}
.dune--mid {
  height: min(17vh, 220px);
  background-color: var(--dune2);
  -webkit-mask-image: url(images/art/dune-mid.webp);
  mask-image: url(images/art/dune-mid.webp);
}
.dune--near {
  height: min(12vh, 160px);
  background-color: var(--dune3);
  -webkit-mask-image: url(images/art/dune-near.webp);
  mask-image: url(images/art/dune-near.webp);
}

/* =========================================================================
   NAV (brand row + links + CTA pill; no day-rail on sub-pages)
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--bd);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__brand img { border-radius: 8px; }
.nav__links {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a { color: var(--muted); transition: color 0.2s var(--ease); }
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }

/* primary CTA pill */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accentInk);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), filter 0.2s var(--ease);
}
.cta:hover { filter: brightness(1.06); box-shadow: 0 8px 26px -8px var(--glow); }
.cta:active { filter: brightness(0.94); }

/* =========================================================================
   PAGE SHELL + HEADER
   ========================================================================= */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(104px, 16vh, 168px) clamp(20px, 5vw, 40px) 40px;
}

/* generous page header: eyebrow + h1 + lede */
.page-head { margin-bottom: clamp(36px, 6vh, 60px); }
.page-head .eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
}
.page-head__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6.4vw, 3.9rem);
  line-height: 1.0;
  letter-spacing: -0.032em;
  max-width: 16ch;
}
.page-head__lede {
  margin-top: 22px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.3vw, 1.34rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}
.page-head .muted {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
}

/* =========================================================================
   PROSE
   ========================================================================= */
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: clamp(2.2rem, 5vh, 3rem);
  margin-bottom: 0.2em;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 1.8rem;
}

.prose p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--ink);
}
.prose p.muted { color: var(--muted); }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.prose a:hover { color: var(--ink); }

.prose ul {
  display: grid;
  gap: 0.6em;
  padding-left: 0;
}
.prose ul li {
  position: relative;
  padding-left: 1.4em;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15em; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.prose strong, .prose b { font-weight: 700; }

/* lede paragraph inside prose (an emphasised opening line) */
.prose__lede {
  font-size: 1.18rem !important;
  line-height: 1.55 !important;
  color: var(--muted) !important;
}

/* =========================================================================
   CARD SURFACES
   ========================================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 34px);
}

/* soft maker note: a quieter card with an accent edge */
.card--note {
  margin-top: clamp(32px, 6vh, 52px);
}
.card--note .card__by {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.card--note p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}

/* =========================================================================
   FOOTER (mirrors the homepage footer)
   ========================================================================= */
.foot {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--bg) 80%, #000 20%);
  border-top: 1px solid var(--bd);
  padding: 26px clamp(20px, 5vw, 40px) 34px;
  text-align: center;
  display: grid;
  gap: 8px;
}
.foot__made { color: var(--muted); font-size: 0.95rem; }
.foot__links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.foot__links a { color: var(--ink); transition: color 0.2s var(--ease); display: inline-block; padding: 4px; }
.foot__links a:hover { color: var(--accent); }
.foot__legal { font-size: 0.85rem; color: var(--muted); }
.foot__legal a { color: var(--muted); }
.foot__legal a:hover { color: var(--ink); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav__links { gap: 16px; }
}
@media (max-width: 480px) {
  .nav__links { display: none; }
  .cta { padding: 10px 18px; font-size: 0.9rem; }
}
@media (max-width: 360px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .nav { padding-left: 14px; padding-right: 14px; }
  .cta { padding: 9px 15px; }
  .prose p, .prose ul li { font-size: 1.0rem; }
}

/* ---- support cards ---- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; margin: 0 auto; }
@media (max-width: 620px) { .support-grid { grid-template-columns: 1fr; } }
.support-card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; padding: 20px; }
.support-card__icon svg { width: 26px; height: 26px; color: var(--accent); }
.support-card__body { display: flex; flex-direction: column; gap: 4px; }
.support-card__body b { font-family: var(--display); font-weight: 700; color: var(--ink); }
.support-card__body span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.support-card:hover { transform: translateY(-2px); }
.support-direct { text-align: center; margin-top: 28px; color: var(--muted); }
.support-direct a { color: var(--accent); }

/* reduced motion: no smooth-scroll jump on skip-link / in-page anchors */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
