/* ============================================================
   JAY STANTS · blog pages
   readability first: cream on ink, plain scroll, no scripts
   ============================================================ */

/* ---------- shell ---------- */
.blog-body { overflow-x: visible; }

.blog-main {
  position: relative;
  z-index: 5;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(7.5rem, 16vh, 10rem) clamp(1.2rem, 5vw, 3rem) 0;
}

/* fixed nav needs a backdrop on pages that scroll text under it */
.blog-body .nav {
  background: linear-gradient(rgba(5, 6, 5, 0.94), rgba(5, 6, 5, 0.78) 65%, transparent);
}

/* ---------- shared meta bits ---------- */
.post-meta {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.post-meta time {
  font-size: 0.68rem; letter-spacing: 0.32em;
  color: var(--cream-dim); text-transform: uppercase;
}
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.post-tag {
  display: inline-block;
  font-size: 0.6rem; letter-spacing: 0.3em; font-weight: 700;
  color: var(--emerald);
  border: 1px solid rgba(23, 230, 140, 0.4);
  padding: 0.4em 0.9em; border-radius: 999px;
  text-transform: uppercase;
}

/* ---------- index ---------- */
.blog-index__head { margin-bottom: clamp(2.5rem, 7vh, 4.5rem); }

.blog-empty {
  border: 1px solid rgba(242, 236, 221, 0.14);
  background: rgba(5, 6, 5, 0.55);
  padding: 2.4rem 2rem;
  color: var(--cream-dim);
  font-size: 1.05rem; line-height: 1.7; letter-spacing: 0.02em;
}

.post-list { display: flex; flex-direction: column; gap: 1.6rem; }

.post-card {
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid rgba(242, 236, 221, 0.14);
  background: rgba(5, 6, 5, 0.55);
  padding: 2.2rem 1.9rem 2.4rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, background 0.35s;
}
.post-card:hover {
  border-color: var(--emerald);
  background: rgba(10, 20, 14, 0.7);
  transform: translateY(-4px);
}
.post-card__meta { margin-bottom: 1.4rem; }
.post-card__title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.02; color: var(--cream);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.post-card__pitch {
  margin-top: 1.1rem;
  font-size: 1rem; line-height: 1.65;
  color: var(--cream-dim); max-width: 62ch;
}
.post-card__arrow {
  position: absolute; right: 1.8rem; bottom: 1.5rem;
  font-size: 1.5rem; color: var(--emerald);
  transform: translateX(-8px); opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.post-card:hover .post-card__arrow { transform: translateX(0); opacity: 1; }

/* ---------- post ---------- */
.post { max-width: 68ch; margin: 0 auto; }

.post__head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.post__head .post-meta { margin-bottom: 1.6rem; }
.post__title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 0.98; color: var(--cream);
  letter-spacing: 0.015em; text-transform: uppercase;
}
.post__lede {
  margin-top: 1.6rem;
  font-size: 1.25rem; line-height: 1.6;
  color: var(--cream-dim);
}

.post-body {
  font-size: 1.18rem;
  line-height: 1.7;
  color: rgba(242, 236, 221, 0.88);
}
.post-body p { margin: 0 0 1.6em; }
.post-body h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05; color: var(--cream);
  letter-spacing: 0.02em; text-transform: uppercase;
  margin: 2.4em 0 0.8em;
}
.post-body h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.1; color: var(--cream);
  letter-spacing: 0.02em; text-transform: uppercase;
  margin: 2em 0 0.7em;
}
.post-body a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.15s ease;
}
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body strong { color: var(--cream); }
.post-body ul, .post-body ol { margin: 0 0 1.6em; padding-left: 1.3em; }
.post-body li { margin-bottom: 0.6em; }
.post-body li::marker { color: var(--emerald); }
.post-body blockquote {
  border-left: 2px solid var(--emerald);
  padding-left: 1.2em; margin: 0 0 1.6em;
  color: var(--cream-dim);
}
.post-body code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.85em;
  background: var(--ink-2);
  border: 1px solid rgba(242, 236, 221, 0.12);
  padding: 0.12em 0.4em;
}
.post-body pre {
  background: var(--ink-2) !important;
  border: 1px solid rgba(242, 236, 221, 0.12);
  padding: 1.2rem 1.4rem;
  margin: 0 0 1.8em;
  overflow-x: auto;
  font-size: 0.92rem; line-height: 1.6;
}
.post-body pre code {
  background: none; border: none; padding: 0; font-size: 1em;
}
.post-body hr {
  border: none;
  border-top: 1px solid rgba(242, 236, 221, 0.1);
  margin: 3em 0;
}

.post__back { margin-top: 3.5rem; }
.post__back a {
  color: var(--cream-dim); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.22em; font-weight: 500;
  transition: color 0.25s;
}
.post__back a:hover { color: var(--emerald); }
