/* Ways of the Kingdom — landing page
   Plain CSS. Edit this and index.html directly; there is no build step. */

/* ---------------------------------------------------------------- fonts --
   Self-hosted so the page has no third-party requests. latin + latin-ext
   only; the course is English. Add a subset here if that ever changes. */
@font-face { font-family: Oswald; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(../fonts/oswald-normal-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: Oswald; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(../fonts/oswald-normal-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: Jost; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/jost-normal-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: Jost; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/jost-normal-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 500; 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: 'EB Garamond'; font-style: italic; font-weight: 400 500; 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: 'Pirata One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pirata-one-normal-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: 'Pirata One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pirata-one-normal-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; }

/* --------------------------------------------------------------- tokens -- */
:root {
  --paper:      #EFEAE2;   /* page ground */
  --paper-deep: #E5DFD4;   /* alternating sections, card hover */
  --ink:        #14120F;   /* headings, dark sections */
  --body:       #413B34;   /* body copy on paper */
  --body-dim:   #5A544C;
  --body-faint: #6B655C;
  --red:        #8C2B1B;   /* accent on paper */
  --red-bright: #C9552F;   /* accent on ink — needs the extra lift */

  --rule:       rgba(20, 18, 15, .16);
  --rule-soft:  rgba(20, 18, 15, .12);
  --on-ink:      rgba(239, 234, 226, .78);
  --on-ink-dim:  rgba(239, 234, 226, .6);
  --rule-on-ink: rgba(239, 234, 226, .16);

  --display: Oswald, 'Arial Narrow', sans-serif;
  --script:  'Pirata One', Oswald, serif;
  --serif:   'EB Garamond', Georgia, serif;
  --sans:    Jost, system-ui, sans-serif;

  --page:   1200px;
  --gutter: 28px;
  --ease:   cubic-bezier(.2, .7, .3, 1);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: #6E1F12; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* -------------------------------------------------------------- layout -- */
.wrap    { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
[id]     { scroll-margin-top: 76px; }   /* clear the sticky masthead */
.section { padding: 88px 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--deep { background: var(--paper-deep); border-top: 1px solid rgba(20,18,15,.14); }
.section--ruled { border-top: 1px solid rgba(20,18,15,.14); border-bottom: 1px solid rgba(20,18,15,.14); }

/* two-column split, collapsing to one on narrow screens */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: start; }
.split--hero   { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; }
.split--author { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 56px; }
.split--videos { align-items: center; }

/* ------------------------------------------------------------- eyebrow -- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--red); }
.eyebrow span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 500; }
.section--ink .eyebrow::before { background: var(--red-bright); }
.section--ink .eyebrow span { color: var(--red-bright); }

/* ---------------------------------------------------------- typography -- */
.h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(32px, 3.6vw, 50px); line-height: 1.02; margin: 0;
}
.h2--wide  { font-size: clamp(36px, 4vw, 56px); line-height: 1.02; }
.h2--tight { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; max-width: 20ch; }
.lede  { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 46ch; margin: 0; text-wrap: pretty; }
.prose { font-size: 18px; line-height: 1.62; color: var(--body); max-width: 58ch; margin: 0 0 20px; text-wrap: pretty; }
.prose:last-child { margin-bottom: 0; }
.section--ink .lede { color: var(--on-ink); }

/* ---------------------------------------------------------------- head -- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 234, 226, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.masthead__bar { display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); max-width: var(--page); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--ink); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.15; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--red); }

.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  background: none; border: 1px solid rgba(20,18,15,.3); color: var(--ink);
  min-height: 44px; padding: 0 16px; cursor: pointer;
}
.drawer { display: none; border-top: 1px solid var(--rule-soft); background: var(--paper); }
.drawer[hidden] { display: none; }
.drawer a {
  display: flex; align-items: center; min-height: 52px; padding: 0 20px;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); font-weight: 500; border-bottom: 1px solid rgba(20,18,15,.1);
}
.drawer a:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- hero --
   One <h1> holding two lines: the spans carry the two faces, so the heading
   stays a single heading for screen readers and search engines. */
.hero { padding: 80px 0 72px; }
h1 { margin: 0; }
.hero__title, .hero__script { display: block; }
.hero__title { font-family: var(--display); font-weight: 600; font-size: clamp(44px,5.2vw,74px); line-height: .98; letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 8px; }
.hero__script { font-family: var(--script); font-weight: 400; font-size: clamp(52px,6.4vw,92px); line-height: .92; margin: 0 0 26px; color: var(--ink); }
.hero__verse { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--red); margin: 0 0 22px; }
.hero__body { font-size: 18px; line-height: 1.62; color: var(--body); margin: 0 0 30px; max-width: 52ch; text-wrap: pretty; }

/* the three facts under the hero; the middle one is a link */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(20,18,15,.3); color: var(--ink); padding: 11px 18px;
  display: inline-flex; align-items: center;
}
.pill--link {
  border-color: var(--red); color: var(--red); gap: 9px;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.pill--link:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

/* -------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 500; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); border: 1px solid var(--ink); color: var(--paper);
  padding: 0 26px; min-height: 52px;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn__note { font-size: 15px; line-height: 1.55; color: rgba(20,18,15,.58); margin: 14px 0 0; max-width: 42ch; }

/* ------------------------------------------------------------- churches --
   Hairline grid: a 1px gap over a ruled background draws the dividers. */
.cards { display: grid; gap: 1px; background: var(--rule-on-ink); border: 1px solid var(--rule-on-ink); }
.card { background: var(--ink); padding: 24px 26px; }
.card__title { font-family: var(--display); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.card__body  { font-size: 15px; line-height: 1.55; color: var(--on-ink-dim); }

/* ---------------------------------------------------------------- weeks -- */
.weeks__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.weeks__note { font-size: 17px; line-height: 1.6; color: var(--body-dim); margin: 0; max-width: 38ch; }
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.week { background: var(--paper); padding: 30px 26px 34px; min-height: 190px; display: flex; flex-direction: column; transition: background .15s var(--ease); }
.week:hover { background: var(--paper-deep); }
.week__no { font-family: var(--display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: auto; }
.week__title { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.14; margin: 24px 0 0; text-transform: uppercase; }

/* ------------------------------------------------------------- outcomes -- */
.outcomes { display: grid; max-width: 900px; }
.outcome { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(20,18,15,.14); }
.outcome__no { font-family: var(--display); font-size: 14px; color: var(--red); letter-spacing: .1em; padding-top: 4px; }
.outcome p { margin: 0; font-size: 17px; line-height: 1.55; color: #332E28; text-wrap: pretty; }

/* --------------------------------------------------------------- stats -- */
.stats { background: var(--ink); padding: 40px; display: grid; gap: 22px; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; }
.stat__no { font-family: var(--display); font-size: 34px; color: var(--red-bright); line-height: 1; }
.stat__title { font-family: var(--display); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }
.stat__body { font-size: 15px; color: var(--on-ink-dim); }
.stats hr { border: 0; height: 1px; background: var(--rule-on-ink); margin: 0; }

/* ---------------------------------------------------------- testimonies -- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.quote { margin: 0; border-top: 2px solid var(--red); padding: 26px 0 0; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.42; color: var(--ink); margin: 0 0 20px; text-wrap: pretty; }
.quote footer { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--body-faint); }

/* -------------------------------------------------------------- author -- */
.author__portrait { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 20%; }

/* -------------------------------------------------------------- closing -- */
.closing { text-align: center; padding: 96px 0; }
.closing__crest { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 28px; filter: invert(1) brightness(1.6); }
.closing__title { font-family: var(--display); font-weight: 600; font-size: clamp(34px,4.2vw,60px); line-height: 1; text-transform: uppercase; margin: 0 0 6px; }
.closing__verse { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--red-bright); margin: 0 0 26px; }
.closing__body  { font-size: 17px; line-height: 1.6; color: rgba(239,234,226,.7); margin: 0 auto; max-width: 46ch; text-wrap: pretty; }
.closing__body a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }

.colophon { border-top: 1px solid var(--rule-on-ink); }
.colophon__bar { max-width: var(--page); margin: 0 auto; padding: 34px var(--gutter); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.colophon span { font-size: 14px; color: rgba(239,234,226,.5); }
.colophon a { font-size: 14px; color: rgba(239,234,226,.75); }
.colophon a:hover { color: var(--red-bright); }

/* ----------------------------------------------------------- spacing -- */
.mb-22 { margin-bottom: 22px; }
.mb-24 { margin-bottom: 24px; }
.mb-30 { margin-bottom: 30px; }
.mb-46 { margin-bottom: 46px; }
.mt-32 { margin-top: 32px; }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1080px) {
  .weeks { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .drawer:not([hidden]) { display: block; }
  .split, .split--hero, .split--author { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .quotes { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .hero__media { order: -1; }
}
@media (max-width: 560px) {
  .weeks { grid-template-columns: minmax(0,1fr); }
}
