/* 0. Fonts -------------------------------------------------------------- */
/* Archivo and Inter, SIL Open Font License, self-hosted -- no third-party
   font request. font-display:swap keeps text visible during load. Both are
   variable fonts: one file per family covers the whole declared weight
   range, so browsers instantiate 800/900 or 400/500/600 from the same
   download instead of fetching a separate file per weight. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800 900;
  font-display: swap; src: url("/assets/fonts/archivo-variable.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url("/assets/fonts/inter-variable.woff2") format("woff2"); }

/* ==========================================================================
   Rush Church — site.css
   1. Tokens      2. Reset      3. Typography    4. Layout
   5. Nav         6. Hero       7. Components    8. Footer      9. Utilities
   Single stylesheet by design: the site has no build step, so one request
   and one file to edit beats @import chains.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --ink:        #15151A;
  --paper:      #FAF7F2;
  --surface:    #FFFFFF;

  /* Three teals, not one. Brand teal is only 2.8 to 1 against paper, which
     fails WCAG AA for body text, so it is split by use:
       - teal:       fills and large display type only, never small text.
       - teal-deep:  small text on light backgrounds.
       - teal-light: text on dark backgrounds. */
  --teal:       #12A2BC;
  --teal-deep:  #0B6B7E;
  --teal-light: #4FD1E8;

  --muted:      #6E6A64;

  /* line is decorative only (a hairline around 1.2 to 1 on paper, below
     the 3 to 1 WCAG floor for non-text contrast). Do not rely on it to
     convey structure or state; pair it with a surface change or a label. */
  --line:       #E7E0D6;

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.8rem + 4vw, 5.2rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 68ch;
  --radius: 10px;
  --shell: 1180px;
}

/* 2. Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top offsets the sticky nav so anchor targets are not
   hidden behind it when jumping to an #anchor. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important; }
}
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 3px; }

/* 3. Typography --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900;
  letter-spacing: -0.035em; line-height: 0.95; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); text-transform: uppercase; }
h2 { font-size: var(--step-3); text-transform: uppercase; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1.15em; max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
/* Eyebrow labels sit a step above --step--1: the church found them too
   small to read at a glance (October 2026 review). */
.label { font-family: var(--font-body); font-weight: 800;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem); letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--teal-deep); margin: 0 0 1rem; display: block; }
/* Small bold text is the least forgiving over a photo -- a tight, fairly
   opaque shadow reads as a soft outline rather than a blur, and closes the
   remaining gap the scrim alone cannot without flattening the image. */
.label--on-dark { color: var(--teal-light);
  text-shadow: 0 0 3px rgba(10,10,11,0.95), 0 0 8px rgba(10,10,11,0.9),
    0 1px 2px rgba(10,10,11,0.95); }

/* 4. Layout ------------------------------------------------------------- */
.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 0.5rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.75rem 1rem;
  border-radius: var(--radius); }

/* 5. Nav ---------------------------------------------------------------- */
.nav { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; }
.nav__brand { font-family: var(--font-display); font-weight: 900;
  font-size: 3.5rem; letter-spacing: -0.04em; color: var(--paper);
  text-decoration: none; }
.nav__brand span[aria-hidden] { color: var(--teal); }
.nav__toggle { display: none; margin-left: auto; background: none;
  border: 1.5px solid #3A3A40; border-radius: var(--radius); cursor: pointer;
  width: 46px; height: 42px; position: relative; }
.nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after {
  content: ""; position: absolute; left: 12px; width: 20px; height: 2px;
  background: var(--paper); }
.nav__toggle-bar { top: 20px; }
.nav__toggle-bar::before { top: -6px; left: 0; }
.nav__toggle-bar::after { top: 6px; left: 0; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem;
  margin-left: auto; }
.nav__menu a { color: #B9B9BF; text-decoration: none; font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0.02em; }
.nav__menu a:hover { color: var(--paper); }
.nav__cta { color: var(--ink) !important; }

@media (max-width: 800px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; inset: 100% 0 auto; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 var(--gutter) 1.25rem; border-bottom: 1px solid #2A2A30; }
  .nav__menu a { padding: 0.9rem 0; border-top: 1px solid #26262C;
    font-size: var(--step-0); }
  .nav__cta { margin-top: 0.9rem; text-align: center; }
  /* Without JS the menu stays visible; with JS it collapses until opened. */
  .has-js .nav__menu { display: none; }
  .has-js .nav__menu.is-open { display: flex; }
}

/* 6. Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end;
  min-height: clamp(24rem, 62vh, 38rem); overflow: hidden; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; }
/* The new brighter photography (sky, projection screens, lit fellowship
   hall) can push well past white behind the top third of this gradient, so
   the ramp front-loads more than a plain top/bottom fade would: still light
   at 0% so the photo reads, most of the way to its final density by ~30%
   because that is where the kicker lands on some pages, then a gentle climb
   to a near-opaque base. Tuned against measured contrast (Playwright
   screenshots sampled for real rendered background luminance behind the
   kicker/h1/lede on every hero page), not guessed -- see the manual
   hero-contrast check in docs/HANDOFF.md, to be re-run whenever a hero
   photo changes. */
/* October 2026: lightened at the church's request (was 0.35/0.85/0.9/0.96,
   which read as too dark and hid the photos). The text-shadows on the
   kicker, h1 and lede now carry more of the legibility load. */
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(10,10,11,0.25),
    rgba(10,10,11,0.7) 28%, rgba(10,10,11,0.75) 45%,
    rgba(10,10,11,0.8)); }
.hero__inner { position: relative; z-index: 2; padding-block:
  clamp(2.5rem, 7vw, 4.5rem); }
.hero h1 { color: var(--paper); max-width: 16ch;
  text-shadow: 0 1px 3px rgba(10,10,11,0.55); }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero__lede { color: #D8D6D2; max-width: 46ch; font-size: var(--step-1);
  text-shadow: 0 1px 2px rgba(10,10,11,0.5); }

/* 7. Components --------------------------------------------------------- */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 800;
  font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.85rem 1.6rem; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; }
/* Ink label on teal: 6.0:1. White would be 3.0:1 and fail — see the spec. */
.btn--primary { background: var(--teal); color: var(--ink); }
.btn--primary:hover { background: var(--teal-light); }
.btn--ghost { border-color: rgba(255,255,255,0.45); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.time-card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.time-card__day { font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-2); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--teal-deep); }
.time-card__time { font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-3); letter-spacing: -0.045em; line-height: 1;
  margin: 0.35rem 0 0.25rem; }
.time-card__what { color: var(--muted); margin: 0; }
.time-card__more { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0;
  border-top: 1px solid var(--line); display: grid; gap: 0.3rem; }
.time-card__more strong { display: inline-block; min-width: 4.6em; }

/* A whole address block (h2 + city line) that opens Google Maps. Keeps the
   heading's look; the underline appears on hover/focus only. */
.address-link { display: block; color: inherit; text-decoration: none;
  width: fit-content; }
.address-link:hover h2, .address-link:focus-visible h2 { text-decoration: underline;
  text-decoration-thickness: 3px; text-underline-offset: 6px; }

.tile { position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; text-decoration: none; aspect-ratio: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 38%, rgba(10,10,11,0.82)); }
.tile__label { position: absolute; z-index: 2; left: 1rem; bottom: 0.9rem;
  color: #fff; font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-1); letter-spacing: -0.02em; }

.app-band { background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3rem);
  display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 720px) { .app-band { grid-template-columns: 1fr auto; } }
.app-band h2 { color: var(--teal-light); margin-bottom: 0.4rem; }
.app-band p { color: #C6C4C0; margin-bottom: 0; }
.app-band__icon { width: 96px; height: 96px; }
@media (min-width: 720px) {
  .app-band--icon { grid-template-columns: auto 1fr auto; } }

/* Visit > Find us: address + photo side by side, live map underneath. */
.find-us { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .find-us { grid-template-columns: 1fr 1fr; } }
.find-us__photo { width: 100%; height: auto; border-radius: var(--radius); }
.map-embed { margin-top: 2rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); height: clamp(300px, 45vw, 520px); }
/* A fixed clamp, not aspect-ratio + min-height: with both, the min-height
   feeds back through the ratio into a ~533px minimum width, which pushed
   the map off the right edge of phones and let the page scroll sideways. */
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.3rem; }
.card p:last-child { margin-bottom: 0; }

.missions__badge { width: 120px; height: 120px; object-fit: contain;
  margin-bottom: 1.1rem; }

.pastor { text-align: center; }
.pastor__monogram { width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 0.9rem; display: grid; place-items: center;
  background: var(--teal-deep); color: var(--paper); object-fit: cover;
  font-family: var(--font-display); font-weight: 900; font-size: 2rem; }
.pastor h3 { font-size: var(--step-1); margin-bottom: 0.15rem; }
.pastor p { color: var(--muted); margin: 0; }
/* One column on phones: at 92px the photos got lost in the single stack,
   so they grow there. Several sources are only ~112-134px, so these will
   look soft until the worship team's new headshots land (see FUTURE.md). */
@media (max-width: 559px) {
  .pastor__monogram { width: 150px; height: 150px; }
  #pastors .grid { gap: 2rem; }
}

/* Scripture quotations (ESV). figure > blockquote + figcaption so the
   reference is tied to the quote for assistive tech. */
.verse { margin: 1.5rem 0 0; padding-left: 1.1rem; max-width: var(--measure);
  border-left: 3px solid var(--teal); }
.verse blockquote { margin: 0; }
.verse p { font-style: italic; margin: 0; }
.verse figcaption { margin-top: 0.4rem; font-weight: 700;
  font-size: var(--step--1); color: var(--teal-deep); }
.card .verse { margin-top: 1rem; }
.section--ink .verse figcaption { color: var(--teal-light); }
.prose > * + * { margin-top: 1.1em; }
.belief { border-top: 1px solid var(--line); padding-top: 1.5rem;
  margin-top: 1.5rem; }
.belief h3 { color: var(--teal-deep); }
.belief__media { display: grid; gap: 1.25rem; align-items: start;
  margin-bottom: 1.15em; }
@media (min-width: 640px) { .belief__media { grid-template-columns: 3fr 2fr; } }
.belief__img { width: 100%; height: auto; border-radius: var(--radius);
  object-fit: cover; }

/* 8. Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: #B9B9BF;
  padding-block: clamp(2.5rem, 6vw, 4rem) 0; margin-top: auto; }
.footer__inner { display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer__logo { font-family: var(--font-display); font-weight: 900;
  font-size: 1.6rem; color: var(--paper); letter-spacing: -0.04em; }
.footer__logo span { color: var(--teal); }
.footer__address { margin-top: 0.6rem; }
.footer a { color: var(--teal-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid #26262C; margin-top: 2.5rem;
  padding-block: 1.25rem; font-size: var(--step--1); }
.footer__legal p { margin: 0; }

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