/* ══════════════════════════════════════════════════════════════════════
   blog.css, journal-specific styles.
   Shared foundations (tokens, reset, nav, progress, footer, shared buttons)
   live in /site.css. This file only defines the journal-specific surfaces.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --read-w: 720px;
}

/* Subtle paper texture over post-hero content */
main { position: relative; }
main::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}
main > * { position: relative; z-index: 1; }

/* Shared container utility */
.container-sm { max-width: var(--read-w); margin: 0 auto; padding: 0 32px; }

/* ═══════════════════════ JOURNAL INDEX HERO ═══════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 120px 32px 140px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: drift 40s ease-out forwards;
}
@keyframes drift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.08); }
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26,26,46,0.35) 0%, rgba(26,26,46,0.15) 30%, rgba(26,26,46,0.65) 70%, rgba(26,26,46,0.92) 100%),
    radial-gradient(ellipse at 50% 55%, rgba(26,26,46,0.1) 0%, rgba(26,26,46,0.45) 70%, rgba(26,26,46,0.75) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; width: 100%;
}

.breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.26em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.breadcrumb a { color: inherit; transition: color 200ms; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--dourado); border-bottom-color: var(--dourado); }
.breadcrumb .sep { opacity: 0.4; font-family: var(--font-display); font-style: italic; }
.breadcrumb .current { color: var(--dourado); }
.breadcrumb.on-light { color: var(--cortica); }
.breadcrumb.on-light a:hover { color: var(--azulejo); }
.breadcrumb.on-light .current { color: var(--noite); }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-style: italic;
  font-size: 13px; color: var(--dourado);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.hero-kicker::before, .hero-kicker::after {
  content: ""; width: 32px; height: 1px; background: var(--dourado); opacity: 0.65;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 28px;
  font-style: italic;
}
.hero-standfirst {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 540px; margin: 0 auto;
}
.hero-standfirst strong {
  font-style: normal; font-weight: 600; color: var(--white);
  font-family: var(--font-body);
}
.hero-signature {
  margin-top: 44px;
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--font-display); font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}
.hero-signature .rule {
  width: 56px; height: 1px; background: rgba(255,255,255,0.3);
}
.hero-inner > * { animation: fadeUp 1s var(--ease-bounce) both; }
.hero-inner > .breadcrumb     { animation-delay: 0.1s; }
.hero-inner > .hero-kicker    { animation-delay: 0.3s; }
.hero-inner > h1              { animation-delay: 0.45s; }
.hero-inner > .hero-standfirst { animation-delay: 0.7s; }
.hero-inner > .hero-signature  { animation-delay: 0.9s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════ PAGE INTRO ═══════════════════════ */
.intro {
  max-width: var(--read-w);
  margin: 0 auto;
  padding: 96px 32px 24px;
  text-align: center;
}
.intro-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--terracotta);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.intro-label::before, .intro-label::after {
  content: ""; width: 20px; height: 1px; background: var(--terracotta); opacity: 0.5;
}
.intro-lead {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.5;
  color: var(--cortica);
  max-width: 42ch; margin: 0 auto;
  text-wrap: balance;
}
.intro-lead em {
  font-style: normal;
  color: var(--noite);
}
.intro-trust {
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 14px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--cortica);
}
.intro-trust .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--terracotta); opacity: 0.55;
}

/* ═══════════════════════ ENTRIES LIST ═══════════════════════ */
.entries {
  max-width: var(--read-w);
  margin: 0 auto;
  padding: 32px 32px 0;
}
.entry { position: relative; }
.entry + .entry { border-top: 1px solid rgba(139,115,85,0.2); }

.entry-link {
  display: block;
  padding: 56px 24px 52px;
  margin-inline: -24px;
  border-radius: 4px;
  color: inherit;
  position: relative;
  transition: background 300ms ease;
}
.entry-link:hover { background: rgba(212,168,67,0.04); }

.entry-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 12px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--cortica);
  margin-bottom: 18px;
}
.entry-meta .num {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 16px; color: var(--dourado);
  letter-spacing: 0;
  text-transform: none;
  margin-right: 2px;
}
.entry-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--cortica); opacity: 0.5;
}

.entry-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--noite);
  margin-bottom: 18px;
  text-wrap: balance;
  transition: color 300ms ease;
}
.entry-link:hover .entry-title { color: var(--azulejo); }

.entry-excerpt {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--cortica);
  max-width: 58ch;
  margin-bottom: 24px;
}
.entry-read {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--terracotta);
  transition: gap 300ms var(--ease-bounce);
}
.entry-link:hover .entry-read { gap: 16px; }
.entry-read svg { transition: transform 300ms var(--ease-bounce); }

/* Latest entry accent, vertical tile-pattern bar */
.entry.latest .entry-link::before {
  content: "";
  position: absolute;
  top: 64px; left: -32px;
  width: 4px; height: 56px;
  background: repeating-linear-gradient(
    0deg,
    var(--azulejo) 0px, var(--azulejo) 10px,
    var(--marfim) 10px, var(--marfim) 14px,
    var(--terracotta) 14px, var(--terracotta) 24px,
    var(--marfim) 24px, var(--marfim) 28px);
  border-radius: 2px;
}
.latest-badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--dourado);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.latest-badge .mark {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 14px;
  color: var(--dourado);
  line-height: 1;
}

@media (max-width: 820px) {
  .entry.latest .entry-link::before { left: -2px; top: 56px; }
  .entry-link { padding: 48px 20px 44px; margin-inline: -20px; }
}

/* Empty state */
.entries-empty {
  max-width: var(--read-w); margin: 48px auto;
  padding: 48px 32px;
  text-align: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: var(--cortica);
}

/* End mark + pagination */
.entries-end {
  max-width: var(--read-w); margin: 0 auto; padding: 0 32px;
  text-align: center;
}
.entries-end-mark {
  display: inline-flex; justify-content: center;
  margin: 48px 0 16px;
  color: var(--dourado);
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; letter-spacing: 0.4em;
}
.entries-end-mark::before,
.entries-end-mark::after {
  content: ""; align-self: center;
  width: 40px; height: 1px;
  background: currentColor; opacity: 0.5;
  margin: 0 14px;
}
.pagination {
  text-align: center; padding: 16px 32px 16px;
  font-family: var(--font-display); font-style: italic;
  font-size: 16px; color: var(--cortica);
}
.pagination strong { color: var(--noite); font-style: normal; font-family: var(--font-body); font-weight: 700; }
.pagination a {
  display: inline-flex; align-items: center; gap: 10px;
  margin-left: 18px; color: var(--azulejo);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: gap 300ms var(--ease-bounce), border-color 200ms;
}
.pagination a:hover { gap: 16px; border-color: var(--azulejo); }

/* ═══════════════════════ NEWSLETTER CARD ═══════════════════════ */
.newsletter {
  max-width: 720px; margin: 96px auto 120px;
  padding: 0 32px;
}
.newsletter-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--noite);
  border-radius: 16px;
  box-shadow: var(--shadow-tile-lg);
  padding: 56px 36px 44px;
  text-align: center;
}
.newsletter-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--azulejo) 0px, var(--azulejo) 12px,
    var(--white) 12px, var(--white) 16px,
    var(--terracotta) 16px, var(--terracotta) 28px,
    var(--white) 28px, var(--white) 32px);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.newsletter-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.newsletter-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  color: var(--noite);
  margin-bottom: 14px;
  text-wrap: balance;
}
.newsletter-card p {
  color: var(--cortica);
  font-family: var(--font-display); font-style: italic;
  font-size: 17px; line-height: 1.55;
  max-width: 42ch; margin: 0 auto 28px;
}
.newsletter-form {
  display: flex; gap: 10px;
  max-width: 440px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 2px solid var(--noite);
  background: var(--marfim);
  color: var(--noite);
  outline: none;
  transition: box-shadow 250ms ease, border-color 250ms;
}
.newsletter-form input:focus {
  box-shadow: 4px 4px 0 0 var(--azulejo);
  border-color: var(--azulejo);
}
.newsletter-form button {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  border: 2px solid var(--noite);
  box-shadow: var(--shadow-tile);
  transition: transform 300ms var(--ease-bounce), box-shadow 300ms var(--ease-bounce);
}
.newsletter-form button:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--azulejo); }
.newsletter-form button:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 0 var(--azulejo); }
.newsletter-tiny { margin-top: 16px; font-size: 12px; color: var(--cortica); }
@media (max-width: 640px) {
  .newsletter-card { padding: 40px 22px 28px; }
  .newsletter-form { flex-direction: column; }
}

/* ═══════════════════════ POST HERO (single post page) ═══════════════════════ */
.post-hero {
  position: relative;
  min-height: 60vh;
  display: flex; align-items: flex-end;
  padding: 160px 0 56px;
  color: var(--white);
  background: #222 center/cover no-repeat;
  border-bottom: 2px solid var(--noite);
  overflow: hidden;
}
.post-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.35) 0%, rgba(26,26,46,0.88) 100%);
}
.post-hero > .container-sm { position: relative; z-index: 1; }
.post-hero .breadcrumb { justify-content: flex-start; margin-bottom: 20px; }
.post-hero-date {
  display: block; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--dourado); margin-bottom: 12px;
}
.post-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1;
  color: var(--white); margin: 0;
}
.post-hero.no-image {
  background: var(--calcada);
  color: var(--noite);
}
.post-hero.no-image::before { background: none; }
.post-hero.no-image h1 { color: var(--noite); }
.post-hero.no-image .post-hero-date { color: var(--terracotta); }

/* ═══════════════════════ SINGLE POST BODY ═══════════════════════ */
.blog-single { padding: 64px 0 96px; }
.blog-single-body {
  font-size: 17px; color: var(--noite); line-height: 1.8;
}
.blog-single-body > * + * { margin-top: 1.1em; }
.blog-single-body h1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; margin-top: 2em; }
.blog-single-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-top: 1.8em; color: var(--noite); }
.blog-single-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-top: 1.6em; }
.blog-single-body p { color: var(--noite); }
.blog-single-body a { color: var(--azulejo); text-decoration: underline; font-weight: 500; }
.blog-single-body a:hover { color: var(--terracotta); }
.blog-single-body strong { font-weight: 700; color: var(--noite); }
.blog-single-body em { font-style: italic; }
.blog-single-body code {
  background: var(--calcada); padding: 2px 8px; border-radius: 6px;
  font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, monospace;
}
.blog-single-body pre {
  background: var(--noite); color: #E8E8F0; padding: 20px 24px;
  border-radius: 12px; overflow-x: auto; font-size: 14px;
}
.blog-single-body pre code { background: transparent; padding: 0; color: inherit; }
.blog-single-body blockquote {
  border-left: 4px solid var(--azulejo); padding: 8px 24px;
  background: var(--calcada); border-radius: 0 12px 12px 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: var(--cortica);
}
.blog-single-body ul, .blog-single-body ol { padding-left: 24px; }
.blog-single-body li { margin: 8px 0; }
.blog-single-body img { border-radius: 12px; border: 2px solid var(--border); margin: 24px 0; }
.blog-single-body hr { border: none; border-top: 2px solid var(--border); margin: 40px 0; }

.blog-single-cta {
  margin-top: 64px; padding: 32px; text-align: center;
  background: var(--calcada); border: 2px solid var(--noite);
  border-radius: 16px; box-shadow: var(--shadow-warm);
}
.blog-single-cta p { font-family: var(--font-display); font-size: 20px; margin-bottom: 16px; color: var(--noite); }
.btn-terracotta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px;
  background: var(--terracotta); color: var(--white) !important;
  border: 2px solid var(--noite); font-weight: 700;
  box-shadow: var(--shadow-tile);
  transition: transform 200ms var(--ease-bounce), box-shadow 200ms var(--ease-bounce);
}
.btn-terracotta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--azulejo); }

.blog-back {
  display: inline-block;
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; color: var(--cortica);
  margin-bottom: 24px;
  transition: color 200ms;
}
.blog-back:hover { color: var(--azulejo); }

/* Footer styles live in /site.css */

/* ══════════════════════════════════════════════════════════════════════
   SINGLE POST (article page)
   ══════════════════════════════════════════════════════════════════════ */

/* Article title modifier, used on single-post hero h1 */
.hero h1.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 18ch;
  margin: 0 auto 40px;
  font-style: normal;
  text-wrap: balance;
}

/* Hero meta (author, date, read-time, entry number) */
.hero-meta {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 20px 28px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.hero-meta .dot { width: 3px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 50%; }
.hero-meta .author { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .author img {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  object-fit: cover;
}
.hero-meta .entry-num {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: 16px; color: var(--dourado);
  letter-spacing: 0; text-transform: none;
}
.hero-inner > .hero-meta { animation: fadeUp 1s var(--ease-bounce) 0.7s both; }

/* Article layout (two-column with sidebar) */
.article-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 32px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}
.article-shell::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}
.article-shell > * { position: relative; z-index: 1; }
.article { max-width: 680px; margin: 0 auto; width: 100%; }

@media (max-width: 980px) {
  .article-shell { grid-template-columns: 1fr; padding: 80px 24px 80px; }
  .sidebar { display: none; }
}

/* Standfirst */
.standfirst {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.55;
  color: var(--cortica);
  max-width: 34ch;
  margin: 0 auto 56px;
  text-align: center;
  position: relative;
  padding-bottom: 40px;
}
.standfirst::after {
  content: ""; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cortica), transparent);
  opacity: 0.5;
}

/* Prose body, upgraded styling for markdown-rendered content */
.blog-single-body {
  font-size: 18px; line-height: 1.8; color: #2a2a3d;
  hanging-punctuation: first last;
}
.blog-single-body p { margin: 0 0 1.5em; text-wrap: pretty; }
.blog-single-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 6.2em;
  float: left;
  line-height: 0.85;
  padding: 6px 14px 0 0;
  color: var(--azulejo);
}
.blog-single-body h1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; margin: 2em 0 0.6em; letter-spacing: -0.01em; }
.blog-single-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  margin: 2.2em 0 0.5em;
  padding-top: 20px;
  border-top: 1px solid rgba(139,115,85,0.2);
  color: var(--noite);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.blog-single-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 1.8em 0 0.4em; letter-spacing: -0.005em; }
.blog-single-body a { color: var(--azulejo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 500; transition: color 200ms; }
.blog-single-body a:hover { color: var(--terracotta); }
.blog-single-body strong { font-weight: 700; color: var(--noite); }
.blog-single-body em { font-style: italic; }
.blog-single-body code {
  background: var(--calcada); padding: 2px 8px; border-radius: 6px;
  font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, monospace;
}
.blog-single-body pre {
  background: var(--noite); color: #E8E8F0; padding: 20px 24px;
  border-radius: 12px; overflow-x: auto; font-size: 14px; margin: 1.5em 0;
}
.blog-single-body pre code { background: transparent; padding: 0; color: inherit; }

/* Blockquote = pull quote with vertical tile-pattern bar */
.blog-single-body blockquote {
  position: relative;
  margin: 2.5em -40px;
  padding: 0 0 0 56px;
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.35;
  color: var(--noite);
  letter-spacing: -0.01em;
  max-width: none;
  background: none; border: none; border-radius: 0;
  text-wrap: balance;
}
.blog-single-body blockquote::before {
  content: ""; position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: repeating-linear-gradient(
    0deg,
    var(--azulejo) 0px, var(--azulejo) 12px,
    var(--marfim) 12px, var(--marfim) 16px,
    var(--terracotta) 16px, var(--terracotta) 28px,
    var(--marfim) 28px, var(--marfim) 32px);
  border-radius: 3px;
}

.blog-single-body ul, .blog-single-body ol { padding-left: 24px; margin: 1.2em 0; }
.blog-single-body li { margin: 8px 0; }
.blog-single-body img { border-radius: 8px; margin: 2em 0; }
.blog-single-body figure { margin: 2.5em -40px; }
.blog-single-body figure img { width: 100%; border-radius: 4px; margin: 0; }
.blog-single-body figure figcaption {
  margin-top: 14px; padding: 0 4px;
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; line-height: 1.5;
  color: var(--cortica); text-align: center;
}
.blog-single-body hr { border: none; border-top: 2px solid var(--border); margin: 3em 0; }

@media (max-width: 720px) {
  .blog-single-body blockquote { margin: 2em 0; padding-left: 28px; }
  .blog-single-body figure { margin: 2em 0; }
}

/* End-of-article invitation card, tile-border-top */
.end-cta {
  position: relative;
  margin: 72px 0 0;
  background: var(--white);
  border: 2px solid var(--noite);
  border-radius: 16px;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: var(--shadow-tile-lg);
}
.end-cta::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--azulejo) 0px, var(--azulejo) 12px,
    var(--white) 12px, var(--white) 16px,
    var(--terracotta) 16px, var(--terracotta) 28px,
    var(--white) 28px, var(--white) 32px);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.end-cta-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.end-cta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--noite);
  margin-bottom: 14px;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.end-cta h3 em { font-style: italic; font-weight: 400; color: var(--azulejo); }
.end-cta p {
  color: var(--cortica);
  font-size: 16px;
  max-width: 44ch;
  margin: 0 auto 28px;
}
.end-cta .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  background: var(--terracotta);
  color: var(--white) !important;
  border: 2px solid var(--noite);
  box-shadow: var(--shadow-warm);
  font-family: var(--font-body);
  font-weight: 700; font-size: 15px;
  transition: transform 300ms var(--ease-bounce), box-shadow 300ms var(--ease-bounce);
}
.end-cta .btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 0 var(--terracotta); }
.end-cta .btn:active { transform: translate(2px,2px); box-shadow: 3px 3px 0 0 var(--terracotta); }

/* Sidebar */
.sidebar { position: sticky; top: 108px; align-self: start; }

.side-card {
  background: var(--white);
  border: 2px solid var(--noite);
  border-radius: 18px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-tile-lg);
  text-align: center;
  position: relative;
}
.side-portrait-wrap {
  position: relative;
  width: 128px; height: 128px;
  margin: 0 auto 18px;
}
.side-portrait-ring {
  position: absolute; inset: -8px;
  border: 1.5px dashed rgba(27,77,142,0.35);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.side-portrait {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 3px solid var(--azulejo);
  object-fit: cover;
  position: relative;
  box-shadow: 0 6px 18px rgba(19,58,107,0.18);
}
.side-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.side-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 24px;
  color: var(--noite);
  margin-bottom: 12px;
}
.side-bio {
  font-size: 14px; line-height: 1.65;
  color: var(--cortica);
  max-width: 26ch; margin: 0 auto 22px;
}
.side-stats {
  display: flex; justify-content: center; gap: 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(139,115,85,0.18);
  border-bottom: 1px solid rgba(139,115,85,0.18);
  margin-bottom: 24px;
}
.side-stat { text-align: center; }
.side-stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; color: var(--azulejo);
  line-height: 1;
}
.side-stat-label {
  margin-top: 4px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cortica);
}
.side-cta {
  display: inline-flex; width: 100%; justify-content: center; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px;
  background: var(--terracotta); color: var(--white) !important;
  border: 2px solid var(--noite); box-shadow: var(--shadow-tile);
  font-weight: 700; font-size: 14px;
  transition: transform 300ms var(--ease-bounce), box-shadow 300ms var(--ease-bounce);
}
.side-cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--azulejo); }
.side-cta:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 0 var(--azulejo); }

.side-recent { margin-top: 28px; padding: 22px 2px 0; }
.side-recent-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--cortica);
  text-align: center;
  margin-bottom: 16px;
}
.side-recent ul { list-style: none; display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; }
.side-recent a {
  display: block; text-align: left;
  color: var(--noite);
  font-family: var(--font-display);
  font-size: 16px; line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139,115,85,0.15);
  transition: color 200ms, padding-left 300ms var(--ease-bounce);
}
.side-recent li:last-child a { border-bottom: none; padding-bottom: 0; }
.side-recent a:hover { color: var(--azulejo); padding-left: 6px; }
.side-recent-date {
  display: block;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cortica);
  margin-top: 4px;
}

/* Journal signature, tie-back to the archive */
.journal-signature {
  max-width: 760px; margin: 16px auto 0;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  font-family: var(--font-display); font-style: italic;
  font-size: 15px; color: var(--cortica);
  letter-spacing: 0.02em;
}
.journal-signature .rule {
  flex: 1; max-width: 140px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,0.6), transparent);
}
.journal-signature .label { white-space: nowrap; }

/* Other entries, typography-led list matching journal index */
.journal-more {
  max-width: 760px; margin: 64px auto 0;
  padding: 64px 32px 96px;
}
.journal-more-head {
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(139,115,85,0.2);
}
.journal-more-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.journal-more-label::before, .journal-more-label::after {
  content: ""; width: 20px; height: 1px;
  background: var(--terracotta); opacity: 0.5;
}
.journal-more h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: var(--noite);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.journal-more-all {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-style: italic;
  font-size: 15px;
  color: var(--azulejo);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 300ms var(--ease-bounce), border-color 200ms;
}
.journal-more-all:hover { gap: 14px; border-color: var(--azulejo); }

.journal-more-list { display: flex; flex-direction: column; }
.journal-more-entry {
  display: block;
  padding: 40px 24px 36px;
  margin-inline: -24px;
  border-radius: 4px;
  color: inherit;
  transition: background 300ms ease;
}
.journal-more-entry + .journal-more-entry {
  border-top: 1px solid rgba(139,115,85,0.2);
}
.journal-more-entry:hover { background: rgba(212,168,67,0.04); }

.journal-more-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--cortica);
  margin-bottom: 14px;
}
.journal-more-meta .num {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 15px; color: var(--dourado);
  letter-spacing: 0; text-transform: none;
  margin-right: 2px;
}
.journal-more-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--cortica); opacity: 0.5;
}
.journal-more-entry h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--noite);
  margin-bottom: 14px;
  text-wrap: balance;
  transition: color 300ms ease;
}
.journal-more-entry:hover h3 { color: var(--azulejo); }
.journal-more-entry p {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 17px; line-height: 1.55;
  color: var(--cortica);
  max-width: 58ch;
  margin-bottom: 18px;
}
.journal-more-read {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--terracotta);
  transition: gap 300ms var(--ease-bounce);
}
.journal-more-entry:hover .journal-more-read { gap: 14px; }

@media (max-width: 640px) {
  .journal-more { padding: 56px 20px 80px; }
  .journal-more-entry { padding: 36px 20px 32px; margin-inline: -20px; }
}
