/* The Promise Church redesign concept: shared tokens and components */

:root {
  /* palette: pulled from their photography (warm stage light on dark rooms) and the PNW */
  --soil: #1d1916;
  --soil-2: #2a2420;
  --soil-3: #3a332d;
  --fog: #e6e8e2;
  --paper: #f5f6f2;
  --fir: #22332b;
  --lantern: #d49a45;
  --lantern-deep: #a8722a;
  --rain: #4bb3a1;
  --ink: #1d1916;
  --ink-soft: #5d5952;
  --on-dark: #f3efe8;
  --on-dark-soft: #b9b1a6;
  --line-dark: rgba(243, 239, 232, 0.14);
  --line-light: rgba(29, 25, 22, 0.14);

  --font: "Archivo", system-ui, sans-serif;
  --wide: 125%;
  --semi: 112%;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-5: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);
  --step-6: clamp(3rem, 1.2rem + 7.4vw, 8rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius-s: 6px;
  --radius-m: 14px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

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

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

.display {
  font-stretch: var(--wide);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-stretch: var(--wide);
  font-weight: 750;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-stretch: var(--semi);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.15;
  margin: 0;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 34em;
  margin: 0;
}

.muted { color: var(--ink-soft); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  font-weight: 650;
  font-size: var(--step--1);
  font-stretch: var(--semi);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}
.btn-lantern { background: var(--lantern); color: var(--soil); }
.btn-lantern:hover { background: #e2ab58; }
.btn-ghost-light { border-color: rgba(243, 239, 232, 0.5); color: var(--on-dark); }
.btn-ghost-light:hover { background: var(--on-dark); color: var(--soil); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }

.text-link {
  font-weight: 650;
  font-stretch: var(--semi);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--lantern-deep); }

/* concept ribbon so nobody mistakes the mockup for the live site */
.concept-ribbon {
  background: var(--rain);
  color: var(--soil);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  padding: 6px var(--gutter);
}
.concept-ribbon a { font-weight: 700; }

/* header */
.site-header {
  position: absolute;
  inset: auto 0 auto 0;
  z-index: 10;
  color: var(--on-dark);
}
.site-header.is-solid {
  position: relative;
  background: var(--soil);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.wordmark small {
  font-size: 0.68rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.02em;
  opacity: 0.7;
  margin-top: 5px;
}
.main-nav {
  display: flex;
  gap: 26px;
  font-size: 0.9375rem;
  font-weight: 550;
}
.main-nav a { text-decoration: none; opacity: 0.88; }
.main-nav a:hover,
.main-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--lantern); }
.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid rgba(243, 239, 232, 0.4);
  color: inherit;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.875rem;
}

@media (max-width: 1060px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .menu-btn { display: inline-block; }
}

/* footer */
.site-footer {
  background: var(--soil);
  color: var(--on-dark-soft);
  padding: 80px 0 40px;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.site-footer h3 {
  color: var(--on-dark);
  font-stretch: var(--semi);
  font-size: 1rem;
  margin: 0 0 14px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-big {
  color: var(--on-dark);
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.05;
  margin: 0 0 18px;
}
.footer-base {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* flyers come in every shape and style, so they sit inside a calm frame
   over a blurred copy of themselves instead of being cropped */
.flyer-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soil-2);
}
.flyer-frame .blur {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; filter: blur(36px) saturate(1.2) brightness(0.6);
}
.flyer-frame .flyer {
  position: relative; height: 100%; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain;
}

/* motion lives only inside no-preference queries, so reduced-motion users get none */
