/* =============================================================
   mdnispel.work — nispel theme (redesign 2026-09-14)
   All-Inter typography (Mark 2026-09-21): drop EB Garamond / Times / Georgia.
   parchment ground, deep burgundy ink accent.
   ============================================================= */

/* ---- Design tokens ---- */
:root {
  --bg:        #F1EDE1;   /* warm parchment ground */
  --bg-panel:  #FBF7EC;   /* subtle contrast for callouts */
  --ink:       #1B1917;   /* body ink */
  --ink-mute:  #5A5347;   /* meta, secondary */
  --ink-soft:  #7A7160;   /* tertiary / nav rest */
  --rule:      #D6CDB4;   /* hairline rule */
  --rule-soft: #E4DDC7;   /* softer separator */
  --accent:    #7A2E20;   /* burgundy — links, accents */
  --accent-2:  #2F5464;   /* petrol — section labels, daily-wisdom */
  --accent-3:  #A5793A;   /* muted gold — ornament */
  --footer-bg: #1F1B15;   /* deep warm charcoal */
  --footer-fg: #b8ac93;

  --serif:  'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;  /* was Garamond; now Inter */
  --sans:   'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 42rem;      /* long-form reading column (~84ch at 20px) */
  --page:    58rem;      /* header/list max width, roomier for menu */
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 46, 32, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
a:hover, a:focus { color: #4E1A11; border-bottom-color: currentColor; }

::selection { background: #EAD9A7; color: var(--ink); }

/* ---- Layout ---- */
.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Home post list can be a touch wider than a single article measure. */
.site-main .container { padding-top: 1.75rem; padding-bottom: 3rem; }

.post-list { max-width: 46rem; margin: 0 auto; }

/* ---- Site header ---- */
.site-header {
  background: var(--bg);
  padding: 2.25rem 1.5rem 0;
  text-align: center;
}
.site-header-inner {
  max-width: var(--page);
  margin: 0 auto;
}

.site-title {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.site-title a {
  color: inherit;
  border-bottom: 0;
}
.site-title a:hover { color: var(--accent); }

.site-subtitle {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--ink-mute);
  letter-spacing: 0.005em;
}

.site-nav {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  line-height: 1.8;
}
.site-nav a {
  color: var(--ink-soft);
  border-bottom: 0;
  padding: 0.1rem 0.15rem;
  margin: 0 0.1rem;
}
.site-nav a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }
.site-nav a.active { color: var(--accent); }
.nav-sep {
  color: var(--rule);
  margin: 0 0.35rem;
  font-family: var(--serif);
}

/* Header double rule with centered dinkus ornament. */
.site-rule {
  position: relative;
  max-width: var(--page);
  margin: 1.6rem auto 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 6px;
  text-align: center;
}
.site-rule .dinkus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  background: var(--bg);
  color: var(--accent-3);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.6rem;
  letter-spacing: 0.1em;
}

/* ---- Post list (home) ---- */
.post-summary {
  padding: 1.6rem 0 1.9rem;
  border-bottom: 1px solid var(--rule-soft);
}
.post-summary:last-of-type { border-bottom: 0; }

.post-summary-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.003em;
  margin: 0 0 0.35rem;
}
.post-summary-title a { color: var(--ink); border-bottom: 0; }
.post-summary-title a:hover { color: var(--accent); }

/* Lead post — slightly larger, breathes more. */
.post-summary--lead { padding-top: 0.5rem; }
.post-summary--lead .post-summary-title { font-size: 1.85rem; }

.post-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}
.post-meta a { color: var(--ink-mute); border-bottom: 0; }
.post-meta a:hover { color: var(--accent); }
.meta-sep { color: var(--rule); margin: 0 0.45rem; }

.post-excerpt {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0.4rem 0 0.9rem;
}
.post-excerpt p { margin-bottom: 0.7rem; }
.post-excerpt p:last-child { margin-bottom: 0; }

.post-more { margin: 0.75rem 0 0; }
.read-more {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-bottom: 0;
}
.read-more:hover { color: #4E1A11; border-bottom: 1px solid currentColor; }

/* ---- Single post / page ---- */
.post {
  padding: 0.5rem 0 1rem;
}

.post-header {
  margin-bottom: 2.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.post-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.05rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-content p { margin-bottom: 1.1rem; }
.post-content p + p { text-indent: 0; }

.post-content h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 2.2rem 0 0.75rem;
  color: var(--ink);
  letter-spacing: -0.003em;
}
.post-content h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 1.6rem 0 0.5rem;
  color: var(--ink);
}
.post-content h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin: 1.3rem 0 0.5rem;
}

.post-content ul, .post-content ol { margin: 0 0 1.1rem 1.4rem; }
.post-content li { margin-bottom: 0.35rem; }
.post-content li p { margin-bottom: 0.4rem; }

.post-content strong { font-weight: 600; color: var(--ink); }
.post-content em { font-style: italic; }

/* Blockquote: hanging quote, thin left rule, no box. */
.post-content blockquote {
  position: relative;
  margin: 1.6rem 0 1.6rem 0.4rem;
  padding: 0.15rem 0 0.15rem 1.4rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-mute);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.65;
}
.post-content blockquote p { margin-bottom: 0.7rem; }
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.55rem;
  left: -0.15rem;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  font-style: normal;
  opacity: 0.35;
  pointer-events: none;
}

.post-content hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2rem auto;
  width: 60%;
  position: relative;
}
.post-content hr::after {
  content: "\2042"; /* asterism dinkus */
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 0.5rem;
  color: var(--accent-3);
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1.2rem 0;
  border: 1px solid var(--rule-soft);
}

.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  background: var(--bg-panel);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
}
.post-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  background: var(--bg-panel);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent-2);
  border-radius: 3px;
  padding: 0.9rem 1rem;
  margin: 1.2rem 0;
  overflow-x: auto;
}
.post-content pre code { background: transparent; border: 0; padding: 0; }

/* PDF link chip: auto-tag any anchor pointing at a .pdf. */
.post-content a[href$=".pdf"]::after {
  content: "PDF";
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.02em 0.4em;
  font-family: var(--sans);
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 2px;
  vertical-align: 0.15em;
  line-height: 1.4;
}

/* ---- Pagination ---- */
.pagination {
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.pagination ul, .pagination .pagination { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.pagination li { display: inline-block; }
.pagination a,
.pagination .page-link {
  color: var(--ink-mute);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.25rem 0.55rem;
  background: transparent;
  border-bottom-width: 1px;
}
.pagination a:hover,
.pagination .page-link:hover { color: var(--accent); border-color: var(--accent); }
.pagination .active .page-link,
.pagination .active a { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.pagination .disabled .page-link,
.pagination [aria-disabled="true"] { color: var(--rule); border-color: var(--rule-soft); cursor: default; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 4rem;
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 1.75rem 1.5rem;
}
.site-footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
}
.site-footer a {
  color: #d3b678;
  border-bottom: 1px solid rgba(211, 182, 120, 0.35);
}
.site-footer a:hover { color: #f0d9a7; border-bottom-color: currentColor; }
.footer-copy { margin: 0; }
.footer-credit { margin: 0.2rem 0 0; color: #8f836a; font-style: italic; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .site-title { font-size: 1.6rem; }
  .site-subtitle { font-size: 0.98rem; }
  .site-nav { font-size: 0.72rem; letter-spacing: 0.1em; }
  .nav-sep { margin: 0 0.2rem; }
  .post-header h1 { font-size: 1.6rem; }
  .post-summary-title { font-size: 1.25rem; }
  .post-summary--lead .post-summary-title { font-size: 1.45rem; }
  .post-content h2 { font-size: 1.25rem; }
  .site-header { padding-top: 1.5rem; }
}

@media (max-width: 420px) {
  .site-nav a { padding: 0.1rem 0.1rem; }
  .nav-sep { margin: 0 0.15rem; }
}

/* ==============================================================
   Preserved content-facing classes.  These are referenced from
   unsafe-HTML in Markdown content (Lutheran Ideas, Daily Wisdom
   items).  Retuned to the new palette but selectors are stable
   so no content edits are required.
   ============================================================== */

/* ---- Lutheran Ideas priority-report cards ---- */
.li-finding {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent-2);
  border-radius: 3px;
  background: var(--bg-panel);
}
.li-finding-badges { margin: 0 0 0.45rem; }
.li-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.li-badge.li-imp-high   { background: #9C2A22; color: #fff; }
.li-badge.li-imp-medium { background: #B87C1C; color: #fff; }
.li-badge.li-imp-low    { background: #7a7160; color: #fff; }
.li-badge.li-prio       { background: var(--accent-2); color: #fff; text-transform: none; letter-spacing: 0.03em; }

.li-finding-title {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  border: 0;
  padding: 0;
}
.li-finding-title a { color: var(--ink); border-bottom: 0; }
.li-finding-title a:hover { color: var(--accent); border-bottom: 1px solid currentColor; }
.li-finding-meta {
  margin: 0 0 0.4rem;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 0.78rem;
}
.li-finding-summary {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
}
.li-finding-topics {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.75rem;
}

/* ---- Daily Wisdom — home-page feature box ---- */
.daily-feature {
  background: var(--bg-panel);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--accent-2);
  border-radius: 3px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.daily-feature-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.daily-feature-title {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.daily-feature-title a { color: var(--ink); border-bottom: 0; }
.daily-feature-title a:hover { color: var(--accent); }
.daily-feature-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.daily-feature-excerpt {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0.4rem 0 0.7rem;
}
.daily-feature-excerpt p { margin: 0 0 0.5rem; }
.daily-feature-excerpt p:last-child { margin-bottom: 0; }

/* ---- Daily Wisdom — single-item page ---- */
.daily-citation {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  letter-spacing: 0.04em;
}
.daily-original {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  border-left: 2px solid var(--accent-2);
  padding: 0.5rem 1.1rem;
  background: var(--bg-panel);
  margin: 0 0 1.6rem;
  border-radius: 0 3px 3px 0;
  white-space: pre-line;
}
.daily-translation {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 1rem;
}
.daily-translation-source {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0.4rem 0 1.5rem;
}
.daily-language-lesson, .daily-wisdom-lesson {
  background: var(--bg-panel);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: 0.9rem 1.2rem;
  margin: 1.5rem 0;
}
.daily-language-lesson h3, .daily-wisdom-lesson h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0;
  color: var(--accent-2);
  font-weight: 600;
  font-style: normal;
}
.daily-language-lesson .daily-original {
  background: #fff;
  margin: 0.5rem 0 1.2rem;
}
.daily-language-lesson p strong { color: var(--accent-2); }

/* ---- Daily Wisdom — bibliographic footnote ---- */
.daily-bibliography {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 2rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
}
.daily-bibliography em { font-style: italic; }

/* ---- Daily Wisdom — section archive list ---- */
.daily-archive { list-style: none; margin-left: 0; padding-left: 0; }
.daily-archive li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dotted var(--rule-soft);
}
.daily-archive li:last-child { border-bottom: 0; }
.daily-archive time {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.daily-archive-kind {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-family: var(--sans);
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
