/* A Defense of the Faith — base stylesheet
   Identity: a study-desk reading experience. Serif body set at a book measure,
   a sober slate-blue for structure, and a single garnet accent reserved for the
   plumb-line mark, the standard against which everything here is measured. */

:root {
  --paper:    #FBFAF7;
  --paper-2:  #F4F0E8;
  --ink:      #211C19;
  --muted:    #6E665F;
  --rule:     #E6E0D6;
  --deep:     #25405C;
  --deep-press:#1A2E43;
  --accent:   #8C2B2B;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 66ch;
  --space: clamp(1rem, 2.5vw, 1.6rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "onum";
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space);
}

a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--deep-press); }

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

.skip-link {
  position: absolute; left: -999px;
  background: var(--ink); color: var(--paper);
  padding: .5rem .9rem; border-radius: 4px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand .plumb { color: var(--deep); display: inline-flex; }
.brand .bob { fill: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.35rem; font-weight: 600; letter-spacing: .2px; }
.brand-tag { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--sans); font-size: .86rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; padding-block: .2rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

main.container { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* ---- Plumb-line signature divider ---- */
.plumb-rule {
  display: block; width: 1px; height: 2.4rem; margin: 0 0 1.6rem;
  background: var(--deep); position: relative;
}
.plumb-rule::after {
  content: ""; position: absolute; left: -3.5px; bottom: -3.5px;
  width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg);
}

/* ---- Eyebrows / section titles ---- */
.eyebrow {
  font-family: var(--sans); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem;
}
.section-title { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; }

/* ---- Hero (home) ---- */
.hero { max-width: var(--measure); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 1rem; font-weight: 600; }
.hero-body { font-size: 1.2rem; color: #3a342f; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

.btn {
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  display: inline-block; padding: .65rem 1.2rem; border-radius: 3px;
  background: var(--deep); color: var(--paper); text-decoration: none;
  border: 1px solid var(--deep);
}
.btn:hover { background: var(--deep-press); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--deep); }
.btn-quiet:hover { background: var(--paper-2); color: var(--deep-press); }

/* ---- Pillars ---- */
.pillars { margin-top: clamp(2.5rem, 6vw, 4rem); }
.pillar-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.pillar-card {
  display: block; padding: 1.3rem 1.4rem; background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease;
}
.pillar-card:hover { border-color: var(--deep); }
.pillar-card h3 { margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 600; }
.pillar-card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }

/* ---- Post lists ---- */
.recent { margin-top: clamp(2.5rem, 6vw, 4rem); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { padding-block: 1rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .25rem; }
.post-item > a { font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.post-item > a:hover { text-decoration: underline; }
.post-excerpt { color: var(--muted); font-size: 1rem; }
.post-meta { font-family: var(--sans); font-size: .78rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

/* ---- Article + prose ---- */
.post, .list-header, .list-page { max-width: var(--measure); }
.post-header h1, .list-header h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.1; margin: .2rem 0 .6rem; font-weight: 600; }
.list-intro { font-size: 1.15rem; color: #3a342f; margin: 0 0 1rem; }
.key-verse {
  font-style: italic; color: var(--deep); border-left: 2px solid var(--accent);
  padding-left: .9rem; margin: 1rem 0 0;
}

.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.6rem; font-weight: 600; line-height: 1.2; margin-top: 2.2rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.8rem; }
.prose blockquote {
  margin: 1.4rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 2px solid var(--deep); color: #3a342f; font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose img { max-width: 100%; height: auto; }

/* ---- Scripture references ---- */
.ref { font-variant-numeric: lining-nums; white-space: nowrap; }
.ref-tr { font-family: var(--sans); font-size: .78em; color: var(--muted); }
a.ref { text-decoration: none; border-bottom: 1px dotted var(--deep); }
a.ref:hover { border-bottom-style: solid; }

.muted { color: var(--muted); }

/* ---- Footer ---- */
.site-footer { margin-top: clamp(3rem, 8vw, 5rem); border-top: 1px solid var(--rule); padding-block: 2.2rem; }
.site-footer .plumb-rule { margin-bottom: 1.2rem; }
.footer-text { font-size: 1.05rem; margin: 0 0 .6rem; max-width: var(--measure); }
.footer-text .ref { font-style: italic; color: var(--muted); }
.footer-meta { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin: 0; }
.footer-meta a { color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 38rem) {
  body { font-size: 1.06rem; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .site-nav ul { gap: .9rem 1rem; }
}

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