/* ============================================================
   NODAN — Notes on Debt and Nature
   Body: Lora (reading serif)
   Chrome: Courier Prime (typewriter — site name, nav, tags, metadata)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Tokens ── */
:root {
  --bg:          #FDFBF7;
  --ink:         #1A1A1A;
  --ink-mid:     #555550;
  --ink-light:   #999990;
  --green:       #2E4A3F;
  --rule:        #D8D4CC;
  --font-body:   'Lora', Georgia, serif;
  --font-mono:   'Courier Prime', 'Courier New', Courier, monospace;
  --measure:     68ch;
  --size-body:   1.05rem;
  --leading:     1.75;
}

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

/* ── Base ── */
html { font-size: 17px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}

/* ── Site wrapper ── */
.site-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ============================================================
   HEADER — all Courier Prime
   ============================================================ */

.site-header {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2.75rem;
}

.site-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.site-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}

/* ── Navigation — Courier Prime ── */
.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--green);
}

/* ============================================================
   HOMEPAGE INDEX
   ============================================================ */

.post-index {
  list-style: none;
}

.post-index-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0 2rem;
  padding: 1.6rem 0;
  align-items: start;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-light);
  padding-top: 0.2rem;
  white-space: nowrap;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.post-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}

.post-title:hover {
  color: var(--green);
}

.post-excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.55;
}

.post-tag {
  font-family: var(--font-mono);
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

/* ============================================================
   SINGLE POST / ESSAY PAGE
   ============================================================ */

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
  max-width: var(--measure);
}

.post-header .post-tag {
  margin-bottom: 0.6rem;
}

.post-header h1 {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.9rem;
  color: var(--ink);
}

.post-header .post-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-light);
}

/* ── Post body — Lora ── */
.post-content {
  max-width: var(--measure);
}

.post-content p {
  font-size: var(--size-body);
  margin-bottom: 1.3rem;
}

.post-content h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
}

.post-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  color: var(--ink);
}

.post-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}

.post-content a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

.post-content blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--ink-mid);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ── Figure / diagram ── */
.post-content figure {
  margin: 2.5rem 0;
}

.post-content figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: 0.75rem;
  max-width: var(--measure);
  line-height: 1.5;
}

/* ============================================================
   PAGE (About, Data Ledger)
   ============================================================ */

.page-content {
  max-width: var(--measure);
}

.page-content p {
  font-size: var(--size-body);
  margin-bottom: 1.3rem;
}

.page-content h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.page-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover { color: var(--green); }

/* ============================================================
   DATA LEDGER
   ============================================================ */

.ledger-intro {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

.ledger-intro p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin-bottom: 1rem;
}

/* ============================================================
   KOENIG EDITOR — required Ghost classes
   ============================================================ */

.kg-width-wide {
  width: 100%;
  max-width: 900px;
}

.kg-width-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   FOOTER — Courier Prime
   ============================================================ */

.site-footer {
  margin-top: 5rem;
  padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  html { font-size: 16px; }

  .site-wrapper { padding: 0 1.25rem; }

  .post-index-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .post-date { padding-top: 0; }

  .site-nav { gap: 1.25rem; }

  .post-header h1 { font-size: 1.4rem; }
}

/* ============================================================
   HOMEPAGE INTRO
   ============================================================ */

.site-intro {
  max-width: var(--measure);
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
}

.site-intro p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-mid);
}

.site-intro a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}

.site-intro a:hover {
  color: var(--green);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.pagination a:hover {
  color: var(--green);
}

/* ============================================================
   SUPPRESS FEATURE IMAGES GLOBALLY
   ============================================================ */

.post-index-item .post-media,
.post-index-item img,
.kg-image-card.kg-width-full:first-child {
  display: none;
}
