/* hibret.org: the public website. Archivo (Latin letters) and Noto Sans Ethiopic (Ge'ez letters), served by the website itself;
   the Ethiopic font only downloads on pages with Ge'ez letters. Both: SIL Open Font License (Fonts/OFL.txt). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/site/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Ethiopic"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: local("Noto Sans Ethiopic"), url("/site/fonts/noto-sans-ethiopic.woff2") format("woff2");
  unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E; }
:root {
  --bg: #ffffff;
  --soft: #f3f5fa;
  --ink: #16203a;
  --muted: #5a6479;
  --line: #e1e6f0;
  --blue: #23408e;
  --blue-deep: #172c66;
  --blue-soft: #e7ecf8;
  --gold: #b07d14;
  --gold-soft: #fbf2dc;
  --red: #9e3428;
  --on-blue: #ffffff;
  --shadow: 0 1px 2px rgb(22 32 58 / 0.06), 0 8px 24px rgb(22 32 58 / 0.07);
  --font: "Archivo", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, "Nyala", "Kefa", sans-serif;
  --serif: "Archivo", "Noto Sans Ethiopic", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1422; --soft: #161d2f; --ink: #e7ebf5; --muted: #a3acc2; --line: #273049;
    --blue: #93acf0; --blue-deep: #1d2c55; --blue-soft: #1c2747; --gold: #e2b456; --gold-soft: #2b2416; --red: #e07a6a;
    --on-blue: #0f1422; --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }

header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
nav.main { display: flex; gap: 0.2rem; flex-wrap: wrap; margin-left: auto; }
nav.main a { text-decoration: none; color: var(--ink); padding: 0.4rem 0.7rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
nav.main a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
nav.main a.signin { border: 1px solid var(--line); }
.langs { display: flex; gap: 0.15rem; flex-wrap: wrap; }
.langs a { font-size: 0.85rem; text-decoration: none; color: var(--muted); padding: 0.2rem 0.45rem; border-radius: 6px; }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 700; background: var(--soft); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.75rem 1.25rem; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit; }
.button.primary { background: var(--blue); color: var(--on-blue); }
.button.primary:hover { filter: brightness(1.08); }
.button.ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.hero { padding-block: 3.2rem 2.6rem; background: linear-gradient(180deg, var(--soft), var(--bg)); }
/* The home page's big photo (FLUX): the words on a dark veil on the left, the people on the right. */
.jumbo { background: linear-gradient(180deg, rgb(6 8 16 / 0.62) 0%, rgb(6 8 16 / 0.35) 38%, rgb(6 8 16 / 0.55) 62%, rgb(6 8 16 / 0.9) 100%),
  var(--photo) center 30% / cover no-repeat; background-color: #0b0f1a; color: #fff; }
.jumbo-inner { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 7rem 4.5rem; }
.jumbo-text { max-width: 980px; }
.jumbo h1 { color: #fff; font-size: clamp(3rem, 8.5vw, 7.2rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 1.4rem; }
.jumbo .lead { color: rgb(255 255 255 / 0.88); font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 46ch; }
/* On the home page the menu sits on the photo, in white. */
body.home header.site { position: absolute; left: 0; right: 0; background: transparent; border-bottom: none; }
body.home header.site .brand, body.home nav.main a { color: #fff; }
body.home nav.main a[aria-current="page"] { background: rgb(255 255 255 / 0.16); color: #fff; }
body.home nav.main a.signin { border-color: rgb(255 255 255 / 0.5); }
body.home header.site .brand small, body.home .langs a { color: rgb(255 255 255 / 0.75); }
body.home .langs a[aria-current="true"] { color: #fff; background: rgb(255 255 255 / 0.16); }
.jumbo .eyebrow { color: #f2c86b; }
.jumbo .button.primary { background: #fff; color: #172c66; }
.button.light { border-color: rgb(255 255 255 / 0.6); color: #fff; background: transparent; }
.side-photo { width: 100%; border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.picture-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; }
.picture-row img { width: 100%; border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; }
.picture-row.flip img { order: 2; }
.soon { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft);
  border-radius: 999px; padding: 0.1rem 0.5rem; vertical-align: middle; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.eyebrow { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.5rem; }
h1 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.05; margin: 0 0 1rem; text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.015em; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.1; margin: 0 0 0.8rem; text-wrap: balance; }
h3 { font-size: 1.08rem; margin: 0 0 0.35rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 1.6rem; }
p { margin: 0 0 0.8rem; max-width: 68ch; }

/* The phone in the hero: a few cards like the Fellowship feed, drawn with CSS (no pictures to load). */
.phone { justify-self: center; width: min(300px, 100%); border-radius: 34px; padding: 12px; background: var(--ink); box-shadow: var(--shadow); }
.screen { border-radius: 24px; background: var(--soft); padding: 14px 12px; display: grid; gap: 10px; min-height: 420px; }
.screen .bar { height: 8px; width: 40%; border-radius: 6px; background: var(--line); justify-self: center; margin-bottom: 4px; }
.mini { background: var(--bg); border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); font-size: 0.8rem; line-height: 1.4; }
.mini .who { font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.mini .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); display: inline-block; }
.mini .tag { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.mini.burden { border-left: 4px solid var(--blue); }
.mini.church { border-left: 4px solid var(--gold); }
.mini .react { color: var(--muted); font-size: 0.72rem; margin-top: 4px; }

section.band { padding-block: 3rem; }
section.band.soft { background: var(--soft); }
.purpose { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center; }
.purpose .word { font-family: var(--serif); font-size: clamp(3rem, 10vw, 5.5rem); line-height: 1; color: var(--blue); margin: 0 0 1.4rem; }
.purpose .word small { display: block; font-size: 0.28em; color: var(--muted); font-family: var(--font); margin-top: 0.5rem; letter-spacing: 0.04em; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.25rem; min-width: 0; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 0.7rem; }
.card .icon svg { width: 20px; height: 20px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--blue-soft);
  box-shadow: inset 0 0 0 4px var(--blue-soft), inset 0 0 0 10px var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.cta { background: var(--blue-deep); color: #fff; border-radius: 18px; padding: 2rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 0.3rem; }
.cta p { color: rgb(255 255 255 / 0.85); margin: 0; }
.cta .button.primary { background: #fff; color: #172c66; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--gold-soft); color: var(--gold);
  font-weight: 800; margin-bottom: 0.6rem; }

.search { display: flex; gap: 0.5rem; margin: 0 0 1.5rem; flex-wrap: wrap; }
.search input { flex: 1 1 240px; min-width: 0; font: inherit; padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.churches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.church-card { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.church-card:hover { box-shadow: var(--shadow); }
.cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blue-soft), var(--gold-soft)); display: grid; place-items: center; color: var(--blue);
  font-family: var(--serif); font-size: 2.2rem; font-weight: 700; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.church-card .body { padding: 0.9rem 1rem 1.1rem; display: grid; gap: 0.15rem; }
.church-card .am, .church-hero .am { color: var(--muted); }
.meta { color: var(--muted); font-size: 0.92rem; }
.count { color: var(--muted); font-size: 0.92rem; margin: -0.8rem 0 1rem; }
.church-hero .cover { border-radius: 16px; max-height: 360px; margin-bottom: 1.4rem; }
.join-box { background: var(--soft); border-radius: 14px; padding: 1.2rem; display: grid; gap: 0.6rem; max-width: 520px; }
.back { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; background: var(--bg); display: grid; gap: 0.3rem; }
.plan .price { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.plan .who { font-weight: 700; color: var(--blue); }
.note { color: var(--muted); font-size: 0.95rem; }

footer.site { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 2rem 2.5rem; color: var(--muted); font-size: 0.95rem; }
footer.site .wrap { display: flex; gap: 1.5rem; justify-content: space-between; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

.hero .wrap.single, .steps.single { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .hero .wrap, .purpose, .two, .picture-row { grid-template-columns: 1fr; }
  .picture-row.flip img { order: 0; }
  .jumbo { background: linear-gradient(180deg, rgb(6 8 16 / 0.6) 0%, rgb(6 8 16 / 0.35) 35%, rgb(6 8 16 / 0.92) 100%), var(--photo) 62% 30% / cover no-repeat; }
  .jumbo-inner { padding-block: 9rem 3rem; }
  .grid, .churches, .plans, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { display: none; }
}
@media (max-width: 560px) {
  .grid, .churches, .plans, .steps { grid-template-columns: 1fr; }
  header.site { position: static; }
  body.home header.site { position: absolute; }
  header.site .wrap { gap: 0.4rem; padding-block: 0.5rem; }
  nav.main { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav.main a { white-space: nowrap; padding: 0.35rem 0.6rem; }
  .hero { padding-block: 2rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
