/* Layout: the same prairie horizon as the church site, but in spring green,
   with a slab "schoolbook" display face and an at-a-glance school-day card. */
:root {
  --bg: #f6f8f4;
  --surface: #ffffff;
  --ink: #1e2a22;
  --muted: #56645a;
  --rule: #d6dfd6;
  --sky-top: #c3d9e2;
  --sky-low: #eff4ef;
  --field: #7d9b52;
  --field-deep: #5b7a3b;
  --accent: #2f5a3d;
  --accent-ink: #ffffff;

  --display: "Bitter", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);

  --measure: 40rem;
  --wide: 66rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121813;
    --surface: #1a221c;
    --ink: #e3ebe4;
    --muted: #a3b2a7;
    --rule: #2c3a2f;
    --sky-top: #0b1210;
    --sky-low: #203128;
    --field: #4f6a35;
    --field-deep: #3c5228;
    --accent: #a9d0b2;
    --accent-ink: #121813;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121813;
  --surface: #1a221c;
  --ink: #e3ebe4;
  --muted: #a3b2a7;
  --rule: #2c3a2f;
  --sky-top: #0b1210;
  --sky-low: #203128;
  --field: #4f6a35;
  --field-deep: #3c5228;
  --accent: #a9d0b2;
  --accent-ink: #121813;
  color-scheme: dark;
}


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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--field); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); color: var(--ink); padding: 0.5rem 1rem;
}
.skip:focus { left: var(--gutter); z-index: 10; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }

.label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header + horizon ---------- */
.horizon {
  background:
    linear-gradient(to bottom, transparent calc(100% - 22px), var(--field) calc(100% - 22px)),
    linear-gradient(to bottom, var(--sky-top), var(--sky-low));
  border-bottom: 6px solid var(--field-deep);
}

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--field-deep); }

.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}
.hero h1 { font-size: var(--step-3); font-weight: 500; }
.hero .lede { font-size: var(--step-1); color: var(--ink); max-width: 34rem; line-height: 1.5; }
.hero .label { color: var(--ink); opacity: 0.75; }

/* ---------- Main ---------- */
main { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.prose { display: grid; gap: 1.1rem; max-width: var(--measure); min-width: 0; }
.prose + .prose { margin-top: 3rem; }

/* Sunday schedule card: the one framed object on the page */
.sunday {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--field);
  border-radius: 4px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
.sunday h2 { font-size: var(--step-1); }
.times { margin: 0; display: grid; gap: 0.75rem; }
.times div {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.times div:last-child { border-bottom: 0; padding-bottom: 0; }
.times dt { font-weight: 500; }
.times dd {
  margin: 0;
  font-family: var(--display);
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sunday .note { color: var(--muted); font-size: var(--step--1); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: 4px;
}
.button:hover { filter: brightness(1.1); }

/* ---------- Scripture ---------- */
.scripture {
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 2rem;
}
.verses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}
.verses blockquote { margin: 0; display: grid; gap: 0.75rem; align-content: start; }
.verses p {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.55;
}
.verses cite { font-style: normal; font-weight: 600; font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Further reading ---------- */
.links {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.links a {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.links a:hover { border-color: var(--accent); }
.links strong { font-family: var(--display); font-size: var(--step-1); font-weight: 500; }
.links span { color: var(--muted); font-size: var(--step--1); }
.links .host { color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-list { margin: 0; display: grid; gap: 1.5rem; }
.contact-list dt { margin-bottom: 0.2rem; }
.contact-list dd { margin: 0; font-size: var(--step-1); font-family: var(--display); overflow-wrap: anywhere; }
.contact-list dd small { display: block; font-family: var(--body); font-size: var(--step--1); color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 6px solid var(--field-deep);
  background: var(--surface);
  padding-block: 2rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-foot strong { color: var(--ink); font-family: var(--display); font-size: 1rem; font-weight: 600; }
.site-foot p + p { margin-top: 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.site-foot .credit { flex-basis: 100%; padding-top: 1rem; border-top: 1px solid var(--rule); }
