/* Covenant Reformed Presbyterian Church — site styles */
:root {
  --red: #b80303;
  --red-dark: #8f0202;
  --ink: #1d1d1d;
  --text: #333;
  --muted: #5d5d5d;
  --line: #e4e0dc;
  --paper: #fbfaf8;
  --stone: #f1eeea;
  --charcoal: #1b1b1c;
  --head: Futura, "Century Gothic", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --wrap: 1120px;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.9rem); margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.brand img { width: clamp(210px, 30vw, 330px); height: auto; }
.tagline { font-family: var(--head); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .8rem; font: 600 .95rem var(--head); color: var(--ink); cursor: pointer; min-height: 44px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a { display: block; padding: .7rem .2rem; font-family: var(--head); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--stone); }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .nav-cta a { color: var(--red); }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; }
  .site-nav ul { display: flex; gap: .2rem; padding: 0; align-items: center; }
  .site-nav a { border: 0; font-size: .82rem; padding: .5rem .6rem; border-radius: 6px; }
  .site-nav a:hover { background: var(--stone); color: var(--red); }
  .site-nav .nav-cta a { background: var(--red); color: #fff; padding: .55rem 1rem; margin-left: .4rem; }
  .site-nav .nav-cta a:hover { background: var(--red-dark); color: #fff; }
}

/* Hero bands */
.hero { position: relative; color: #fff; background: var(--charcoal) url("img/crest-texture.webp") center / cover; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,22,.86), rgba(20,20,22,.78)); z-index: -1; }
.hero-home { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 8vw, 5.5rem); text-align: center; }
.hero-home h1 { color: #fff; font-size: clamp(1.9rem, 5.2vw, 3.2rem); margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-home h1 small { display: block; font-size: .5em; letter-spacing: .32em; color: #e9e4df; margin-top: .5rem; font-weight: 500; }
.verse { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: #f3dede; max-width: 46rem; margin: 0 auto 1.2rem; }
.verse cite { display: block; font-style: normal; font-size: .85em; color: #ffb3b3; margin-top: .3rem; letter-spacing: .05em; }
.hero-home .lead { max-width: 44rem; margin: 0 auto 1.8rem; color: #eee; font-size: 1.1rem; }
.rule { width: 64px; height: 3px; background: var(--red); border: 0; margin: 0 auto 1.4rem; }
.page-hero { padding: clamp(2.6rem, 6vw, 4rem) 0; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 4.6vw, 2.7rem); }
.page-hero .eyebrow { color: #ffb3b3; }
.page-hero p.lead { color: #eee; margin: .8rem 0 0; max-width: 46rem; font-size: 1.1rem; }
.eyebrow { font-family: var(--head); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 0 0 .5rem; font-weight: 600; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-home .btns { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.4rem; border-radius: 8px; font: 600 .95rem var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: var(--red); color: #fff; border: 2px solid var(--red); cursor: pointer; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }

/* Sections */
main { display: block; }
.section { padding: clamp(2.8rem, 7vw, 4.5rem) 0; }
.section-alt { background: var(--stone); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2rem; }
.section-head h2 { margin-top: 0; }
.notice { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: -2rem; position: relative; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.notice strong { font-family: var(--head); color: var(--ink); }
.notice p { margin: 0; }
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; display: flex; flex-direction: column; text-align: center; align-items: center; }
.card h3 { margin: .8rem 0 .4rem; }
.card p { color: var(--muted); flex: 1; }
.card svg { width: 40px; height: 40px; color: var(--red); }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; } .split.flip > :first-child { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.photo img { width: 100%; }
.photo-tall { max-width: 340px; margin-inline: auto; }
.prose { max-width: 760px; }
.prose h2:first-child { margin-top: 0; }
.prose blockquote { margin: 1.4rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid var(--red); font-family: var(--serif); font-style: italic; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.byline { font-style: italic; color: var(--muted); }

/* People */
.person { display: grid; gap: 1.5rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.person:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 760px) { .person { grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; } }
.person img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.person h2 { margin: 0 0 .2rem; }
.role { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--red); margin: 0 0 .8rem; font-weight: 600; }

/* Times */
.times { list-style: none; padding: 0; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.times li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); }
.times li:first-child { border-top: 0; }
.times strong { font-family: var(--head); color: var(--ink); }
.times span { color: var(--red); font-weight: 600; white-space: nowrap; }
.times small { display: block; color: var(--muted); font-size: .9rem; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); background: var(--stone); }

/* Lists of links */
.link-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.link-list a { display: block; padding: .75rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.link-list a:hover { border-color: var(--red); color: var(--red); }
.link-list small { display: block; color: var(--muted); }
.q-list a { font-family: var(--head); font-weight: 500; }
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 1.2rem 0 2rem; }
.tile { display: block; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 600; }
.tile small { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); margin-top: .2rem; }
.tile:hover { border-color: var(--red); color: var(--red); }
.embed { width: 100%; border: 0; border-radius: var(--radius); background: #fff; }

/* Bulletin */
.order { list-style: none; padding: 0; margin: 0 0 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.order li { padding: .8rem 1.2rem; border-top: 1px solid var(--line); }
.order li:first-child { border-top: 0; }
.order .part { font-family: var(--head); font-weight: 600; color: var(--ink); }
.order .item { display: block; color: var(--red); font-style: italic; }
.order .stand::after { content: " *"; color: var(--red); }
.order .text { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: .3rem; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-family: var(--head); font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .3rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: .75rem .85rem; border: 1px solid #c9c3bd; border-radius: 8px; background: var(--paper); color: var(--ink); min-height: 46px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--red); outline: 2px solid rgba(184,3,3,.2); }
.req { color: var(--red); }

/* Footer */
.site-footer { background: var(--charcoal); color: #d6d2ce; padding: 3.5rem 0 2.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3b3; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .9rem; }
.foot-name { font-family: var(--head); color: #fff; font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; margin-bottom: .8rem; }
.foot-times li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #333; padding-bottom: .4rem; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid #444; border-radius: 50%; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { border-top: 1px solid #333; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; color: #aaa; }
.foot-bottom nav a { color: #ccc; margin-right: 1rem; display: inline-block; padding: .2rem 0; }
body { overflow-wrap: break-word; }
.prose a, .link-list a { overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .tagline { font-size: .75rem; letter-spacing: .04em; text-transform: none; max-width: 230px; line-height: 1.35; }
  .brand img { width: 230px; }
}
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
