/* trustinthelordwithallyourheart.org — hero-verse-accordion
   Palette: parchment-and-forest. Ornament: accordion chevrons.
   Written for this site alone.

   TYPE NOTE. The matrix assigns DM Serif Display and Manrope, self-hosted
   and subset. Until the licence of specific downloadable artifacts has been
   verified for redistribution and subsetting, this build declares no
   @font-face and ships no binaries; the stacks below approximate the two
   voices with locally installed faces. Verified files replace them in a
   follow-up, per the fleet's pre-deployment checklist. */

:root {
  --parchment: #f5eedc;
  --parchment-shade: #e7dcbe;
  --forest: #1f4430;
  --moss: #45684f;
  --bark: #33301f;
  --line: 36rem;
  --serif-display: "Playfair Display", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--bark);
  font-family: var(--sans-body);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.16rem);
  line-height: 1.62;
}

.trailhead {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--forest);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.trailhead a { color: var(--parchment); text-decoration: none; }
.trailhead a:hover, .trailhead a:focus { text-decoration: underline; text-underline-offset: 0.2em; }
.trailhead [aria-current="page"] {
  color: #ffe9a8;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.canopy {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem 0.5rem;
}
.canopy h1 {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--forest);
  font-size: clamp(1.8rem, 1.3rem + 2.8vw, 3.1rem);
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto 0.8rem;
}
.canopy .whisper {
  max-width: 52ch;
  margin: 0 auto;
  color: #57513a;
  font-size: 1.04rem;
}

/* the hero verse: the page leads with the words themselves */
.inscribed {
  display: block;
  max-width: var(--line);
  margin: 1.75rem auto;
  padding: 1.5rem 1.75rem;
  background: #fffdf4;
  border: 1px solid var(--parchment-shade);
  border-radius: 0.35rem;
  box-shadow: 0 2px 0 var(--parchment-shade);
  font-family: var(--serif-display);
  font-size: 1.22rem;
  line-height: 1.5;
  text-align: center;
}
.inscribed .whence {
  display: block;
  font-family: var(--sans-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: 0.7rem;
}

.counsel {
  max-width: var(--line);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
}
.counsel h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--forest);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  margin: 2.25rem 0 0.6rem;
}
.counsel p { margin: 0 0 1.1rem; }
.counsel q { quotes: "\2018" "\2019"; font-style: italic; }
.counsel q::before, .counsel q::after { color: var(--moss); font-style: normal; }

/* the accordion: answers present in the HTML, folded until wanted */
.clause {
  border-top: 1px solid var(--parchment-shade);
  padding: 0.15rem 0;
}
.clause:last-of-type { border-bottom: 1px solid var(--parchment-shade); }
.clause > summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 0.85rem 2.2rem 0.85rem 0.1rem;
  font-weight: 600;
  color: var(--forest);
}
.clause > summary::-webkit-details-marker { display: none; }
.clause > summary::after {
  /* the chevron of this site */
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2.5px solid var(--moss);
  border-bottom: 2.5px solid var(--moss);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 140ms ease;
}
.clause[open] > summary::after { transform: translateY(-35%) rotate(225deg); }
.clause .unfolding { padding: 0 0.1rem 1.1rem; }
.clause .unfolding p { margin: 0 0 0.9rem; }
.clause .unfolding p:last-child { margin-bottom: 0; }

.bench {
  max-width: var(--line);
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--forest);
  color: var(--parchment);
  border-radius: 0.35rem;
  text-align: center;
}
.bench p { margin: 0 0 0.35rem; font-size: 0.98rem; }
.bench a {
  color: #ffe9a8;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.undergrowth {
  background: var(--parchment-shade);
  color: #4c452c;
  font-size: 0.84rem;
  padding: 1.5rem 1.25rem 2rem;
}
.undergrowth p { max-width: 46rem; margin: 0 auto; }
