/* Reformation Presbyterian Church — one stylesheet, mobile first. */
:root {
  /* Colors carried over from the original WordPress theme ("Refur"). */
  --ink: #464c51;        /* original heading/charcoal */
  --muted: #707070;      /* original body grey */
  --paper: #ffffff;
  --card: #ffffff;
  --tint: #e8f0f7;       /* original pale blue */
  --line: #dde5ed;
  --brand: #3a5366;      /* original header slate blue */
  --brand-dark: #2c4050;
  --accent: #75a3d1;     /* original link blue (decorative; too light for text on white) */
  --link: #3b6d9e;       /* darker shade of the accent, readable on white */
  --radius: 10px;
  --wrap: 68rem;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1.0625rem/1.65 var(--sans);
  color: #3f4448;
  background: var(--paper);
}
img, iframe { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Header and navigation */
.site-header { background: var(--brand); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.brand small { display: block; font-family: var(--sans); font-size: .78rem; opacity: .85; letter-spacing: .03em; }
.brand:hover { color: #fff; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle:focus-visible + .nav-button { outline: 2px solid #fff; outline-offset: 2px; }
.nav-button {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: .4rem .75rem; font-size: .95rem;
}
.site-nav { width: 100%; display: none; }
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: .25rem 0 .25rem; padding: 0; }
.site-nav a { display: block; color: #fff; text-decoration: none; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav a:hover { text-decoration: underline; }

@media (min-width: 52rem) {
  .nav-button { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { display: flex; gap: 1.25rem; margin: 0; }
  .site-nav a { border: 0; padding: .25rem 0; font-size: .98rem; }
  .site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
}

/* Hero */
.hero {
  color: #fff; padding: 2.75rem 0 3rem;
  background: linear-gradient(rgba(44,64,80,.72), rgba(44,64,80,.82)), url("/images/church-building.jpg") center 40% / cover no-repeat var(--brand);
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.12rem; max-width: 40rem; opacity: .95; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); font-weight: 700; margin-bottom: .5rem; }
.hero .eyebrow { color: var(--tint); }

/* Page title band for inner pages */
.page-title { background: var(--brand); color: #fff; padding: 1.75rem 0 1.5rem; }
.page-title h1 { color: #fff; margin: 0; }
.page-title p { margin: .4rem 0 0; opacity: .9; }

main { padding-bottom: 3rem; }

/* Cards and grids */
.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 52rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.card h2, .card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* The "times and place" panel that sits just under the hero */
.visit-panel { margin-top: -1.25rem; position: relative; box-shadow: 0 6px 24px rgba(31,41,51,.08); }
.times { list-style: none; padding: 0; margin: 0 0 1rem; }
.times li { padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.times li:last-child { border-bottom: 0; }
.times strong { font-weight: 600; }
.address { font-style: normal; margin-bottom: 1rem; }

.button-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.button {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--brand); color: #fff; padding: .65rem 1.1rem; border-radius: 6px; border: 2px solid var(--brand);
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--brand); }
.button.secondary:hover { background: var(--brand); color: #fff; }

.verse { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 1rem; margin: 2rem 0; }
.verse cite { display: block; font-style: normal; font-size: .9rem; margin-top: .3rem; }

.embed { width: 100%; border: 0; display: block; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: #eee; }

.person { display: flex; gap: 1rem; align-items: flex-start; }
.person img, .photo-placeholder { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.photo-placeholder { display: grid; place-items: center; background: var(--tint); color: var(--muted); font-size: .75rem; text-align: center; border: 2px dashed var(--accent); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }

/* Unconfirmed content the owner still needs to supply. Search the files for "PLACEHOLDER". */
.placeholder { background: #fff3c4; border-bottom: 2px dotted #c99a00; padding: 0 .2em; }

.site-footer { background: var(--ink); color: #bac9d9; padding: 2rem 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .5rem; }

/* Home page: bold Scripture headline, preaching first. */
.hero-home { padding: 3.25rem 0 3.5rem; }
.hero-quote { font-size: clamp(2.2rem, 6vw, 3.75rem); font-weight: 500; line-height: 1.08; max-width: none; margin-bottom: .35rem; text-wrap: balance; }
.hero-cite { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--tint); margin-bottom: 1.25rem; }
.hero p.hero-lead { font-size: 1.08rem; max-width: 36rem; }
.pulpit { margin-top: 2.75rem; }
.pulpit h2 { margin-top: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .75rem; }
.home-pair { margin-top: 2.5rem; }
.callout { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; color: var(--brand); border-left: 3px solid var(--accent); padding-left: .9rem; }
.invitation { margin-top: 1rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

/* Start-here sermon picks and the Gospel page */
.picks { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .picks { grid-template-columns: 1fr 1fr; } }
.pick h3 { margin: 0 0 .25rem; }
.pick p { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.scripture { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; margin: 1rem 0 1.25rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.scripture cite { display: block; font-style: italic; font-size: 1rem; color: var(--muted); }
.step-num { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--link); font-weight: 700; }
@media (min-width: 64rem) { .hero-quote { font-size: 3.3rem; } }

/* Westminster Standards pages */
.standards-nav { margin-top: 1.5rem; font-size: .95rem; }
.standards-nav a[aria-current="page"] { font-weight: 700; color: var(--ink); text-decoration: none; }
.credit { font-size: .95rem; color: var(--muted); background: var(--tint); border-radius: var(--radius); padding: .75rem 1rem; }
.standards .num { color: var(--link); text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: .85em; margin-right: .25rem; }
.standards .num:hover { text-decoration: underline; }
.qa, .para { padding: .75rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.qa h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.qa .answer { margin-bottom: .4rem; }
.answer-more { margin: 0 0 .4rem 1rem; }
.proofs { font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.part { margin-top: 2rem; }
.chapter { scroll-margin-top: 1rem; }
.chapter h2 { margin-top: 2.5rem; }
:target { background: #fff8d6; box-shadow: 0 0 0 .5rem #fff8d6; border-radius: 4px; }
.toc ol { columns: 2 16rem; padding-left: 1.25rem; font-size: .95rem; }
.books { width: 100%; font-size: .9rem; border-collapse: collapse; margin: .5rem 0 1rem; }
.books td { padding: .15rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.current-q { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.current-q h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.current-q p { font-size: .95rem; }
