/* Arbor Heights Bible Church: colours from their logo (sage green, sky blue, warm taupe) */
:root {
  --green: #4d7a65;
  --green-dark: #42514c;
  --ink: #26302d;
  --muted: #56625e;
  --sage: #6f9c86;
  --sky: #9fd1de;
  --sky-soft: #eaf4f6;
  --taupe: #7a6649;
  --cream: #f8f6f1;
  --line: #dfe5e2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.65 var(--sans); color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-dark); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; padding: .4rem 0; }
.brand .mark { width: 54px; height: 45px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; color: var(--green); font-weight: 600; }
.brand-sub { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #5f6664; margin-top: .15rem; }
.brand-tag { font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--taupe); margin-top: .3rem; border-top: 1px solid #c9bda9; padding-top: .2rem; }
@media (max-width: 479px) {
  .header-in { gap: .5rem; }
  .brand { gap: .45rem; min-width: 0; }
  .brand .mark { width: 42px; height: 35px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .7rem; letter-spacing: .16em; }
  .brand-tag { font-size: .75rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { padding: .55rem .7rem; flex: none; }
}
.menu-btn { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .8rem; font: 600 .95rem var(--sans); color: var(--green-dark); cursor: pointer; min-height: 44px; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav-open .site-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - 74px); overflow-y: auto; padding: .5rem 1.25rem 1.25rem; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.nav-open .site-nav > ul > li > a { display: block; padding: .7rem 0 .3rem; font-family: var(--serif); font-size: 1.2rem; color: var(--green-dark); }
.nav-open .site-nav ul ul { padding: 0 0 .4rem .8rem; border-left: 2px solid var(--sky-soft); }
.nav-open .site-nav ul ul a { display: block; padding: .4rem 0; }
.nav-open .nav-give { margin-top: .8rem; }

@media (min-width: 980px) {
  .menu-btn { display: none; }
  .site-nav { display: block; }
  .site-nav > ul { display: flex; align-items: center; gap: .3rem; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a { display: block; padding: .6rem .8rem; font-weight: 500; border-radius: 6px; }
  .site-nav > ul > li.is-active > a { color: var(--green); box-shadow: inset 0 -2px 0 var(--sage); border-radius: 0; }
  .site-nav > ul > li > a:hover { color: var(--green); }
  .site-nav ul ul { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem; box-shadow: 0 14px 30px rgba(38,48,45,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
  .site-nav li:hover > ul, .site-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul ul a { display: block; padding: .5rem .75rem; border-radius: 6px; }
  .site-nav ul ul a:hover { background: var(--sky-soft); }
  .nav-give { margin-left: .4rem; }
  .site-nav .nav-give a.btn { color: #fff; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.4rem; background: var(--green-dark); color: #fff; border: 2px solid var(--green-dark); border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); }
.btn-ghost:hover { background: var(--green-dark); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-light:hover { background: var(--sky-soft); color: var(--green-dark); border-color: var(--sky-soft); }
.btn-sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .9rem 2rem; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* hero */
.home-hero { background: linear-gradient(180deg, var(--sky-soft) 0%, #f6fafb 60%, #fff 100%); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: 14px; box-shadow: 0 18px 40px rgba(38,48,45,.18); width: 100%; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-bottom: .6rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }

.page-head { background: linear-gradient(180deg, var(--sky-soft), #fff); padding: clamp(2.2rem, 5vw, 3.8rem) 0 clamp(1.5rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3rem; }
.page-head .lead { margin: 0; }

/* sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.tint { background: var(--cream); }
.section-title { margin-bottom: 1.2rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose h4 { margin-top: 1.3em; color: var(--green); }
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--taupe); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: start; } }
.aside { display: grid; gap: 1.2rem; align-content: start; }
.aside img { border-radius: var(--radius); }
@media (min-width: 900px) { .aside { position: sticky; top: 100px; } }
.note { color: var(--muted); font-size: .95rem; }
.refs { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }

.cards { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; border-top: 4px solid var(--sage); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(38,48,45,.1); color: var(--ink); }
.card h2, .card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; color: var(--green); font-weight: 600; }
.card .more::after { content: " \2192"; }
.cards.two { margin-top: 2rem; }

.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.link-list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.link-list a::after { content: " \2192"; color: var(--sage); }
.give-box { background: var(--green-dark); color: #fff; border-radius: 14px; padding: 2rem; }
.give-box h2 { color: #fff; }
.give-box blockquote { margin: 0 0 1.5rem; font-family: var(--serif); font-size: 1.2rem; }
.give-box cite { display: block; font-size: .95rem; color: #d6e6e0; margin-top: .5rem; }
.give-box .btn { background: #fff; color: var(--green-dark); border-color: #fff; }
.verse { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--green-dark); margin: 0 auto 2rem; max-width: 34em; }
.verse cite { display: block; font-size: 1rem; color: var(--taupe); margin-top: .75rem; font-style: normal; }

.people { list-style: none; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 600px) { .people { grid-template-columns: repeat(3, 1fr); } }
.people li { background: var(--sky-soft); border-radius: var(--radius); padding: 1rem; }
.people strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--green-dark); }
.people span { font-size: .95rem; color: var(--muted); }

.toc { background: var(--cream); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.toc h2 { font-size: 1.15rem; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: block; padding: .5rem 0; text-decoration: none; line-height: 1.35; }
.toc a span { display: inline-block; min-width: 2.6em; color: var(--taupe); font-family: var(--serif); }
.toc a[aria-current="page"] { font-weight: 700; color: var(--green-dark); }
.toc ul li span { display: block; font-size: .85rem; color: var(--muted); }
.aside .toc { max-height: none; }
@media (min-width: 900px) { .aside .toc { max-height: calc(100vh - 140px); overflow-y: auto; } }
.pager { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; text-decoration: none; font-family: var(--serif); font-size: 1.1rem; }
.pager a span { display: block; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pager .next { text-align: right; }

.post { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2rem; scroll-margin-top: 100px; max-width: 70ch; }
.post header h2 { margin-bottom: .2rem; }
.post .date { color: var(--taupe); font-size: .95rem; }
.file, .files li { margin: 0 0 .5rem; }
.file a, .files a { font-weight: 600; word-break: break-word; }
.file a::before, .files a::before { content: "\2193  "; color: var(--sage); }
.file span, .files span { color: var(--muted); font-size: .9rem; }
.files { list-style: none; padding: 0; columns: 2 220px; }

.plain { list-style: none; padding: 0; margin: 0; }
.schedule li { padding: .3rem 0; font-size: 1.1rem; }
.mission-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .mission-list { grid-template-columns: 1fr 1fr; } }
.mission-list li { border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.mission-list h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.mission-list p { margin: 0 0 .3rem; color: var(--muted); }
.mission-list a { word-break: break-word; }
.links-page a { word-break: break-word; }

.embed iframe, .map iframe { width: 100%; border: 0; border-radius: var(--radius); display: block; }
.embed.sa iframe { height: 900px; background: var(--cream); }
.embed.cal iframe { height: 620px; }
.map iframe { height: 240px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; border: 0; padding: 0; background: #000; cursor: pointer; width: 100%; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(66,81,76,.92); }
.play-icon::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }

/* form */
.form { display: grid; gap: 1rem; background: var(--cream); border-radius: 14px; padding: clamp(1.25rem, 4vw, 2.2rem); }
.form label { display: grid; gap: .35rem; font-weight: 600; color: var(--green-dark); }
.form label span { color: #9b3d2a; }
.form input, .form textarea { font: 1rem var(--sans); padding: .75rem .9rem; border: 1px solid #b9c4c0; border-radius: 8px; background: #fff; width: 100%; min-height: 46px; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--sky); border-color: var(--green); }
.row2 { display: grid; gap: 1rem; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form .btn { justify-self: start; }

/* footer */
.site-footer { background: var(--green-dark); color: #e3ece8; padding: 3rem 0 1.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: .8rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer .plain li { padding: .2rem 0; }
.foot-name { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: .5rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.2rem; padding-top: 1.2rem; padding-bottom: 1rem; font-size: .9rem; color: #c9d6d1; }
.foot-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
