/* Unpreached — reading-first, fast, no webfonts, no JS */
:root{
  --ink:#1a1a1a; --ink-soft:#4a4a4a; --rule:#dcdcdc; --bg:#fdfdfb;
  --accent:#7a2e2e; --cta-bg:#f4f1ea; --max:44rem;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark){
  :root{ --ink:#e8e6e1; --ink-soft:#a9a49c; --rule:#3a3a38; --bg:#131312;
         --accent:#d98b8b; --cta-bg:#1e1e1c; }
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--serif);
     font-size:1.125rem;line-height:1.65;text-rendering:optimizeLegibility}
.wrap{max-width:var(--max);margin:0 auto;padding:0 1.25rem}
a{color:inherit;text-decoration:underline;text-underline-offset:2px;
  text-decoration-thickness:1px;text-decoration-color:var(--rule)}
a:hover{text-decoration-color:var(--accent)}
img{max-width:100%;height:auto}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;background:var(--bg);padding:.5rem;z-index:10}

/* header / footer */
.site-head{border-bottom:1px solid var(--rule);padding:1.5rem 0;margin-bottom:3rem}
.site-head .wrap{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;align-items:baseline;
                 justify-content:space-between}
.site-title{font-size:1.25rem;font-weight:700;text-decoration:none;letter-spacing:-.01em}
.site-nav ul{list-style:none;display:flex;gap:1.25rem;margin:0;padding:0;
             font-family:var(--sans);font-size:.875rem}
.site-nav a{text-decoration:none;color:var(--ink-soft)}
.site-nav a:hover{color:var(--ink)}
.site-foot{border-top:1px solid var(--rule);margin-top:4rem;padding:2rem 0 3rem;
           font-family:var(--sans);font-size:.8125rem;color:var(--ink-soft)}
.foot-desc{margin:0 0 .5rem}

/* listings */
.listing-title{font-size:2rem;letter-spacing:-.02em;margin:0 0 .5rem}
.listing-lede{color:var(--ink-soft);font-size:1.0625rem;margin:0 0 2.5rem}
.card{padding-bottom:2rem;margin-bottom:2rem;border-bottom:1px solid var(--rule)}
.card:last-child{border-bottom:0}
.card-title{font-size:1.5rem;line-height:1.25;letter-spacing:-.015em;margin:0 0 .5rem}
.card-title a{text-decoration:none}
.card-title a:hover{text-decoration:underline;text-decoration-color:var(--accent)}
.card-excerpt{margin:0 0 .6rem;color:var(--ink-soft)}
.card-meta,.post-meta{font-family:var(--sans);font-size:.8125rem;color:var(--ink-soft);margin:0}
.dot{margin:0 .4rem}

/* post */
.post-head{margin-bottom:2.25rem}
.post-title{font-size:2.25rem;line-height:1.15;letter-spacing:-.025em;margin:0 0 .75rem}
.post-image{margin:2rem 0 0}
.post-image figcaption{font-family:var(--sans);font-size:.8125rem;color:var(--ink-soft);
                       margin-top:.5rem}
.post-body > * + *{margin-top:1.4em}
.post-body h2{font-size:1.5rem;line-height:1.25;letter-spacing:-.015em;margin-top:2.5em}
.post-body h3{font-size:1.1875rem;margin-top:2em}
.post-body blockquote{margin:1.8em 0;padding:.25rem 0 .25rem 1.5rem;
                      border-left:3px solid var(--accent);font-style:italic;color:var(--ink)}
.post-body blockquote p{margin:0}
.post-body blockquote p + p{margin-top:.75em}
.post-body ul,.post-body ol{padding-left:1.4rem}
.post-body li + li{margin-top:.4em}
.post-body hr{border:0;border-top:1px solid var(--rule);margin:2.5em 0}
.post-body table{width:100%;border-collapse:collapse;font-family:var(--sans);font-size:.9375rem}
.post-body th,.post-body td{border-bottom:1px solid var(--rule);padding:.6rem .5rem;
                            text-align:left;vertical-align:top}
.post-tags{font-family:var(--sans);font-size:.8125rem;color:var(--ink-soft);margin-top:2rem}
.post-body figure{margin:2em 0}
.post-body .kg-image{width:100%}

/* call to action */
.cta{background:var(--cta-bg);border:1px solid var(--rule);border-radius:4px;
     padding:1.75rem;margin:3.5rem 0 0}
.cta-kicker{font-family:var(--sans);font-weight:700;font-size:1rem;margin:0 0 .5rem;
            letter-spacing:-.01em}
.cta-body{margin:0 0 1.1rem;font-size:1rem;color:var(--ink-soft)}
.cta-btn{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;
         font-family:var(--sans);font-size:.9375rem;font-weight:600;
         padding:.7rem 1.35rem;border-radius:3px}
.cta-btn:hover{opacity:.9}
@media (prefers-color-scheme: dark){ .cta-btn{color:#131312} }
.cta-alt{font-family:var(--sans);font-size:.875rem;color:var(--ink-soft);margin:1.1rem 0 0}

/* related + pagination */
.related{margin-top:4rem;border-top:1px solid var(--rule);padding-top:2rem}
.related-head{font-family:var(--sans);font-size:.8125rem;text-transform:uppercase;
              letter-spacing:.08em;color:var(--ink-soft);margin:0 0 1.5rem}
.pagination{display:flex;justify-content:space-between;align-items:center;
            font-family:var(--sans);font-size:.875rem;margin:3rem 0;
            border-top:1px solid var(--rule);padding-top:1.5rem}

@media (max-width:600px){
  body{font-size:1.0625rem}
  .post-title{font-size:1.75rem}
  .listing-title{font-size:1.625rem}
}

/* ── Koenig editor cards ─────────────────────────────────────────── */
/* Ghost requires .kg-width-wide and .kg-width-full to be styled.
   The content column is centred and narrow, so wide/full break out of it. */

.post-body .kg-card,
.post-body figure { margin-top: 2em; margin-bottom: 2em }

.post-body .kg-width-wide {
  width: min(72rem, 92vw);
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: none;
}

.post-body .kg-width-full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: none;
}

.post-body .kg-width-full img { width: 100%; height: auto }

.post-body .kg-image { display: block; margin-left: auto; margin-right: auto }

.post-body .kg-card figcaption,
.post-body figure figcaption {
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: .6rem;
}

/* galleries */
.post-body .kg-gallery-container { display: flex; flex-direction: column }
.post-body .kg-gallery-row { display: flex; flex-direction: row; justify-content: center }
.post-body .kg-gallery-image img { width: 100%; height: 100% }
.post-body .kg-gallery-row:not(:first-of-type) { margin: .6rem 0 0 }
.post-body .kg-gallery-image:not(:first-of-type) { margin: 0 0 0 .6rem }

/* embeds, bookmarks, callouts, toggles, buttons */
.post-body .kg-embed-card { display: flex; flex-direction: column; align-items: center }
.post-body .kg-embed-card iframe { max-width: 100% }

.post-body .kg-bookmark-card a.kg-bookmark-container {
  display: flex; text-decoration: none; border: 1px solid var(--rule);
  border-radius: 4px; overflow: hidden; color: inherit;
}
.post-body .kg-bookmark-content { flex: 1 1 auto; padding: 1.1rem }
.post-body .kg-bookmark-title { font-family: var(--sans); font-weight: 600; font-size: .95rem }
.post-body .kg-bookmark-description {
  font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin-top: .35rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-body .kg-bookmark-metadata {
  font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); margin-top: .5rem;
  display: flex; align-items: center; gap: .4rem;
}
.post-body .kg-bookmark-icon { width: 1rem; height: 1rem }
.post-body .kg-bookmark-thumbnail { flex: 0 0 33%; max-height: 10rem }
.post-body .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover }

.post-body .kg-callout-card {
  display: flex; gap: .75rem; padding: 1.1rem;
  border-radius: 4px; background: var(--cta-bg);
}
.post-body .kg-callout-emoji { flex: 0 0 auto }
.post-body .kg-callout-text { flex: 1 1 auto }

.post-body .kg-toggle-card { border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.1rem }
.post-body .kg-toggle-heading { display: flex; justify-content: space-between; align-items: center }
.post-body .kg-toggle-heading-text { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin: 0 }
.post-body .kg-toggle-card-icon { width: 1rem; height: 1rem }
.post-body .kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none }

.post-body .kg-button-card { display: flex; justify-content: center }
.post-body .kg-btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  padding: .7rem 1.35rem; border-radius: 3px;
}
@media (prefers-color-scheme: dark) { .post-body .kg-btn { color: #131312 } }

.post-body .kg-header-card { text-align: center; padding: 2.5rem 1rem }
.post-body .kg-header-card h2 { margin: 0 }

.post-body blockquote.kg-blockquote-alt {
  border-left: 0; font-size: 1.25rem; text-align: center; padding: 0;
}
