/* ==========================================================================
   Prayer for Caregivers — site styles
   Plain CSS, no build step. Colours and type live in the tokens below.
   ========================================================================== */

/* ---- Fonts (self-hosted; no third-party requests) ---------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@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-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --plum-950: #2a1225;
  --plum-900: #3a1a33;
  --plum-800: #4d2444;
  --plum-700: #633058;
  --plum-500: #8a5a7e;
  --plum-100: #efe4ea;
  --plum-50:  #f7f1f3;

  --paper: #fbf8f4;
  --stone-100: #f1ebe6;
  --rose: #c9768e;
  --ink: #2b2129;
  --ink-soft: #594c56;
  --rule: #e2d6d8;
  --on-plum: #ffffff;
  --on-plum-soft: #eadde5;
  --focus: #633058;
  --focus-on-dark: #f4d9a6;

  /* Hero overlay: deep plum laid over the plum-toned photo so white text
     stays legible. At 0.45, white text measures at least 6.6:1 and the
     lighter lede 5.1:1 over the photo's brightest highlight. Raise the alpha
     if the photo is replaced with a lighter one. */
  --hero-overlay: rgba(52, 22, 45, 0.45);

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-section: clamp(2rem, 4vw, 3.25rem);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 3.2vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.45rem, 1vw + 1.1rem, 1.7rem); margin-top: 2.2em; }

p { margin: 0 0 1.1em; }

a {
  color: var(--plum-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--plum-900); text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Skip link --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--plum-900);
  color: var(--on-plum);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; outline-color: var(--focus); }

/* ---- Wordmark ---------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--plum-900);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--plum-900); }
.wordmark__for {
  font-style: italic;
  font-weight: 500;
  font-size: 0.82em;
  color: var(--plum-500);
  /* small optical lift so the italic sits on the shared baseline gracefully */
  transform: translateY(-0.02em);
}

/* ---- Header ------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}
.site-nav { display: flex; align-items: center; gap: 0.5rem 1.75rem; flex-wrap: wrap; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--plum-500); }
.site-nav a.register-link,
.site-nav a.register-link:hover { color: var(--on-plum); border-bottom: 0; padding-block: 0.6rem; }

/* ---- Register link (button-style) -------------------------------------- */
.register-link {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  background: var(--plum-800);
  color: var(--on-plum);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.15s ease;
}
.register-link:hover { background: var(--plum-950); color: var(--on-plum); text-decoration: none; }
.register-link--large { padding: 0.85rem 1.5rem; font-size: 1.0625rem; }

@media (prefers-reduced-motion: reduce) {
  .register-link { transition: none; }
}

@media (max-width: 40rem) {
  .site-header__inner { padding-block: 0.9rem; }
  .wordmark { font-size: 1.4rem; }
  .site-nav { width: 100%; justify-content: space-between; }
  .site-nav ul { gap: 0.25rem 1.25rem; }
  .site-nav a.register-link { padding: 0.5rem 0.9rem; font-size: 0.95rem; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 72vh, 44rem);
  /* Matches the photo's own dark edge colour (#261022) so, on wide screens
     where the photo fills only the right side, there is no visible seam. The
     plum overlay below sits on top of both. */
  background-color: #261022;
  color: var(--on-plum);
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
/* Wide screens: show the whole pair of hands on the right instead of
   stretching the portrait photo across the full width. */
@media (min-width: 52rem) {
  .hero__image {
    left: auto;
    right: 0;
    width: min(56%, 54rem);
    object-position: center 42%;
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
}
.hero__content {
  padding-block: clamp(3rem, 10vw, 6rem);
}
.hero h1 {
  max-width: 14ch;
  margin-bottom: 0.45em;
  font-size: clamp(2.75rem, 6vw + 1rem, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.hero__lede {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3rem);
  color: var(--on-plum-soft);
}
.hero__when {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  max-width: 30rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--on-plum);
}
.hero :focus-visible { outline-color: var(--focus-on-dark); }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: var(--space-section); scroll-margin-top: 1rem; }
.section + .section { border-top: 1px solid var(--rule); }

.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum-700);
}

/* Prayer call details */
.call {
  display: grid;
  gap: 2.5rem 5rem;
}
@media (min-width: 52rem) {
  .call { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.call__intro p { max-width: var(--measure); }

.details { margin: 0 0 2rem; }
.details div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}
.details div:last-child { border-bottom: 1px solid var(--rule); }
.details dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.3rem;
}
.details dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
}
.details dd span { display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink-soft); }

.note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.9rem; }

/* Scripture: left-aligned, label + short rule, lead line in italics */
.scripture {
  background: var(--stone-100);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.scripture__label {
  margin: 0 0 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-900);
}
.scripture__label::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 0.85rem;
  background: var(--rose);
}
.scripture figure { margin: 0; max-width: 46rem; }
.scripture blockquote { margin: 0; }
.scripture__lead {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 2.6vw + 1.1rem, 2.85rem);
  line-height: 1.15;
  color: var(--plum-900);
  text-wrap: balance;
}
.scripture__rest {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.65rem);
  line-height: 1.4;
  color: var(--plum-900);
}
.scripture figcaption {
  margin-top: 1.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scripture figcaption abbr { text-decoration: none; }
.closing figcaption {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.closing figcaption abbr { text-decoration: none; }

/* Welcome */
.welcome {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .welcome { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.welcome__body { max-width: var(--measure); }
.welcome__image { width: 100%; height: auto; }
.welcome__body p:first-of-type { font-size: 1.15em; }

/* Closing */
.closing { background: var(--plum-900); color: var(--on-plum); text-align: center; }
.closing + .site-footer { border-top: 0; }
.closing figure { margin: 0 auto 2.5rem; max-width: 36rem; }
.closing blockquote { margin: 0; }
.closing blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2.2rem);
  line-height: 1.3;
  text-wrap: balance;
}
.closing figcaption { color: var(--on-plum-soft); }
.closing a { color: var(--on-plum); }
.closing :focus-visible { outline-color: var(--focus-on-dark); }
.closing .register-link { background: var(--paper); color: var(--plum-900); }
.closing .register-link:hover { background: var(--plum-100); color: var(--plum-950); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer .wordmark { font-size: 1.2rem; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--ink-soft); }
/* Comfortable tap targets (44px+) for the footer links and both wordmarks */
.site-footer ul a { display: inline-block; padding-block: 0.65rem; }
.wordmark { padding-block: 0.6rem; }
.site-footer a:hover { color: var(--plum-900); }
.site-footer a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }
.site-footer small { display: block; width: 100%; font-size: 0.875rem; }

/* ---- Inner pages (policy) ---------------------------------------------- */
.page { padding-block: clamp(2.5rem, 7vw, 5rem) var(--space-section); }
.page__header { max-width: var(--measure); margin-bottom: 2.5rem; }
.page__header h1 { font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem); margin-bottom: 0.3em; }
.page__meta { color: var(--ink-soft); font-size: 0.95rem; }
.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose h2 { font-size: clamp(1.7rem, 1.5vw + 1.1rem, 2.1rem); margin-top: 2.4em; }

/* ---- Owner-review placeholders ------------------------------------------
   Every placeholder uses this class so it is easy to find (search the code
   for "placeholder") and impossible to miss on the page. Remove them all
   before launch. */
.placeholder {
  background: #fff1c2;
  color: #3d2c00;
  padding: 0.05em 0.3em;
  border-radius: 2px;
  outline: 1px dashed #a07a00;
  outline-offset: 0;
  font-style: normal;
}
.review-note {
  max-width: var(--measure);
  margin: 0 0 2.5rem;
  padding: 1rem 1.25rem;
  background: #fff8de;
  border-left: 4px solid #a07a00;
  color: #3d2c00;
  font-size: 0.975rem;
}
.review-note p:last-child { margin-bottom: 0; }

/* ---- Print ------------------------------------------------------------- */
@media print {
  .site-header nav, .skip-link, .hero__image { display: none; }
  .hero, .closing { background: none; color: #000; }
  .hero::before { display: none; }
}

/* "LORD" set in small capitals, as in printed editions of the KJV */
.lord { font-variant: small-caps; }
