:root {
  --bg: #f4efe6;
  --paper: #fbf7f0;
  --ink: #2a241c;
  --muted: #6d6458;
  --line: #ddd4c6;
  --olive: #3d4f3a;
  --olive-2: #4d6348;
  --brown: #6b3e2e;
  --warn: #8a5a2a;
  --max: 42rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Segoe UI", system-ui, sans-serif;
}

a { color: var(--olive); }
a:hover { color: var(--brown); }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 9;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
}
.brand small {
  display: block;
  margin-top: 0.15rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.92rem;
}
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 700;
  margin: 0 0 0.7rem;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.8rem;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }

.lead { font-size: 1.08rem; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; color: var(--muted); }

.field {
  width: 100%;
  margin: 1.2rem 0 0.7rem;
  padding: 0.95rem 1rem;
  border: 1px solid #cfc6b6;
  background: #fff;
  color: var(--ink);
  font: inherit;
  border-radius: 2px;
}
.field:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn, .chip {
  display: inline-block;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: #f7f3ea;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  font: 600 0.92rem/1.2 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  border-radius: 2px;
}
.btn.ghost, .chip {
  background: transparent;
  color: var(--olive);
}
.chip { border-color: #c8beae; color: var(--ink); font-weight: 500; }
.chip:hover { border-color: var(--olive); color: var(--olive); }
.btn.ghost:hover { background: #ece7db; }

.door {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1.05rem;
  margin: 0.7rem 0;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--olive); }
.card .who {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.layers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
}
.layers button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0.35rem 0.15rem;
  margin-right: 0.8rem;
  font: 600 0.92rem "Segoe UI", system-ui, sans-serif;
  color: var(--muted);
  cursor: pointer;
}
.layers button.on {
  color: var(--ink);
  border-bottom-color: var(--olive);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 0.45rem;
}
.tag.ref { color: var(--brown); }
.tag.warn { color: var(--warn); }

.scripture {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.65;
  background: var(--paper);
  border-left: 3px solid var(--olive);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.scripture p { margin: 0 0 0.75rem; }
.scripture p:last-child { margin: 0; }
.scripture b {
  font-weight: 700;
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.78rem;
  margin-right: 0.35rem;
}

.callout {
  background: #efe6d6;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.callout.danger {
  background: #f0e4dc;
}

.fio {
  position: relative;
  margin: 1.4rem 0 2rem;
  padding-left: 1.15rem;
}
.fio::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 1px;
  background: var(--olive);
}
.fio a, .fio .now {
  position: relative;
  display: block;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.fio .now { border-color: var(--olive); background: #eef2ea; }
.fio a::before, .fio .now::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px var(--bg);
}
.fio .meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.crumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumb a { color: var(--muted); }

.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .top { flex-direction: column; gap: 0.4rem; }
  .nav { width: 100%; }
}
