/* GNOI Ponggo · Apple-style: white and light-grey bands, near-black type, one blue accent, big rounded tiles.
   Tokens first (the motion layer and the two moments read --ink, --bg, --action, --s-*, --t-*). */
:root {
  --blue: #1E4FD8;            /* the church's royal blue, used as the single accent */
  --blue-hover: #1843B8;
  --sky: #5B8CFF;              /* lighter blues for gradients and icons on the black tiles */
  --sky-2: #A9C4FF;

  --bg: #ffffff;
  --grey: #f5f5f7;
  --surface: #ffffff;
  --surface-2: var(--grey);
  --card: #ffffff;
  --tile-dark: #1d1d1f;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --dim: #86868b;
  --line: #d2d2d7;
  --line-strong: #b0b0b8;
  --accent: var(--blue);
  --action: var(--blue);
  --action-ink: #ffffff;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text: var(--font-display);
  --display-weight: 700;
  --display-tracking: -.028em;

  --t-hero: clamp(52px, 8.4vw, 112px);
  --t-h2: clamp(40px, 5.6vw, 72px);
  --t-h3: 24px;
  --t-lead: clamp(19px, 1.9vw, 24px);
  --t-small: 14px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-btn: 980px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1100px;
  --max-wide: 1440px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 52px;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--font-text); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .3s, color .3s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: var(--display-weight) var(--t-hero)/1.02 var(--font-display); letter-spacing: -.035em; }
h2 { font: var(--display-weight) var(--t-h2)/1.05 var(--font-display); letter-spacing: var(--display-tracking); }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
.dim { color: var(--dim); }
.center { text-align: center; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--max-wide) + var(--gutter) * 2); }
.wrap--text { max-width: calc(980px + var(--gutter) * 2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--action); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--blue); margin-bottom: 14px; }
.eyebrow--plain { color: var(--muted); }

/* buttons and links: Apple's pill and "Learn more ›" link (the motion layer adds the hover step and press) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: var(--r-btn); font: 500 17px/1 var(--font-text); letter-spacing: -.01em; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--sm { min-height: 28px; padding: 0 12px; font-size: 12px; }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 17px; text-decoration: none; }
.link::after { content: "›"; margin-left: 4px; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }

/* ------------------------------------------------------------ nav (thin, translucent) */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); }
/* the blur sits on a pseudo-element: backdrop-filter on .nav itself would trap the fixed phone menu inside the bar */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav__inner { height: 100%; max-width: calc(1024px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-block; padding: 12px 0; text-decoration: none; font-size: 13px; color: color-mix(in srgb, var(--ink) 80%, transparent); transition: color .15s var(--ease); }
.nav__links a:is(:hover, :focus-visible) { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; opacity: .8; transition: opacity .15s var(--ease); }
.icon-btn:hover { opacity: 1; }
.nav__cta { min-height: 28px; }
.menu-btn { display: none; }
@media (max-width: 834px) {
  .menu-btn { display: grid; }
  .nav__cta { display: none; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; gap: 0; padding: 20px calc(var(--gutter) + 8px); background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .24s var(--ease), transform .24s var(--ease), visibility 0s .24s; }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a { padding: 10px 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
}

/* ------------------------------------------------------------ hero */
.hero { padding-top: clamp(56px, 10vh, 104px); text-align: center; }
.hero__copy { display: flex; flex-direction: column; align-items: center; }
.hero__lead { max-width: 640px; margin-top: 18px; font-size: var(--t-lead); line-height: 1.38; color: var(--muted); letter-spacing: -.015em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 30px; }
.hero__media { margin: clamp(44px, 7vh, 72px) 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/8; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(88px, 13vh, 148px); }
.section--grey { background: var(--grey); }
.head { text-align: center; max-width: 820px; margin: 0 auto clamp(44px, 6vw, 72px); }
.head__lead { margin-top: 16px; font-size: var(--t-lead); color: var(--muted); }

/* tiles */
.tiles { display: grid; gap: 20px; }
.tiles--2 { grid-template-columns: 1fr 1fr; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(32px, 4vw, 52px); border-radius: var(--r-lg); background: var(--card); }
.tile--dark { background: var(--tile-dark); color: #f5f5f7; --muted: #a1a1a6; }
.tile__label { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.tile__big { white-space: nowrap; font-size: clamp(56px, 7vw, 96px); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 4px 0 10px; }
.tile--dark .tile__big { background: linear-gradient(100deg, var(--sky), var(--sky-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile:not(.tile--dark) .tile__big { color: var(--blue); }
.tile__text { color: var(--muted); max-width: 440px; }
.tile__icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: auto; }
.tile--dark .tile__icon { color: var(--sky); }
.tile__icon svg { width: 100%; height: 100%; }
.tiles + .center { margin-top: 28px; }
@media (max-width: 760px) { .tiles--2 { grid-template-columns: 1fr; } }

/* about: the statement (word-highlight moment) over a wide photograph */
.statement { text-align: center; }
.statement .mo-wh__text { font: 700 clamp(32px, 4.4vw, 56px)/1.12 var(--font-display); letter-spacing: -.03em; max-width: 980px; margin-inline: auto; }
.statement__media { margin: clamp(56px, 8vh, 88px) 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/8; }
.statement__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

/* mission: bento grid */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bento__photo { grid-row: span 2; margin: 0; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; }
.bento__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 15% 45%; }
.bento__item { min-height: 250px; }
.bento__item--wide { grid-column: span 2; }
.bento__text { font-size: clamp(28px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.bento__text--grad { background: linear-gradient(100deg, var(--sky), var(--sky-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(32px, 3.6vw, 52px); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__photo { grid-column: span 2; grid-row: auto; min-height: 0; aspect-ratio: 16/10; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__photo, .bento__item--wide { grid-column: auto; }
  .bento__item { min-height: 0; }
  .tile__icon { margin-bottom: 18px; }
}

/* a Sunday (photo-chapters: its own CSS lays out the chapters; this sets the type) */
#sunday .mo-ph__head { text-align: center; max-width: 820px; margin-inline: auto; justify-items: center; }
#sunday .mo-ph__head h2 { margin-bottom: 14px; }
#sunday .mo-ph__head p { color: var(--muted); font-size: var(--t-lead); }
#sunday .mo-ph__head a { color: var(--accent); text-decoration: none; }
#sunday .mo-ph__head a::after { content: " ›"; }
#sunday .mo-ph__ch h3 { font-size: 24px; }

/* visit */
.visit { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--card); min-height: 420px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.visit__times { display: grid; gap: 20px; }
.tile--compact { justify-content: center; }
.tile__mid { font-size: clamp(44px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--blue); }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } .visit__times { grid-template-columns: 1fr 1fr; } .map, .map iframe { min-height: 320px; } }

/* footer */
.footer { background: var(--grey); padding: 40px 0 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.footer__line { font-size: 17px; font-weight: 600; color: var(--ink); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-top: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
.footer__links a { display: inline-block; padding: 12px 0; text-decoration: none; color: var(--muted); }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.footer__note { margin-top: 4px; }

/* ------------------------------------------------------------ phones */
@media (max-width: 640px) {
  .hero__media, .statement__media { aspect-ratio: 4/3; border-radius: var(--r-md); }
  .tile { border-radius: var(--r-md); }
  .hero__cta .btn { min-width: 220px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* good news steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.step { gap: 12px; }
.step__n { font-size: clamp(56px, 6vw, 80px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--blue); }
.tile--dark .step__n { background: linear-gradient(100deg, var(--sky), var(--sky-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step__verse { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; font-style: italic; color: var(--muted); }
.tile--dark .step__verse { border-color: rgba(255,255,255,.14); }
.step__verse cite { display: block; margin-top: 6px; font-style: normal; font-weight: 600; font-size: 13px; color: var(--ink); }
.tile--dark .step__verse cite { color: #f5f5f7; }
.steps__cta { margin-top: 28px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* next steps */
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile--link { text-decoration: none; color: inherit; }
.tile--link .tile__icon { margin-bottom: 18px; }
.tile__more { margin-top: auto; padding-top: 14px; color: var(--accent); }
.tile__more::after { content: " \203A"; }
.prayer { margin-top: 20px; flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
.prayer__h { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; margin: 6px 0 10px; }
.btn--light { background: #f5f5f7; color: #1d1d1f; flex: none; }
@media (max-width: 900px) { .tiles--3 { grid-template-columns: 1fr; } .prayer { flex-direction: column; align-items: flex-start; } }
#next .tile:not(.tile--dark) { background: var(--grey); }
.head { max-width: 960px; }
