/* Make Room: Prayer
   Matches makeroom.gschurch.info: warm ink, copper and cream, a big serif
   display face (Perfectly Nineties) with Saira for everything else. */
@font-face {
  font-family: "Perfectly Nineties";
  src: url("/fonts/PerfectlyNineties-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Perfectly Nineties";
  src: url("/fonts/PerfectlyNineties-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

@font-face {
  font-family: "Saira";
  src: url("/fonts/Saira-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/fonts/Saira-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/fonts/Saira-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/fonts/Saira-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #252422;
  --ink-2: #33312e;
  --copper: #bd8559;
  --copper-deep: #9f6a44;
  --copper-text: #85552f;   /* copper dark enough for small text on cream */
  --copper-light: #d9a77e;
  --cream: #f4f2ea;
  --paper: #fbfaf6;
  --bone: #e2e0de;
  --line: #cccac3;
  --line-soft: #e3e0d7;
  --text: #252422;
  --muted: #5e5a54;
  --display: "Perfectly Nineties", Georgia, serif;
  --sans: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.55; color: var(--text); background: var(--cream); }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.012em; }
svg[viewBox="0 0 24 24"] {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

/* ── Nav (same as the Make Room site) ───────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--white, #fff); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav__logo img { width: 120px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { text-decoration: none; color: var(--bone); font-size: 17px; letter-spacing: .02em; }
.nav__links a:hover { color: #fff; }
.nav__links .nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--copper); color: var(--ink); font-weight: 600; padding: 10px 22px; border-radius: 999px;
}
.nav__links .nav__cta:hover { background: var(--copper-light); color: var(--ink); }
.nav__cta svg { width: 16px; height: 16px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; color: var(--bone);
  background:
    linear-gradient(90deg, rgba(37, 36, 34, .82) 0%, rgba(37, 36, 34, .55) 45%, rgba(37, 36, 34, .08) 100%),
    linear-gradient(180deg, rgba(37, 36, 34, 0) 60%, rgba(37, 36, 34, .35) 100%),
    url("/assets/hero-wheat.jpg") center 40% / cover no-repeat, var(--ink);
}
.hero__inner { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 40px; padding: 52px 0 44px; }
.hero__photo { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero .eyebrow { color: var(--copper-light); margin-bottom: 6px; }
.hero h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; font-size: clamp(80px, 9.5vw, 128px); line-height: .95; color: var(--bone); }
.hero__lede { margin-top: 26px; max-width: 34ch; font-size: 21px; color: #efede6; }

/* ── Layout ─────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding: 56px 0 40px; align-items: start; }
.next { position: sticky; top: 100px; }

/* ── Next up (dark block, like the site's dark sections) ── */
.next__card { background: var(--ink); color: var(--bone); padding: 40px 38px 34px; }
.next__loading { color: var(--bone); opacity: .7; padding: 40px 0; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--copper-light); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status--live { color: #f0b98c; }
.status--live .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 185, 140, .55); } 70% { box-shadow: 0 0 0 12px rgba(240, 185, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 185, 140, 0); } }
.next__title { font-family: var(--display); font-weight: 400; letter-spacing: -.012em; color: var(--copper); font-size: clamp(44px, 4.6vw, 62px); line-height: .98; margin: 16px 0 6px; }
.next__tag { color: var(--bone); opacity: .8; font-size: 18px; }
.next__when { margin: 28px 0 6px; display: grid; gap: 2px; }
.next__date { font-size: 21px; font-weight: 500; color: #fff; }
.next__time { font-size: clamp(34px, 3.4vw, 44px); font-weight: 700; line-height: 1.1; color: #fff; letter-spacing: -.01em; }
.next__countdown { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(226, 224, 222, .3); font-size: 16px; }
.next__where { display: flex; align-items: center; gap: 14px; margin: 26px 0 28px; padding: 18px 0; border-top: 1px solid rgba(226, 224, 222, .18); border-bottom: 1px solid rgba(226, 224, 222, .18); font-size: 19px; font-weight: 500; }
.next__where svg { width: 26px; height: 26px; color: var(--copper); }
.next__where a { color: #fff; text-underline-offset: 4px; }
.next__where small { display: block; color: var(--bone); opacity: .75; font-weight: 400; font-size: 15px; }
.next__actions { display: grid; gap: 12px; }
.next__meta { margin-top: 16px; color: var(--bone); opacity: .8; font-size: 15px; }
.next__meta strong { color: #fff; opacity: 1; }
.next__card .btn--ghost { color: var(--bone); border-color: rgba(226, 224, 222, .35); }
.next__card .btn--ghost:hover { border-color: var(--bone); color: #fff; }
.stream { margin: 24px 0 4px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; position: relative; }
.stream iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 17px; color: var(--bone);
  background: linear-gradient(rgba(37, 36, 34, .55), rgba(37, 36, 34, .8)), url("/assets/hero-wheat.jpg") center / cover;
}
.stream__placeholder img { display: none; }

/* ── Buttons (pills, like the Make Room site) ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 28px; border-radius: 999px;
  font-weight: 600; font-size: 19px; letter-spacing: .02em; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn--big { min-height: 64px; font-size: 20px; }
.btn--orange { background: var(--copper); color: var(--ink); }   /* primary, like "Give" */
.btn--orange:hover { background: var(--copper-light); }
.btn--dark { background: var(--ink); color: #fff; }                /* like "Find a place to serve" */
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.linklike { background: none; border: 0; padding: 0; margin-top: 16px; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }

/* ── Schedule (hairline rows, like Pray / Serve / Give) ─── */
.schedule__head { margin-bottom: 26px; }
.schedule__head h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.012em; font-size: clamp(44px, 4.4vw, 60px); line-height: 1; }
.schedule__head p { margin-top: 10px; font-size: 17px; }
.day { margin-bottom: 30px; }
.day__label { display: flex; gap: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--copper-text); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.day__label b { font-weight: 600; }
.items { display: grid; }
.item { border-bottom: 1px solid var(--line); scroll-margin-top: 130px; transition: background .15s; }
.item.is-open { background: var(--paper); }
.item__head { width: 100%; display: grid; grid-template-columns: 116px 1fr auto; gap: 18px; align-items: center; padding: 20px 14px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; }
.item__head:hover .item__title { color: var(--copper-deep); }
.item__time { font-weight: 700; font-size: 18px; line-height: 1.2; }
.item__time small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.item__title { font-weight: 600; font-size: 20px; line-height: 1.25; transition: color .15s; }
.item__sub { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 4px; color: var(--muted); font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.chip svg { width: 16px; height: 16px; }
.chip--orange { border-color: var(--copper); color: var(--copper-text); }
.chip--next { background: var(--copper); border-color: var(--copper); color: var(--ink); font-weight: 600; }
.chip--live { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.item.is-next .item__time { color: var(--copper-deep); }
.item__chev { width: 26px; height: 26px; color: var(--muted); transition: transform .2s; }
.item.is-open .item__chev { transform: rotate(180deg); }
.item__body { display: none; padding: 0 14px 24px; }
.item.is-open .item__body { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.item__desc { padding-top: 4px; margin-bottom: 16px; max-width: 60ch; }
.item__facts { display: grid; gap: 8px; margin-bottom: 18px; }
.fact { display: flex; gap: 10px; align-items: flex-start; }
.fact svg { margin-top: 2px; color: var(--copper-deep); }

/* ── Sign-up ────────────────────────────────────────────── */
.signup { margin-top: 22px; padding: 24px; background: var(--cream); border: 1px solid var(--line-soft); }
.signup h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; font-size: 36px; color: var(--copper-deep); margin-bottom: 6px; }
.signup > p { margin-bottom: 16px; font-size: 16px; }
.roles { display: grid; gap: 10px; margin-bottom: 18px; }
.role { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line-soft); border-radius: 10px; cursor: pointer; }
.role input { margin: 4px 0 0; width: 20px; height: 20px; accent-color: var(--copper-deep); }
.role:has(input:checked) { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper); }
.role.is-full { opacity: .55; cursor: not-allowed; }
.role__label { font-weight: 700; }
.role__detail { color: var(--muted); font-size: 15px; }
.role__spots { font-size: 14px; font-weight: 600; white-space: nowrap; padding-top: 2px; }
.role__spots.is-low { color: var(--copper-text); }
.hours-day { font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-text); margin: 14px 0 8px; }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.hour { display: grid; padding: 10px 6px; border-radius: 10px; text-align: center; background: #fff; border: 1.5px solid var(--line-soft); cursor: pointer; position: relative; }
.hour input { position: absolute; opacity: 0; pointer-events: none; }
.hour b { font-size: 17px; }
.hour span { font-size: 13px; color: var(--muted); }
.hour.is-open span { color: var(--copper-text); font-weight: 600; }
.hour:has(input:checked) { border-color: var(--copper); background: #f6e9dc; }
.hour:has(input:focus-visible) { outline: 3px solid var(--copper); outline-offset: 2px; }
.hour.is-past { opacity: .4; cursor: not-allowed; }
.coverage { display: flex; gap: 3px; margin: 6px 0 14px; }
.coverage i { flex: 1; height: 8px; border-radius: 2px; background: var(--line-soft); }
.coverage i.on { background: var(--copper); }
.coverage-label { font-size: 15px; color: var(--muted); }
.places { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.places label { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-soft); cursor: pointer; font-weight: 500; }
.places label:has(input:checked) { border-color: var(--copper); }
.places input { accent-color: var(--copper-deep); width: 18px; height: 18px; margin: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.field { display: grid; gap: 4px; font-size: 15px; font-weight: 600; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 18px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--text); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--copper); outline: none; }
.field .opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #a12a14; font-weight: 600; margin-bottom: 12px; display: none; }
.form-error.show { display: block; }
.done { text-align: center; padding: 10px 6px; }
.done__check { width: 56px; height: 56px; border-radius: 50%; background: var(--copper); color: var(--ink); display: grid; place-items: center; margin: 0 auto 12px; }
.done__check svg { width: 30px; height: 30px; stroke-width: 2.6; }
.done h3 { margin-bottom: 6px; }
.done .btn-row { justify-content: center; margin-top: 18px; }

/* ── Calendar + contact ─────────────────────────────────── */
.helpers { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 16px; }
.helper { padding: 44px 40px 52px 0; scroll-margin-top: 90px; }
.helper + .helper { padding: 44px 0 52px 40px; border-left: 1px solid var(--line); }
.helper h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.012em; font-size: clamp(36px, 3.4vw, 46px); line-height: 1; margin-bottom: 12px; }
.helper p { margin-bottom: 20px; }
.helper p.small { margin: 12px 0 0; }

/* ── Back to Make Room (copper band) + footer ───────────── */
.band { background: var(--copper); color: var(--ink); text-align: center; padding: 88px 0 92px; }
.band h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; font-size: clamp(48px, 6.4vw, 92px); line-height: .98; }
.band p { margin: 22px auto 30px; max-width: 40ch; font-size: 20px; }
.band p strong { font-weight: 700; }
.footer { background: var(--ink); color: var(--bone); font-size: 16px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0; flex-wrap: wrap; }
.footer img { width: 110px; height: auto; }
.footer a { color: var(--bone); text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s; font-weight: 500; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 30px 0; }

/* Embedded inside another page: ?embed=1 */
.is-embed .nav, .is-embed .hero, .is-embed .band, .is-embed .footer { display: none; }
.is-embed .layout { padding-top: 12px; }
.is-embed .next { top: 12px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .layout { grid-template-columns: 1fr; gap: 44px; padding-top: 32px; }
  .next { position: static; }
  .helpers { grid-template-columns: 1fr; }
  .helper, .helper + .helper { padding: 36px 0; border-left: 0; }
  .helper + .helper { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .nav__inner { min-height: 64px; }
  .nav__logo img { width: 100px; }
  .nav__links .nav__cta { padding: 8px 16px; font-size: 15px; }
  .hero { background:
      linear-gradient(180deg, rgba(37, 36, 34, .55) 0%, rgba(37, 36, 34, .7) 60%, rgba(37, 36, 34, .95) 100%),
      url("/assets/hero-wheat.jpg") 30% 40% / cover no-repeat, var(--ink); }
  .layout { padding-top: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; padding: 36px 0 30px; }
  .hero__photo { display: none; }
  .hero__lede { font-size: 18px; }
  .next__card { padding: 30px 22px 26px; margin-inline: -16px; }
  .item__head { grid-template-columns: 80px 1fr auto; gap: 12px; padding: 16px 4px; }
  .item__body { padding: 0 4px 18px; }
  .item__time { font-size: 16px; }
  .item__title { font-size: 18px; }
  .signup { padding: 18px 16px; margin-inline: -4px; }
  .fields { grid-template-columns: 1fr; }
  .hours { grid-template-columns: repeat(4, 1fr); }
  .band { padding: 64px 0 68px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
