:root {
  --linen: #f3ecdf;
  --linen-deep: #e7dccb;
  --paper: #fbf8f2;
  --sand: #e4d7c3;
  --brown: #4a3426;
  --brown-soft: #6b5344;
  --ink: #3a312a;
  --muted: #7a6a5c;
  --gold: #9a7840;
  --gold-deep: #7d6232;
  --gold-soft: #c4a36a;
  --line: #ddcfba;
  --serif: "Source Serif 4", Palatino, "Palatino Linotype", Georgia, serif;
  --display: "Libre Baskerville", Palatino, Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 252, 246, 0.8), transparent 42%),
    radial-gradient(ellipse at 90% 100%, rgba(196, 163, 106, 0.12), transparent 36%),
    var(--linen);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

img { max-width: 100%; }

a { color: var(--gold-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--brown); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--brown);
  padding: 0.4rem 0.7rem;
  z-index: 5;
}
.skip:focus { top: 0.6rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.05rem 1.25rem 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brown);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--gold-deep); }

.knot { width: 36px; height: 36px; display: block; flex: none; }

.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.nav a {
  color: var(--brown);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.98rem;
}
.nav a:hover { color: var(--gold-deep); }

.rope-rule {
  height: 16px;
  margin: 0;
  background-image: url("/images/rope-line.svg");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 72px 16px;
}

.hero { margin: 0; }
.hero img { display: block; width: 100%; height: auto; }

.intro, .section, .page-head, .entry, .book-panel {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.intro { text-align: center; padding-top: 1.6rem; padding-bottom: 0.4rem; }
.dek {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--brown);
  margin: 0 0 0.6rem;
}
.byline { color: var(--muted); margin: 0 0 1rem; }

.epigraph {
  margin: 1.2rem auto 0;
  max-width: 34rem;
  padding: 0;
  border: 0;
  color: var(--brown-soft);
  font-style: italic;
}
.epigraph p { margin: 0; }
.epigraph cite { display: block; margin-top: 0.35rem; font-style: normal; font-size: 0.92rem; letter-spacing: 0.04em; color: var(--muted); }

.section { padding-top: 0.4rem; padding-bottom: 1rem; }
.section-title, .page-head h1, .entry h1 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--brown);
  line-height: 1.25;
}
.section-title { font-size: 1.7rem; text-align: center; margin: 0.2rem 0 0.4rem; }
.page-head { padding-top: 2rem; }
.page-head h1, .entry h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 0.2rem 0 0.6rem; }

.kicker {
  margin: 0;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.post-list { padding-bottom: 0.5rem; }
.post-card { padding: 1.35rem 0 1.45rem; border-bottom: 1px solid var(--line); }
.post-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.3;
  margin: 0.25rem 0 0.3rem;
}
.post-card h2 a { color: var(--brown); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold-deep); }
.meta, .excerpt { margin: 0.2rem 0; }
.meta { color: var(--muted); font-size: 0.98rem; }
.excerpt { color: var(--ink); }
.continue { margin: 0.7rem 0 0; }
.continue a { font-family: var(--display); text-decoration: none; }
.continue a:hover { text-decoration: underline; }
.card-image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  margin-bottom: 0.7rem;
}

.empty { color: var(--brown-soft); padding: 0.4rem 0 1rem; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 0.2rem;
  font-family: var(--display);
}
.pager a { text-decoration: none; }

.book-panel {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  padding-top: 1.3rem;
  padding-bottom: 1.4rem;
  background: rgba(251, 248, 242, 0.72);
  border: 1px solid var(--line);
  max-width: 40rem;
}
.book-panel h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--brown);
  font-size: 1.8rem;
  margin: 0.25rem 0 0.4rem;
}

.button, button.button {
  display: inline-block;
  background: var(--gold-soft);
  color: #2c2118;
  border: 0;
  border-radius: 2px;
  padding: 0.55rem 0.95rem;
  font-family: var(--display);
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button.button:hover { background: #b08d45; color: #fffaf3; }
.button.quiet {
  background: transparent;
  color: var(--brown-soft);
  border: 1px solid #c4b49a;
}
.button.quiet:hover { background: var(--linen-deep); color: var(--brown); }

.site-footer { margin-top: 3.5rem; padding-bottom: 2rem; }
.crisis {
  max-width: 42rem;
  margin: 1rem auto 0;
  padding: 0.85rem 1.1rem;
  text-align: center;
  background: #efe4d2;
  color: var(--brown);
  font-size: 1rem;
}
.colophon {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.9rem 0 0;
}
.colophon a { color: var(--muted); }

.interest {
  max-width: 28rem;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.interest label { font-family: var(--display); color: var(--brown); }
.interest input[type="email"], .interest input[type="text"] {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbbba4;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  width: 100%;
}
.form-note { margin: 0 0 0.4rem; color: var(--brown-soft); }
.form-error { color: #7a4034; }
.hp {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}

.preview-banner {
  max-width: 42rem;
  margin: 1rem auto 0;
  padding: 0.55rem 1.25rem;
  background: #f6e7c4;
  color: var(--brown);
  font-family: var(--display);
}

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .dek { font-size: 1.2rem; }
  .site-header { padding-top: 0.8rem; }
  .post-card h2 { font-size: 1.4rem; }
}

.scripture-page .dek { margin-bottom: 0; }
.scripture-theme { margin: 2rem 0; }
.scripture-theme h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--brown);
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
}
.scripture-theme-note, .scripture-note {
  color: var(--brown-soft);
  margin: 0 0 1rem;
}
.scripture-passage { margin: 0 0 1.4rem; }
.scripture-ref {
  font-family: var(--display);
  color: var(--brown);
  margin: 0 0 0.35rem;
}
.scripture-passage blockquote {
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 1.05rem;
  border-left: 2px solid #c4a36a;
  background: rgba(228, 215, 195, 0.45);
  font-style: italic;
  color: #4a3426;
}
.scripture-passage blockquote p { margin: 0 0 0.7rem; }
.scripture-passage blockquote p:last-child { margin-bottom: 0; }
.scripture-source {
  margin: 2.2rem 0 0;
  color: var(--brown-soft);
  font-size: 0.95rem;
}
.coming-soon {
  margin: 1.4rem 0 2rem;
  color: var(--brown);
  font-family: var(--display);
}
