/* Disciple Thinking — v1.0
   Plain CSS, no build step. System fonts only (no third-party requests). */

:root {
  --paper: #faf7f2;
  --ink: #2b2a28;
  --ink-soft: #5d5952;
  --rule: #ddd6ca;
  --red-mark: #ed1c24;   /* sampled from the original mark; decoration only */
  --red-text: #b8161c;   /* darkened for text contrast on --paper */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: 1.5rem;
  --measure: 36rem;
  --page: 68rem;
  --header-h: 3.75rem;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--red-mark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--red-text); }

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

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: 600; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; color: var(--paper); }

/* ---------- Header ---------- */

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

.site-header__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand__name { font-size: 1.125rem; letter-spacing: 0.01em; white-space: nowrap; }

.site-nav ul,
.closing__paths ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--red-mark); }

.nav-toggle {
  font: inherit;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.5rem 0.875rem;
  min-height: 2.75rem; /* 44px touch target */
  cursor: pointer;
}

/* Small screens: with JS the nav collapses behind the Menu button;
   without JS it simply wraps beneath the wordmark. */
@media (max-width: 55.99rem) {
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { display: block; padding-bottom: 1rem; }
  .js .site-nav li + li { border-top: 1px solid var(--rule); }
  .js .site-nav a { padding: 0.75rem 0; font-size: 0.9375rem; border-bottom: 0; }
}

@media (min-width: 56rem) {
  .nav-toggle { display: none; }
  .site-nav ul { padding-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) var(--gutter) clamp(3.5rem, 9vw, 7rem);
}

.hero__mark {
  width: 100%;
  max-width: 58rem;
  margin-left: -0.5rem; /* optical alignment of the tangle with the text edge */
}

.hero__name {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero h1 span { display: block; }
.hero__jesus { color: var(--red-text); } /* red is the discipleship line in the mark */

.hero__lede {
  margin-top: 1.5rem;
  max-width: 30rem;
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  border-top: 1px solid var(--rule);
}

.section__label {
  margin-bottom: 1.25rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (min-width: 56rem) {
  .section {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    column-gap: 3rem;
  }
  .section__label { margin: 0.9rem 0 0; }
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-size: clamp(1.75rem, 4.4vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.pull {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.3;
  padding: 0.25em 0;
}
.pull--go { color: var(--red-text); }

.authority {
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 2px solid var(--red-mark);
  font-size: 1.1875rem;
}

.note {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Discipleship + Design Thinking: two strands, coloured as in the mark */
.strands {
  display: grid;
  gap: 1.75rem;
  margin: 2.25rem 0;
}
.strand { padding-top: 1rem; border-top: 2px solid var(--ink); }
.strand--red { border-top-color: var(--red-mark); }
.strand dt { font-size: 1.375rem; line-height: 1.2; }
.strand--red dt { color: var(--red-text); }
.strand dd { margin: 0.5rem 0 0; font-size: 1.0625rem; line-height: 1.55; }

@media (min-width: 36rem) {
  .strands { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

/* The five practices */
.practices {
  list-style: none;
  counter-reset: practice;
  margin: 2.25rem 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.practices li {
  counter-increment: practice;
  position: relative;
  padding: 1.25rem 0 1.4rem 2.75rem;
  border-top: 1px solid var(--rule);
}
.practices li::before {
  content: counter(practice);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--red-text);
}
.practices h3 { font-size: 1.375rem; line-height: 1.25; }
.practices p { margin-top: 0.4rem; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); }

/* Living examples */
.initiatives {
  margin: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.initiatives > div { padding: 1.15rem 0 1.25rem; border-top: 1px solid var(--rule); }
.initiatives dt { font-size: 1.25rem; line-height: 1.3; }
.initiatives dd { margin: 0.3rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); }

@media (min-width: 36rem) {
  .initiatives > div {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: baseline;
  }
  .initiatives dd { margin-top: 0; }
}

/* ---------- Closing ---------- */

.closing {
  border-top: 1px solid var(--rule);
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
}
.closing .prose { margin: 0 auto; text-align: center; }
.closing h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); font-style: italic; }
.closing__welcome {
  margin-top: 2.25rem;
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  line-height: 1.2;
}
.closing__signature { font-style: italic; color: var(--ink-soft); }

.closing__paths { margin-top: 3rem; }
.closing__paths ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
}
.closing__paths a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* 44px touch target */
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.site-footer__edition { font-family: var(--serif); font-size: 0.9375rem; font-style: italic; }
.site-footer__edition span { display: block; font-family: var(--sans); font-size: 0.8125rem; font-style: normal; }
.site-footer__meta { display: flex; gap: 1.5rem; align-items: flex-end; }

/* ---------- Print ---------- */

@media print {
  .site-header, .skip-link, .closing__paths, .site-footer__meta a { display: none; }
  body { background: #fff; font-size: 11pt; }
  .section { display: block; padding: 1.5rem 0; }
}
