/* The Straight Take — front-end CSS.
   Visual system from the approved direction (styles.css), plus self-hosted
   woff2 faces and WordPress / block / Contact Form 7 mappings. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-VariableFont_opsz-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-VariableFont_opsz-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Tokens                                                                      */
/* -------------------------------------------------------------------------- */

:root {
  --paper: #F6F1E8;
  --ink: #1A1612;
  --navy: #002240;
  --navy-hover: #003056;
  --muted: #4F4A43;
  --module: #EDE8DC;
  --rule: rgba(0, 34, 64, 0.22);
  --rule-strong: rgba(0, 34, 64, 0.45);
  --field-border: rgba(26, 22, 18, 0.38);
  --button-text: #F6F1E8;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --body-size: 1.25rem;          /* 20px */
  --body-leading: 1.65;
  --measure: 40rem;              /* ~66 characters at 20px Newsreader */
  --wide: 44rem;

  --label-size: 0.6875rem;       /* 11px */
  --label-track: 0.14em;
  --meta-size: 0.8125rem;        /* 13px */
  --small-size: 0.875rem;        /* 14px */

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --pad-x: 1.5rem;
  --header-pad: 1.25rem 0 1rem;
  --tap: 2.75rem;                /* 44px */

  --ease: 0.15s ease;

  /* Contrast on --paper (WCAG, calculated):
     ink    15.99:1  AAA
     navy   14.33:1  AAA
     muted   7.80:1  AAA
     paper on navy 14.33:1  AAA
     On --module:
     ink    14.71:1  AAA
     navy   13.18:1  AAA
     muted   7.18:1  AAA */
}

/* -------------------------------------------------------------------------- */
/* Reset and base                                                              */
/* -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--body-size);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 18, "wght" 400;
  line-height: var(--body-leading);
  font-feature-settings: "kern" 1, "liga" 1, "onum" 0;
}

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

h1, h2, h3, h4, p, blockquote, ul, ol, figure {
  margin: 0;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { text-wrap: pretty; font-weight: 400; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(0, 34, 64, 0.55);
}

a:hover {
  color: var(--navy-hover);
  text-decoration-color: var(--navy-hover);
}

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

::selection {
  background: var(--navy);
  color: var(--button-text);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  background: var(--navy);
  color: var(--button-text);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* -------------------------------------------------------------------------- */
/* UI type helpers                                                             */
/* -------------------------------------------------------------------------- */

.ui-label {
  font-family: var(--sans);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--navy);
  font-feature-settings: "liga" 0, "kern" 1;
  line-height: 1.3;
}

.meta {
  font-family: var(--sans);
  font-size: var(--meta-size);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.5;
  font-feature-settings: "liga" 0, "kern" 1, "tnum" 1;
}

.meta a {
  color: var(--muted);
  text-decoration: none;
}
.meta a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.meta-name {
  color: var(--ink);
  font-weight: 600;
}

.sample-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 0.15em 0.45em 0.1em;
  line-height: 1.3;
  vertical-align: 0.12em;
  white-space: nowrap;
  font-feature-settings: "liga" 0, "kern" 1;
}

/* -------------------------------------------------------------------------- */
/* Header and wordmark                                                         */
/* -------------------------------------------------------------------------- */

.site-header {
  margin: 0;
  padding: var(--header-pad);
}

.site-header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
  min-height: var(--tap);
  justify-content: center;
  padding-top: 0.15rem;
}

.wordmark:hover {
  color: var(--ink);
  text-decoration: none;
}

.wordmark-name {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.625rem; /* 26px */
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 48, "wght" 450;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-feature-settings: "kern" 1, "liga" 1;
  white-space: nowrap;
}

.wordmark-rule {
  display: block;
  width: 2.25rem;
  height: 1.5px;
  background: var(--navy);
  margin-top: 0.45rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-right: -0.7rem;
  padding-top: 0.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--navy);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
}

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

.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0 var(--space-xl);
}

.site-footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-lg);
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 450;
  font-variation-settings: "opsz" 28, "wght" 450;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-bottom: 0;
  line-height: 1.3;
}

.footer-wordmark:hover { color: var(--ink); text-decoration: none; }

.footer-family {
  font-family: var(--sans);
  font-size: var(--small-size);
  color: var(--muted);
  margin: 0 0 var(--space-sm);
  line-height: 1.5;
}

.footer-family a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(79, 74, 67, 0.5);
}

.footer-family a:hover { color: var(--navy); text-decoration-color: var(--navy); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 var(--space-md);
  margin-left: -0.6rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.6rem;
  font-family: var(--sans);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--navy); }

.footer-copy {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Layout shells                                                               */
/* -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

main { display: block; }

/* -------------------------------------------------------------------------- */
/* Intro (home)                                                                */
/* -------------------------------------------------------------------------- */

.intro {
  margin: var(--space-xl) auto 0;
  max-width: var(--measure);
  padding: 0 var(--pad-x);
}

.intro .sample-tag { margin-bottom: 0.75rem; display: inline-block; vertical-align: 0; }

.intro-text {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3125rem; /* 21px */
  font-variation-settings: "opsz" 24, "wght" 400;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 0.65rem;
  max-width: 36rem;
}

/* -------------------------------------------------------------------------- */
/* Post list                                                                   */
/* -------------------------------------------------------------------------- */

.section {
  margin: var(--space-xl) auto 0;
  max-width: var(--measure);
  padding: 0 var(--pad-x);
}

.section-label {
  margin-bottom: var(--space-md);
}

.featured {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.featured-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem; /* 32px mobile */
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 52, "wght" 400;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0.7rem 0 var(--space-sm);
  color: var(--ink);
  text-wrap: pretty;
}

.featured-title a {
  color: var(--ink);
  text-decoration: none;
}

.featured-title a:hover { color: var(--navy); }

.featured .meta { margin-bottom: var(--space-sm); }

.dek {
  font-size: 1.125rem; /* 18px */
  line-height: 1.55;
  font-variation-settings: "opsz" 20, "wght" 400;
  margin: 0 0 var(--space-md);
  color: var(--ink);
  max-width: 36rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 0;
}

.text-link:hover {
  color: var(--navy-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.text-link .arrow {
  display: inline-block;
  margin-left: 0.4em;
  font-weight: 400;
  transition: transform var(--ease);
}

.text-link:hover .arrow { transform: translateX(3px); }

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem 0;
}

.post-item:first-child { padding-top: 0.85rem; }

.post-item-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-item-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem; /* 22px */
  font-variation-settings: "opsz" 32, "wght" 400;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin: 0.45rem 0 0.4rem;
  text-wrap: pretty;
}

.post-item-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-item-title a:hover { color: var(--navy); }

.post-item .sample-tag { margin-bottom: 0.15rem; }

/* -------------------------------------------------------------------------- */
/* About the book                                                              */
/* -------------------------------------------------------------------------- */

.book-spot {
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--pad-x);
  background: var(--module);
}

.book-spot-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0;
}

.book-spot .ui-label { margin-bottom: var(--space-sm); }

.book-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem; /* 24px */
  font-variation-settings: "opsz" 32, "wght" 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
  text-wrap: pretty;
}

.book-blurb {
  font-size: 1.125rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 18, "wght" 400;
  margin: 0;
  color: var(--ink);
  max-width: 36rem;
}

/* When the book module sits inside the column (end of an essay),
   keep it inset rather than full-bleed. */
.book-spot--inset {
  margin-left: 0;
  margin-right: 0;
  padding: var(--space-lg) var(--space-md);
}

/* -------------------------------------------------------------------------- */
/* Email sign-up placeholder                                                   */
/* -------------------------------------------------------------------------- */

.signup-later {
  margin: var(--space-xl) auto 0;
  max-width: var(--measure);
  padding: var(--space-lg) var(--pad-x) 0;
}

.signup-later-box {
  border-top: 1.5px solid var(--navy);
  padding-top: var(--space-md);
}

.signup-later .ui-label { margin-bottom: 0.4rem; }

.signup-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  font-variation-settings: "opsz" 32, "wght" 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 var(--space-xs);
}

.signup-note {
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0 0 var(--space-md);
  max-width: 36rem;
}

.signup-disclaimer {
  font-family: var(--sans);
  font-size: var(--small-size);
  color: var(--muted);
  margin: var(--space-sm) 0 0;
  line-height: 1.5;
}

.signup-form,
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  max-width: 26rem;
}

.signup-form .field-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .signup-form .field-row {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
  }
  .signup-form .field-row input { flex: 1; min-width: 0; }
  .signup-form .field-row .btn { flex: 0 0 auto; width: auto; align-self: stretch; }
}

/* -------------------------------------------------------------------------- */
/* Forms and buttons                                                           */
/* -------------------------------------------------------------------------- */

.field { width: 100%; }

.field label,
.field-label {
  display: block;
  font-family: var(--sans);
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem; /* 16px — avoids iOS zoom */
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-border);
  border-radius: 0;
  min-height: var(--tap);
  padding: 0.65rem 0.8rem;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
  padding-top: 0.7rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.7rem 1.35rem;
  background: var(--navy);
  color: var(--button-text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--navy);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: var(--button-text);
  text-decoration: none;
}

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

.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

/* -------------------------------------------------------------------------- */
/* KJV block quote and pull quote                                              */
/* -------------------------------------------------------------------------- */

.kjv {
  margin: 2.1em 0 2.1em;
  padding: 0.15rem 0 0.15rem 1.25rem;
  border-left: 1.5px solid var(--navy);
}

.kjv p,
.kjv-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem; /* 18px — a hair under body, so it sits quietly */
  font-variation-settings: "opsz" 20, "wght" 400;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

.kjv-cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--meta-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.4;
}

.kjv .lord {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-style: italic;
}

.pullquote {
  margin: 2.4em auto;
  max-width: 28rem;
  text-align: center;
  padding: 0;
}

.pullquote-rule {
  display: block;
  width: 2.25rem;
  height: 1.5px;
  background: var(--navy);
  margin: 0 auto 1.1rem;
}

.pullquote-rule--after { margin: 1.1rem auto 0; }

.pullquote p,
.pullquote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.375rem; /* 22px */
  font-variation-settings: "opsz" 28, "wght" 400;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.pullquote .sample-tag {
  display: block;
  margin: 0 auto 0.85rem;
  width: fit-content;
  vertical-align: 0;
}

/* -------------------------------------------------------------------------- */
/* Essay (single)                                                              */
/* -------------------------------------------------------------------------- */

.essay-header {
  margin: var(--space-xl) auto 0;
  max-width: var(--measure);
  padding: 0 var(--pad-x);
}

.essay-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
}

.essay-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  font-variation-settings: "opsz" 52, "wght" 400;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0 0 var(--space-md);
  color: var(--ink);
}

.essay-header .meta { margin-bottom: 0; }

.prose {
  max-width: var(--measure);
  margin: var(--space-lg) auto 0;
  padding: 0 var(--pad-x);
}

.prose p {
  margin: 0 0 1.25em;
  font-variation-settings: "opsz" 18, "wght" 400;
}

.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4375rem; /* 23px */
  font-variation-settings: "opsz" 32, "wght" 500;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin: 2.15em 0 0.8em;
  color: var(--ink);
}

.prose a { /* body links stay underlined */ }

.essay-end {
  max-width: var(--measure);
  margin: var(--space-2xl) auto 0;
  padding: 0 var(--pad-x);
}

.pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: var(--space-xl);
  border-top: 1px solid var(--rule);
  padding-top: 0;
}

.pager-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 1.25rem 0;
  min-height: var(--tap);
  border-bottom: 1px solid var(--rule);
}

.pager-link:hover { color: var(--navy); text-decoration: none; }

.pager-link .ui-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.pager-title {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1875rem;
  font-variation-settings: "opsz" 28, "wght" 400;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: inherit;
  text-wrap: balance;
  margin-top: 0.15rem;
}

.pager-link:hover .pager-title { color: var(--navy); }

.pager-next { text-align: left; }

/* -------------------------------------------------------------------------- */
/* Contact form (style tile)                                                   */
/* -------------------------------------------------------------------------- */

.contact-block { max-width: 28rem; }

.contact-block .field { margin-bottom: 0; }

.contact-form { gap: 1.1rem; max-width: 28rem; }

.form-note {
  font-family: var(--sans);
  font-size: var(--small-size);
  color: var(--muted);
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Style tile                                                                  */
/* -------------------------------------------------------------------------- */

.tile-hero {
  max-width: var(--wide);
  margin: var(--space-lg) auto 0;
  padding: 0 var(--pad-x);
}

.tile-kicker {
  margin-bottom: 0.65rem;
}

.tile-doc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  font-variation-settings: "opsz" 48, "wght" 400;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0 0 var(--space-sm);
}

.tile-lead {
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.5;
  max-width: 36rem;
  margin: 0;
}

.tile-section {
  max-width: var(--wide);
  margin: var(--space-xl) auto 0;
  padding: 0 var(--pad-x);
}

.tile-section + .tile-section {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-xl);
}

.tile-section > .ui-label {
  margin-bottom: var(--space-md);
}

.tile-spec {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0 0 0.45rem;
  line-height: 1.4;
}

.scale-item { margin-bottom: var(--space-lg); }
.scale-item:last-child { margin-bottom: 0; }

.scale-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  font-variation-settings: "opsz" 52, "wght" 400;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0;
}

.scale-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4375rem;
  font-variation-settings: "opsz" 32, "wght" 500;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin: 0;
}

.scale-h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  font-variation-settings: "opsz" 26, "wght" 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.scale-h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.125rem;
  font-variation-settings: "opsz" 22, "wght" 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin: 0;
}

.scale-body {
  font-size: var(--body-size);
  line-height: var(--body-leading);
  font-variation-settings: "opsz" 18, "wght" 400;
  margin: 0;
  max-width: 40rem;
}

.scale-small {
  font-family: var(--sans);
  font-size: var(--small-size);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.palette {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.swatch {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.swatch-chip {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--rule-strong);
  flex-shrink: 0;
}

.swatch-name {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.swatch-hex {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.15rem;
  font-feature-settings: "tnum" 1;
}

.swatch-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.tile-demo { margin-top: 0; }

.tile-demo + .tile-demo,
.tile-block + .tile-block {
  margin-top: var(--space-xl);
}

.tile-block-label {
  margin-bottom: var(--space-sm);
}

/* A link shown in running text, for the tile */
.demo-sentence {
  font-size: var(--body-size);
  line-height: var(--body-leading);
  font-variation-settings: "opsz" 18, "wght" 400;
  max-width: 40rem;
  margin: 0;
}


/* -------------------------------------------------------------------------- */
/* Page headers (About, Contact, archive, 404, search, generic page)           */
/* -------------------------------------------------------------------------- */

.page-header {
  margin: var(--space-xl) auto 0;
  max-width: var(--measure);
  padding: 0 var(--pad-x);
}

.page-header .essay-kicker { margin-bottom: 0.85rem; }

.page-header .dek,
.page-desc {
  font-size: 1.125rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 20, "wght" 400;
  margin: var(--space-sm) 0 0;
  color: var(--ink);
  max-width: 36rem;
}

.page-header .dek .sample-tag,
.page-desc .sample-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  vertical-align: 0;
}

.page-body {
  max-width: var(--measure);
  margin: var(--space-lg) auto 0;
  padding: 0 var(--pad-x);
}

/* -------------------------------------------------------------------------- */
/* Photo slot (About) — empty reserved frame, no image                        */
/* -------------------------------------------------------------------------- */

.photo-slot {
  margin: 0 0 var(--space-lg);
  max-width: 16rem;
}

.photo-slot-frame {
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px solid var(--rule-strong);
  background: var(--module);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.photo-slot-inner {
  font-family: var(--sans);
  font-size: var(--meta-size);
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  max-width: 11rem;
}

.photo-slot-inner .ui-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.photo-slot figcaption {
  font-family: var(--sans);
  font-size: var(--small-size);
  color: var(--muted);
  margin-top: 0.65rem;
  line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* SpeerLife relationship line (About)                                         */
/* -------------------------------------------------------------------------- */

.speerlife-note {
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
}

.speerlife-note .sample-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  vertical-align: 0;
}

.speerlife-note p {
  margin: 0 0 0.75rem;
  font-variation-settings: "opsz" 18, "wght" 400;
}

.speerlife-note .footer-family {
  margin: 0;
}

.speerlife-note .footer-family a {
  color: var(--navy);
  text-decoration-color: rgba(0, 34, 64, 0.55);
}

/* -------------------------------------------------------------------------- */
/* Pagination (archive, search)                                                */
/* -------------------------------------------------------------------------- */

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "older . newer"
    "pages pages pages";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
}

.pagination-dir {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.15rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.pagination-dir:hover {
  color: var(--navy-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pagination-dir--older { grid-area: older; justify-self: start; }
.pagination-dir--newer { grid-area: newer; justify-self: end; }

.pagination-dir.is-disabled {
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
  text-decoration: none;
  cursor: default;
}

.pagination-pages {
  grid-area: pages;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
}

.pagination-pages a,
.pagination-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  font-feature-settings: "tnum" 1, "liga" 0;
}

.pagination-pages a:hover {
  color: var(--navy);
  text-decoration: none;
}

.pagination-pages [aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 -1.5px 0 var(--navy);
}

/* -------------------------------------------------------------------------- */
/* Empty state (archive, search)                                               */
/* -------------------------------------------------------------------------- */

.empty-state {
  margin-top: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-sm);
}

.empty-state .sample-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  vertical-align: 0;
}

.empty-state p {
  margin: 0 0 var(--space-md);
  font-variation-settings: "opsz" 18, "wght" 400;
  max-width: 36rem;
}

/* -------------------------------------------------------------------------- */
/* Contact form page, success and error                                        */
/* -------------------------------------------------------------------------- */

.contact-page .form-note { margin-bottom: var(--space-md); }

.contact-page .contact-form { margin-top: 0; }

.req {
  color: var(--navy);
  font-weight: 600;
  padding-left: 0.1em;
}

.field-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.875em;
}

.req-legend {
  font-family: var(--sans);
  font-size: var(--small-size);
  color: var(--muted);
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 28rem;
}

.consent input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0.8rem 0 0;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
  /* Larger tap area around the box; the associated label is also 44px+ tall. */
  padding: 0;
}

.consent label {
  display: block;
  min-height: var(--tap);
  padding: 0.55rem 0;
  font-family: var(--sans);
  font-size: var(--small-size);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  cursor: pointer;
}

.field-hint {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.3rem 0 0;
  line-height: 1.4;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field-error {
  font-family: var(--sans);
  font-size: var(--small-size);
  color: var(--ink);
  margin: 0.4rem 0 0;
  line-height: 1.45;
}

.form-alert {
  max-width: 28rem;
  margin: 0 0 var(--space-lg);
  padding: var(--space-md);
  border-left: 1.5px solid var(--navy);
  background: var(--module);
}

.form-alert .sample-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  vertical-align: 0;
}

.form-alert p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 18, "wght" 400;
}

.form-alert--error {
  border-left-color: var(--ink);
  background: var(--module);
}

.form-success {
  max-width: 36rem;
}

.form-success .sample-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  vertical-align: 0;
}

.form-success p {
  margin: 0 0 var(--space-md);
  font-variation-settings: "opsz" 18, "wght" 400;
}

/* -------------------------------------------------------------------------- */
/* 404                                                                         */
/* -------------------------------------------------------------------------- */

.not-found {
  max-width: var(--measure);
  margin: var(--space-xl) auto 0;
  padding: 0 var(--pad-x);
}

.not-found .sample-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  vertical-align: 0;
}

.not-found .essay-title { margin-bottom: var(--space-md); }

.not-found p {
  margin: 0 0 var(--space-md);
  font-variation-settings: "opsz" 18, "wght" 400;
  max-width: 36rem;
}

/* -------------------------------------------------------------------------- */
/* Search form                                                                 */
/* -------------------------------------------------------------------------- */

.search-box {
  margin: 0 0 var(--space-xl);
  max-width: 28rem;
}

.search-box .field-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .search-box .field-row {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
  }
  .search-box .field-row input { flex: 1; min-width: 0; }
  .search-box .field-row .btn { flex: 0 0 auto; width: auto; }
}

/* -------------------------------------------------------------------------- */
/* Desktop                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 699px) {
  .site-header {
    padding: 1rem 0 0.65rem;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .wordmark {
    min-height: var(--tap);
    padding-top: 0.2rem;
    padding-bottom: 0;
  }

  .wordmark-name { font-size: 1.625rem; }

  .site-nav {
    margin-left: -0.7rem;
    margin-right: 0;
    padding-top: 0;
    width: calc(100% + 0.7rem);
  }
}

@media (min-width: 700px) {
  :root {
    --pad-x: 1.5rem;
    --header-pad: 1.6rem 0 1.15rem;
  }

  .wordmark-name { font-size: 1.75rem; } /* 28px */

  .featured-title,
  .essay-title,
  .scale-h1,
  .tile-doc-title {
    font-size: 2.5rem; /* 40px */
    line-height: 1.16;
  }

  .intro-text { font-size: 1.375rem; } /* 22px */

  .post-item-title { font-size: 1.5rem; } /* 24px */

  .book-title,
  .signup-heading { font-size: 1.6875rem; } /* 27px */

  .kjv-text,
  .kjv p { font-size: 1.1875rem; } /* 19px */

  .pullquote-text,
  .pullquote p { font-size: 1.5rem; }

  .prose h2,
  .scale-h2 { font-size: 1.5625rem; } /* 25px */

  .section { margin-top: 5rem; }
  .intro { margin-top: 4.5rem; }
  .essay-header { margin-top: 4.5rem; }
  .book-spot { margin-top: 5rem; padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .signup-later { margin-top: 5rem; }
  .site-footer { margin-top: 6.5rem; }

  .pager {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .pager-link {
    padding: 1.5rem 0;
    border-bottom: 0;
  }

  .pager-link:first-child:not(:last-child) {
    padding-right: 1.75rem;
    border-right: 1px solid var(--rule);
  }

  .pager-link:last-child:not(:first-child) {
    padding-left: 1.75rem;
    text-align: right;
  }

  .pager-next { text-align: right; }

  /* A lone Next still sits in the right column of the two-column grid. */
  .pager-link.pager-next:only-child {
    grid-column: 2;
    text-align: right;
  }

  .palette {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 2rem;
  }

  .site-header-inner {
    align-items: flex-start;
  }

  .page-header,
  .not-found { margin-top: 4.5rem; }

  .page-desc,
  .page-header .dek { font-size: 1.25rem; }

  .pagination {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "older pages newer";
    column-gap: 1rem;
  }

  .pagination-pages {
    grid-column: auto;
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .palette { grid-template-columns: 1fr 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .text-link .arrow { transition: none; }
  html { scroll-behavior: auto; }
}


/* -------------------------------------------------------------------------- */
/* WordPress shell, block styles, Contact Form 7                               */
/* -------------------------------------------------------------------------- */

.wp-site-blocks {
  margin: 0;
  padding: 0;
}

/* Do not zero header padding or footer margin/padding — those are designed. */
.wp-site-blocks > *:not(.site-header):not(.site-footer) {
  margin: 0;
  padding: 0;
}

body.st-hide-signup .signup-later {
  display: none;
}

/* core/quote style variation: KJV */
.wp-block-quote.is-style-kjv {
  border: 0;
  border-left: 1.5px solid var(--navy);
  padding: 0 0 0 1.25rem;
  margin: 2.1em 0;
  background: none;
  box-shadow: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 20, "wght" 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}

.wp-block-quote.is-style-kjv p,
.wp-block-quote.is-style-kjv .kjv-text {
  font: inherit;
  margin: 0;
}

.wp-block-quote.is-style-kjv cite,
.wp-block-quote.is-style-kjv .wp-block-quote__citation,
.wp-block-quote.is-style-kjv .kjv-cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: var(--meta-size);
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.wp-block-quote.is-style-kjv cite::before,
.wp-block-quote.is-style-kjv .wp-block-quote__citation::before {
  content: "— ";
}

.wp-block-quote.is-style-kjv .lord {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

@media (min-width: 700px) {
  .wp-block-quote.is-style-kjv { font-size: 1.1875rem; }
}

/* Pull quote: core/quote is-style-pullquote or core/pullquote */
.wp-block-quote.is-style-pullquote,
.wp-block-pullquote,
.wp-block-pullquote.is-style-straight-take {
  border: 0;
  background: none;
  box-shadow: none;
  max-width: 28rem;
  margin: 2.25em auto;
  padding: 0;
  text-align: center;
}

.wp-block-quote.is-style-pullquote p,
.wp-block-pullquote p,
.wp-block-pullquote blockquote p,
.wp-block-quote.is-style-pullquote .pullquote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 28, "wght" 400;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 1.1rem 0 0;
}

@media (min-width: 700px) {
  .wp-block-quote.is-style-pullquote p,
  .wp-block-pullquote p,
  .wp-block-pullquote blockquote p,
  .wp-block-quote.is-style-pullquote .pullquote-text {
    font-size: 1.5rem;
  }
}

/* Rules around a pull quote are added by the theme render filter.
   If they are missing (editor), draw them with padding + background edges. */
.wp-block-quote.is-style-pullquote:not(:has(.pullquote-rule)) {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  background:
    linear-gradient(var(--navy), var(--navy)) top center / 2.25rem 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) bottom center / 2.25rem 1.5px no-repeat;
}

.wp-block-button .wp-block-button__link,
.wp-element-button:not(.wp-block-navigation-item__content) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.7rem 1.35rem;
  background: var(--navy);
  color: var(--button-text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--navy);
  border-radius: 0;
  text-decoration: none;
  line-height: 1.2;
}

.wp-block-button .wp-block-button__link:hover,
.wp-element-button:not(.wp-block-navigation-item__content):hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: var(--button-text);
  text-decoration: none;
}

.wp-block-button .wp-block-button__link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* Contact Form 7 — same chrome as the designed contact form */
.wpcf7 .wpcf7-form,
.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 28rem;
  margin: 0;
}

.wpcf7 label,
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7 p { margin: 0; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-border);
  border-radius: 0;
  min-height: var(--tap);
  padding: 0.65rem 0.8rem;
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7 textarea { min-height: 9rem; resize: vertical; line-height: 1.5; padding-top: 0.7rem; }

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

.wpcf7 input[type="submit"],
.wpcf7 input[type="button"],
.wpcf7 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.7rem 1.35rem;
  background: var(--navy);
  color: var(--button-text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--navy);
  border-radius: 0;
  cursor: pointer;
  width: auto;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: var(--button-text);
}

.wpcf7 .wpcf7-not-valid {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.wpcf7 .wpcf7-not-valid-tip {
  font-family: var(--sans);
  font-size: var(--small-size);
  color: var(--ink);
  margin-top: 0.35rem;
}

.wpcf7 .wpcf7-response-output {
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  background: var(--module);
  border: 0;
  border-left: 1.5px solid var(--ink);
  border-radius: 0;
  font-family: var(--serif);
  color: var(--ink);
}

.wpcf7 form.sent .wpcf7-response-output {
  background: transparent;
  border: 0;
  padding: 0;
}

.wpcf7 .wpcf7-acceptance,
.wpcf7 .wpcf7-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: var(--tap);
}

.wpcf7 input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin-top: 0.8rem;
  accent-color: var(--navy);
  flex: 0 0 auto;
}

.wpcf7-spinner { display: none; }

/* Do not let core block layout gaps undo the designed measure.
   Leave .site-header and .site-footer alone so their padding and
   footer margin-top apply. */
.wp-site-blocks > .wp-block-group,
.wp-site-blocks > main {
  margin-block: 0;
}

body.admin-bar .skip:focus { top: calc(0.75rem + 32px); }
