/* ==========================================================================
   Church of Jesus Christ in Zion
   Ported from the Claude Design source to static HTML. Breakpoint is 720px,
   matching the `window.innerWidth < 720` switch the original did in JS.
   ========================================================================== */

/* --- Fonts -----------------------------------------------------------------
   Self-hosted, extracted from the Claude Design bundle. Both families are
   variable fonts, so one file covers each weight range. `unicode-range` keeps
   latin-ext from downloading unless a page actually uses those characters. */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/eb-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/eb-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --ink: #2C333B;
  --ink-soft: #3E464F;
  --body: #4A525C;
  --muted: #5A626C;
  --muted-2: #6C747E;
  --faint: #8A929C;
  --faint-2: #9AA3AD;
  --accent: #64758A;
  --accent-pale: #7E8FA0;

  --bg: #F5F8FA;
  --bg-panel: #ECF1F5;
  --bg-card: #F7F9FB;
  /* Form fields and the contact notice — the palette's slate panel shade.
     This was a warm cream (#FBF9F4), the one warm value in a cool palette. */
  --bg-field: var(--bg-panel);

  --rule: #E3E8ED;
  --rule-2: #DBE2E8;
  --rule-3: #D7DFE6;
  --rule-soft: #DDE3E8;
  --rule-strong: #C6D0D9;
  --rule-deep: #B7C2CD;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 32px;
  --measure: 760px;
  --wide: 1080px;
  --widest: 1240px;
}

/* --- Base ----------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 20px/1.85 var(--serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

::selection { background: #DCE6EE; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg-card);
  padding: 12px 18px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  color: var(--bg-card);
}

/* --- Typography ----------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}

.page-title {
  margin: 0 0 32px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
}

.subhead {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 20px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  margin: 0 0 26px;
  font-size: 22px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: pretty;
}

p {
  margin: 0 0 26px;
  color: var(--body);
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }

.dim { color: var(--muted-2); }

.aside-note {
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  color: var(--muted-2);
}

blockquote {
  margin: 0 0 18px;
  padding-left: 26px;
  border-left: 1px solid var(--rule-strong);
}
blockquote p {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.7;
  font-style: italic;
  color: var(--ink);
}

cite {
  font: 400 12px/1 var(--sans);
  font-style: normal;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.pull {
  max-width: 640px;
  margin: clamp(56px, 7vw, 96px) auto;
  text-align: center;
}
.pull p {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
}

.rule-drop {
  width: 1px;
  height: 76px;
  background: var(--rule-soft);
  margin: 44px auto 0;
}

/* --- Layout --------------------------------------------------------------- */

.wrap        { max-width: var(--wide);   margin: 0 auto; }
.wrap-wide   { max-width: var(--widest); margin: 0 auto; }
.wrap-narrow { max-width: var(--measure); margin: 0 auto; }

.pad { padding-left: var(--gutter); padding-right: var(--gutter); }

.section {
  padding: clamp(56px, 6vw, 88px) var(--gutter);
}
.section--tall  { padding: clamp(64px, 7vw, 104px) var(--gutter); }
.section--taller{ padding: clamp(72px, 8vw, 120px) var(--gutter); }
.section--ruled { border-top: 1px solid var(--rule); }

.section--intro {
  padding: clamp(56px, 7vw, 104px) var(--gutter) 0;
}
.section--beliefs {
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  border-top: 1px solid var(--rule);
}

.section--panel {
  padding: clamp(64px, 7vw, 104px) var(--gutter);
  background: var(--bg-panel);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.centered { text-align: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--rule);
}

/* The frosted bar lives on a pseudo-element, not on .site-header itself.
   `backdrop-filter` would otherwise make the header the containing block for
   the fixed-position drawer inside it, pinning the drawer to the header box. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__bar {
  max-width: var(--widest);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  font: 400 17px/1 var(--serif);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); }

.nav a[aria-current='page'] {
  color: var(--accent);
  border-bottom-color: var(--rule-strong);
}

/* Menu button is hidden until the narrow layout needs it. */
.nav-toggle { display: none; }

/* The wordmark is the home link on the wide layout, so the nav omits it.
   In the narrow drawer the wordmark is covered, so Home reappears there. */
.nav-home { display: none; }

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

.hero { position: relative; }

.hero__frame {
  max-width: 1620px;
  margin: 0 auto;
  position: relative;
}

.hero__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.hero__copy {
  position: absolute;
  left: 26%;
  right: 26%;
  top: 6%;
  bottom: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(13px, 3.6vw, 58px);
  line-height: 1.34;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2F3640;
}

.hero__rule {
  width: 38%;
  height: 1px;
  background: var(--rule-deep);
  margin: clamp(8px, 2.3vw, 36px) 0;
}

.hero__motto {
  margin: 0;
  font-size: clamp(8px, 1.5vw, 24px);
  line-height: 1.6;
  font-style: italic;
  color: #5C6A78;
}

/* Banner strip that bleeds to the viewport edges on interior pages. */
.banner {
  margin: 0 max(calc(var(--gutter) * -1), calc((100% - 1440px) / 2)) clamp(56px, 7vw, 88px);
  height: clamp(220px, 34vw, 440px);
  border-bottom: 1px solid var(--rule-2);
  background: var(--bg-panel);
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Figures & media ------------------------------------------------------ */

figure { margin: 0; }

figcaption {
  margin: 12px 0 0;
  font: 400 15px/1.6 var(--serif);
  font-style: italic;
  color: var(--faint);
}

.framed {
  display: block;
  width: 100%;
  border: 1px solid var(--rule-2);
  background: var(--bg-panel);
  object-fit: cover;
}

.ratio-16-9  { aspect-ratio: 16 / 9; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-16-7  { aspect-ratio: 16 / 7; }
.ratio-5-4   { aspect-ratio: 5 / 4; }
.ratio-4-5   { aspect-ratio: 4 / 5; }

.pos-lower { object-position: center 62%; }
.pos-upper { object-position: center 32%; }
.pos-face  { object-position: center 38%; }

.media-pair {
  display: grid;
  gap: 20px;
}

.media-row {
  margin: clamp(36px, 4vw, 56px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* --- Home page film ------------------------------------------------------- */

/* The stage is a real link to the progressive MP4, so the film is reachable
   without JavaScript. video.js replaces it in place with a streaming player. */
.film__stage {
  position: relative;
  display: block;
  line-height: 0;
}

.film__poster {
  width: 100%;
}

.film__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(44, 51, 59, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

/* Solid triangle, drawn with borders so it needs no asset. */
.film__play::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 18px solid #FFFFFF;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.film__stage:hover .film__play {
  background: rgba(44, 51, 59, 0.4);
  transform: translate(-50%, -50%) scale(1.06);
}

.film__video {
  width: 100%;
  background: #000;
}

.film__error {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  color: var(--muted-2);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .film__play { transition: none; }
  .film__stage:hover .film__play { transform: translate(-50%, -50%); }
}

@media (max-width: 719px) {
  .film__play { width: 62px; height: 62px; }
  .film__play::before {
    border-left-width: 14px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
}

/* --- Film player chrome ---------------------------------------------------- */

.film__player {
  position: relative;
  background: #000;
  line-height: 0;
  border: 1px solid var(--rule-2);
}
.film__player:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* height:auto is load-bearing: the base `img { height: auto }` rule does not
   apply to <video>, so without it the height attribute is taken literally and
   the film letterboxes inside a too-tall box.

   The ratio starts at the poster's 16:9 so that swapping the stage for the
   player does not jump, then `video.js` overwrites --film-ratio from the real
   videoWidth/videoHeight once metadata lands. The film is not 16:9 — it is 3:2
   — and hardcoding 16:9 here pillarboxed it against the black background. */
.film__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--film-ratio, 16 / 9);
}

.film__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(20, 24, 29, 0.88), rgba(20, 24, 29, 0));
  opacity: 1;
  transition: opacity 0.2s ease;
  font: 400 12px/1 var(--sans);
  color: #FFFFFF;
}

/* Hidden while the film plays and the pointer is still. */
.film__player.is-idle .film__controls { opacity: 0; pointer-events: none; }
.film__player.is-idle { cursor: none; }

.film__btn {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 3px;
  color: #FFFFFF;
  cursor: pointer;
}
.film__btn svg { width: 22px; height: 22px; fill: currentColor; }
.film__btn:hover { background: rgba(255, 255, 255, 0.16); }
.film__btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 1px; }
.film__btn[disabled] { opacity: 0.55; cursor: default; }
.film__btn[disabled]:hover { background: none; }

.film__time {
  flex: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* --- Sliders ---
   Real <input type="range"> elements, so keyboard, drag, touch and the slider
   ARIA role all come from the platform rather than being reimplemented. */

.film__seek { position: relative; flex: 1 1 auto; display: flex; align-items: center; min-width: 0; }

.film__buffered {
  position: absolute;
  left: 0;
  height: 3px;
  width: 0;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.film__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  margin: 0;
  background: none;
  cursor: pointer;
}
.film__range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #FFFFFF var(--pct, 0%), rgba(255, 255, 255, 0.28) var(--pct, 0%));
}
.film__range::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #FFFFFF var(--pct, 0%), rgba(255, 255, 255, 0.28) var(--pct, 0%));
}
.film__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
}
.film__range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
}
.film__range:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 4px; border-radius: 2px; }

.film__volume { display: flex; align-items: center; gap: 6px; flex: none; }
.film__range--vol { width: 74px; }

/* --- Quality menu --- */

.film__quality { position: relative; flex: none; }

.film__btn--quality {
  width: auto;
  min-width: 46px;
  padding: 0 10px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.film__quality-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  margin: 0;
  padding: 5px 0;
  list-style: none;
  min-width: 118px;
  background: rgba(20, 24, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.film__quality-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: 0;
  color: #FFFFFF;
  font: 400 13px/1 var(--sans);
  text-align: left;
  cursor: pointer;
}
.film__quality-item:hover { background: rgba(255, 255, 255, 0.14); }
.film__quality-item:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -2px; }

/* Check mark reserves its slot always, so labels never shift on selection. */
.film__quality-item::before {
  content: '';
  width: 12px;
  flex: none;
  opacity: 0;
}
.film__quality-item[aria-checked='true']::before { content: '\2713'; opacity: 1; }

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

@media (max-width: 719px) {
  .film__controls { gap: 8px; padding: 10px; }
  .film__volume { display: none; }        /* device buttons own volume on mobile */
  .film__time { font-size: 11px; }
  .film__btn { width: 30px; height: 30px; }
  .film__btn svg { width: 19px; height: 19px; }
}

/* --- Buttons & links ------------------------------------------------------ */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg-card);
  padding: 16px 34px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: 16px 30px;
  border: 1px solid #C9C0A9;
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-underline {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

/* --- The document panel --------------------------------------------------- */

.doc-cover {
  aspect-ratio: 3 / 4;
  max-width: 340px;
  width: 100%;
  justify-self: center;
  background: var(--bg-card);
  border: 1px solid var(--rule-3);
  box-shadow: 0 22px 50px rgba(44, 51, 59, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 36px;
}
.doc-cover__mark {
  margin: 0;
  font: 500 9px/1.8 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-pale);
}
.doc-cover__mark--top    { margin-bottom: auto; }
.doc-cover__mark--bottom { margin-top: auto; letter-spacing: 0.22em; }
.doc-cover__title {
  margin: 0;
  font: 400 32px/1.2 var(--serif);
  color: var(--ink);
}
.doc-cover__rule {
  width: 48px;
  height: 1px;
  background: var(--rule-deep);
  margin: 24px auto;
}
.doc-cover__sub {
  margin: 0;
  font: 400 16px/1.6 var(--serif);
  font-style: italic;
  color: var(--muted-2);
}

/* The document section stacks at the site breakpoint, not at the 636px where
   .duo's own auto-fit would collapse it — otherwise the centring below would
   land while the two columns were still side by side. */
@media (max-width: 719px) {
  .duo--doc {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --- Beliefs / gathering list --------------------------------------------- */

.entry {
  border-top: 1px solid var(--rule);
  padding: 38px 0;
}
.entry:last-child { padding-bottom: 0; }

.points {
  display: grid;
  gap: 26px;
}
.points p:first-child {
  margin: 0 0 6px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.points p:last-child {
  margin: 0;
  font-size: 19px;
  line-height: 1.75;
}

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

/* The form is delivered by a JSON-only endpoint, so contact.js is not an
   enhancement here — a plain post cannot reach it. Hidden until the inline
   `.js` class is set, rather than offering a control that cannot work; the
   .form-noscript notice stands in its place. This is the one place on the site
   where something is withheld without script. */
.contact { display: none; }

.js .contact {
  display: block;
  margin: clamp(48px, 6vw, 80px) auto 0;
  max-width: 640px;
  border-top: 1px solid var(--rule);
  padding-top: clamp(36px, 4vw, 56px);
}

.form-noscript {
  margin: clamp(48px, 6vw, 80px) auto 0;
  max-width: 640px;
  padding: 14px 18px;
  background: var(--bg-field);
  border-left: 3px solid var(--rule-3);
  font: 400 18px/1.65 var(--serif);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.field-set {
  display: grid;
  gap: 20px;
  border: 0;
  margin: 0;
  padding: 0;
}

.field { display: block; }

.field > span {
  display: block;
  margin-bottom: 8px;
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.field input[type='text'],
.field input[type='email'],
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-field);
  border: 1px solid var(--rule-3);
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
}
.field textarea { resize: vertical; }

.field--check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.field--check input {
  margin: 3px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
  flex: none;
}
.field--check span {
  font: 400 19px/1.6 var(--serif);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.form-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Revealed by contact.js when a letter is refused. */
.form-status {
  margin: 24px 0 0;
  padding: 14px 18px;
  background: #FBF1F1;
  border-left: 3px solid #903134;
  font: 400 18px/1.65 var(--serif);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.form-status[hidden] { display: none; }
.form-status:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(40px, 5vw, 64px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  align-items: start;
}

.site-footer__name {
  margin: 0 0 12px;
  font: 400 17px/1.4 var(--serif);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer__place {
  margin: 0;
  font: 400 18px/1.7 var(--serif);
  font-style: italic;
  color: var(--muted-2);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.site-footer__nav a {
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__nav a:hover { color: var(--accent); }

.site-footer__verse {
  margin: 0 0 14px;
  font: 400 19px/1.75 var(--serif);
  font-style: italic;
  color: var(--body);
}

.site-footer__ref {
  margin: 0;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer__legal {
  margin: clamp(40px, 5vw, 64px) 0 0;
  font: 400 12px/1.6 var(--sans);
  letter-spacing: 0.1em;
  color: var(--faint-2);
}

/* ==========================================================================
   Narrow layout (< 720px) — replaces the original's JS `isNarrow` switch.
   ========================================================================== */

@media (max-width: 719px) {
  :root { --gutter: 18px; }

  body { font-size: 18px; }

  .site-header__bar {
    padding: 0 8px 0 18px;
    min-height: 58px;
    gap: 12px;
  }

  .wordmark { font-size: 14px; letter-spacing: 0.16em; }

  /* Without JS the links simply wrap under the wordmark — always reachable. */
  .nav {
    flex-wrap: wrap;
    gap: 14px 20px;
    padding-bottom: 12px;
  }

  .hero__img {
    -webkit-mask-image: none;
            mask-image: none;
    object-fit: cover;
  }

  .hero__copy {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 15%;
  }

  .hero__title {
    font-size: clamp(20px, 5.8vw, 29px);
    line-height: 1.36;
    letter-spacing: 0.14em;
  }

  .hero__rule { width: 46px; margin: 17px 0; }

  .hero__motto { font-size: clamp(12px, 3.5vw, 15px); line-height: 1.5; }

  .lede { font-size: 19px; }

  .link-row { gap: 18px; }
}

/* With JS the narrow header collapses to a drawer, as the design intends. */
@media (max-width: 719px) {
  .js .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    flex: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .js .nav-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--ink);
  }

  .js .site-header__bar {
    flex-wrap: nowrap;
    align-items: center;
  }

  .js .nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 80%;
    max-width: 310px;
    left: auto;
    background: var(--bg);
    border-left: 1px solid var(--rule);
    padding: 76px 26px 32px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }

  .js .nav[data-open='true'] { transform: translateX(0); }

  .js .nav a {
    font: 400 19px/1.2 var(--serif);
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
    padding: 15px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 0;
  }
  .js .nav a:last-of-type { border-bottom: 1px solid var(--rule); }
  .js .nav-home { display: block; }

  .js .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(44, 51, 59, 0.32);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .js .nav-close {
    position: absolute;
    top: 20px;
    right: 26px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 400 22px/1 var(--serif);
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
  }
}

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

/* The drawer chrome never appears on the wide layout. */
@media (min-width: 720px) {
  .nav-scrim,
  .nav-close { display: none; }
}

@media print {
  .site-header,
  .skip-link,
  .nav-scrim { display: none; }
  body { background: #FFFFFF; }
}
