/* Amen.net — Good News Community Church, Carthage NC
 *
 * No framework, no build step, no external fonts or CDNs. The whole
 * stylesheet is one file on purpose: a seeker on a phone in a parking lot
 * should get the page in one round trip.
 *
 * System font stack only — nothing loads from Google Fonts, so there is no
 * third-party request, no privacy footnote, and no render delay.
 */

/* ------------------------------------------------------------- tokens -- */

:root {
  --bg:          #faf8f4;
  --bg-raised:   #ffffff;
  --bg-sunken:   #f2eee6;
  --text:        #23201c;
  --text-muted:  #5f594f;
  --accent:      #2f5d50;
  --accent-text: #ffffff;
  --accent-soft: #e8efe9;
  --border:      #e2ddd3;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;   /* comfortable reading width */
  --wide:    64rem;   /* page container */
  --radius:  10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #191714;
    --bg-raised:   #221f1b;
    --bg-sunken:   #131110;
    --text:        #ece7de;
    --text-muted:  #a49c8e;
    --accent:      #7fb3a1;
    --accent-text: #14201c;
    --accent-soft: #22302b;
    --border:      #35302a;
  }
}

/* --------------------------------------------------------------- base -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.1875rem; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------- structure -- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section { padding-block: clamp(2.75rem, 8vw, 4.5rem); }
section + section { border-top: 1px solid var(--border); }

.section-sunken { background: var(--bg-sunken); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

/* -------------------------------------------------------------- header -- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.15;
}
.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* On a phone the sticky header has to stay short — it is subtracted from
 * every screen of content below it. Left unconstrained, the brand subtitle
 * and "Start here" each wrap to two lines and it doubles in height. */
@media (max-width: 40rem) {
  .nav { gap: 0.9rem; font-size: 0.875rem; }
  .nav .nav-hide-sm { display: none; }
  .nav a { white-space: nowrap; }
  .site-header .wrap { min-height: 3.5rem; padding-inline: 1rem; }
  .brand { font-size: 1.125rem; }
  .brand span { font-size: 0.5625rem; letter-spacing: 0.08em; white-space: nowrap; }
}

/* --------------------------------------------------------------- hero -- */

.hero {
  padding-block: clamp(3rem, 11vw, 6rem);
}
.hero h1 { max-width: 18ch; }
.hero .lede {
  font-size: clamp(1.125rem, 2.6vw, 1.3125rem);
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------ buttons -- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;          /* tap target */
  transition: transform 0.06s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { opacity: 0.92; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-sunken); }

/* --------------------------------------------------------- when/where -- */

.visit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.75rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card h3 { margin-bottom: 0.35rem; }
.card p  { margin-bottom: 0; color: var(--text-muted); }

.when-time {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}

.when-row { margin-bottom: 0.9rem; }
.when-row p:last-child {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.when-note {
  margin-top: 1.1rem !important;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

address {
  font-style: normal;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- expect -- */

.expect-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.expect-list h3 { margin-bottom: 0.3rem; }
.expect-list p  { color: var(--text-muted); margin-bottom: 0; }

/* ------------------------------------------------------------- photos -- */

.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
}
.photo img {
  width: 100%;
  display: block;
}

.photo-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  max-width: var(--measure);
}

/* Section holding the congregation photo: tight top padding so the photo
 * reads as part of the hero rather than as a separate slab. */
.section-photo { padding-block: 0 clamp(2.75rem, 8vw, 4.5rem); }

.portrait {
  margin: 0 0 1.25rem;
  max-width: 22rem;
}
.portrait img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.portrait figcaption {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------- kids -- */

.kids-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------- pullquote -- */

.pullquote {
  margin: 2.75rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
  max-width: 40rem;
}
.pullquote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 1.625rem);
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.pullquote footer {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------ sermons -- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
  max-width: 44rem;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* placeholder shown until a real video id is dropped in */
.video-frame .video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------- start-here -- */

.start-cta {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  max-width: 46rem;
}
.start-cta h2 { margin-bottom: 0.4rem; }

.session-list {
  list-style: none;
  counter-reset: session;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.session-list li {
  counter-increment: session;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.session-list li::before {
  content: counter(session);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-content: center;
}
.session-list h3 { margin-bottom: 0.15rem; font-size: 1.0625rem; }
.session-list p  { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* ------------------------------------------------------ session pages -- */
/* Long-form reading. Wider line height and a strict measure: this is the one
 * place on the site where someone reads several hundred words in a sitting. */

.session-meta {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.prose { max-width: 36rem; line-height: 1.75; }
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: none; }

/* Jim's writing leans on short standalone lines for emphasis. Tightening
 * the gap between consecutive short paragraphs keeps that rhythm from
 * reading as a series of disconnected fragments. */
.prose p + p { margin-top: -0.15em; }

.prose ul {
  margin: 0 0 1.15em;
  padding-left: 1.25rem;
}
.prose ul li { margin-bottom: 0.35em; }

.question-list {
  list-style: none;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--border);
  margin: 1.25rem 0 1.5rem;
}
.question-list li {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5em;
}
.question-list li:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ passage -- */

.passage {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 1.9rem);
  margin: 1.5rem 0;
}
.passage-ref {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.passage p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1em;
}
.passage p:last-child { margin-bottom: 0; }

.vn {
  font-family: var(--sans);
  font-size: 0.6875em;
  font-weight: 700;
  color: var(--accent);
  vertical-align: 0.35em;
  margin-right: 0.15em;
  line-height: 0;
}

/* Soft inline emphasis for verses a session points at directly. Deliberately
 * an inline span rather than a restructured paragraph: the ESV licence
 * forbids altering the text, and re-flowing it into separate blocks would be
 * editing the passage rather than pointing at part of it. */
.vfocus {
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 0.1em 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ------------------------------------------------------- prayer / end -- */

.prayer {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  margin: 1.5rem 0;
}
.prayer p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
}

.takeaway {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
  margin-top: 2.5rem;
}

.session-foot {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.session-next {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------ beliefs -- */

.belief-list {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 2.25rem;
  max-width: var(--measure);
}
.belief-list h3 {
  font-size: 1.3125rem;
  margin-bottom: 0.5rem;
}
.belief-list p { color: var(--text-muted); margin-bottom: 0.9em; }
.belief-list p:last-child { margin-bottom: 0; }

/* Each section runs doctrine first, then a pastoral turn addressed to the
 * reader. The second paragraph carries that turn — giving it the full text
 * colour keeps it from reading as a footnote to the paragraph above. */
.belief-list p + p { color: var(--text); }

/* -------------------------------------------------------------- verse -- */

blockquote.verse {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  max-width: var(--measure);
}
blockquote.verse p {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
}
blockquote.verse cite {
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------ contact -- */

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 1.75rem;
}

/* ------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  padding-block: 2.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); }
.site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.legal {
  font-size: 0.8125rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: none;
}

/* ------------------------------------------------- editorial reminder -- */
/* Anything still needing real copy from the church is wrapped in .todo so
 * it is impossible to miss on the staging site — and impossible to ship by
 * accident. Every one of these must be gone before cutover. */

.todo {
  background: repeating-linear-gradient(
    45deg, #fff4d6, #fff4d6 10px, #ffeec0 10px, #ffeec0 20px
  );
  color: #5c4708;
  border: 1px dashed #c9a227;
  border-radius: 6px;
  padding: 0.15em 0.45em;
  font-family: var(--sans);
  font-size: 0.9em;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .todo {
    background: repeating-linear-gradient(
      45deg, #3a2f10, #3a2f10 10px, #322909 10px, #322909 20px
    );
    color: #f0d795;
    border-color: #7a6320;
  }
}
