@font-face { font-family: "Lora"; src: url("/fonts/Lora.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/Lora-Italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --text: #24291f;
  --muted: #6a7262;
  --accent: #4d7c4a;
  --rule: #dfe5d6;
  --quote-bg: #edf1e6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.125rem;
  line-height: 1.7;
}
main, header.site, footer.site { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }

header.site { padding-top: 2.5rem; padding-bottom: 1.5rem; text-align: center; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.site-title { font-size: 2.2rem; font-weight: normal; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.tagline { margin: .4rem 0 0; color: var(--muted); font-style: italic; font-size: 1rem; }

.post { margin: 0 0 1rem; }
.post-date { margin: 0; color: var(--muted); font-size: .9rem; font-family: system-ui, -apple-system, sans-serif; }
.post-title { font-size: 1.6rem; line-height: 1.3; margin: .3rem 0 1rem; font-weight: normal; }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--accent); }
.post-body h2 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin: 2rem 0 .5rem;
}
blockquote {
  margin: 1rem 0; padding: .75rem 1.25rem;
  background: var(--quote-bg); border-left: 3px solid var(--accent); border-radius: 4px;
}
blockquote p { margin: .5rem 0; }

hr.between { border: 0; text-align: center; margin: 3rem 0; }
hr.between::before { content: "✦"; color: var(--muted); }

.pager, .post-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-family: system-ui, -apple-system, sans-serif; font-size: .95rem;
}
.pager .nums a, .pager .nums span { padding: 0 .3rem; }
.pager .current { font-weight: bold; }
.post-nav a { max-width: 48%; }
.back { text-align: center; font-family: system-ui, -apple-system, sans-serif; font-size: .95rem; }

footer.site { color: var(--muted); font-size: .85rem; text-align: center; padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); margin-top: 3rem; }

/* navigation + reading-order features */
.site-nav { margin-top: 1rem; display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
  font-family: system-ui, -apple-system, sans-serif; font-size: .95rem; }
.site-nav a { text-decoration: none; }
.welcome { background: var(--quote-bg); border-radius: 8px; padding: 1.1rem 1.25rem; margin: 0 0 2.5rem; text-align: center; }
.welcome p { margin: .3rem 0; }
.actions, #continue { margin-top: .9rem !important; }
.btn { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--accent); color: var(--bg);
  text-decoration: none; font-family: system-ui, -apple-system, sans-serif; font-size: .95rem; margin: .2rem; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.where { margin: 0 0 .25rem; font-family: system-ui, -apple-system, sans-serif; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.post-nav a, .post-nav .done { display: flex; flex-direction: column; text-decoration: none; line-height: 1.35; }
.post-nav small { color: var(--muted); font-size: .8rem; margin-bottom: .2rem; }
.post-nav .next, .post-nav .done { text-align: right; margin-left: auto; }
.post-nav .done { color: var(--muted); font-size: .9rem; max-width: 48%; }
.page-title { font-weight: normal; font-size: 2rem; margin: 0 0 .5rem; }
.intro { color: var(--muted); margin-top: 0; }
.tabs { display: flex; gap: .5rem; margin: 1.5rem 0 1rem; }
.tabs button { font: inherit; font-family: system-ui, -apple-system, sans-serif; font-size: .95rem; padding: .45rem 1rem;
  border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--bg); }
.group h2 { font-family: system-ui, -apple-system, sans-serif; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin: 2rem 0 .5rem; }
.group h2 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .85rem; margin-left: .5rem; }
.group ol { list-style: none; padding: 0; margin: 0; }
.group li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.group li a { text-decoration: none; color: var(--text); }
.group li a:hover .t { color: var(--accent); }
.group .d { color: var(--muted); font-family: system-ui, -apple-system, sans-serif; font-size: .9rem; margin-right: .4rem; }
.group .ref { color: var(--muted); font-size: .85rem; white-space: nowrap; font-family: system-ui, -apple-system, sans-serif; }
[hidden] { display: none !important; }

/* headings use Lora */
.site-title, .tagline, .post-title, .page-title, .post-nav a, .group .t { font-family: "Lora", Georgia, serif; }
.post-title, .page-title { font-weight: 500; letter-spacing: -0.005em; }

.listen { margin: .25rem 0 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.listen-label { font-family: system-ui, -apple-system, sans-serif; font-size: .85rem; color: var(--muted); }
.listen audio { width: 100%; height: 40px; }
.listen .btn { align-self: flex-start; margin: 0; }

.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.lang select { font: inherit; font-family: system-ui, -apple-system, sans-serif; font-size: .9rem; color: var(--accent);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .6rem; cursor: pointer; }
