/* ============================================================
   async-mind.ru — screen.css
   Единый стилевой источник для всех страниц.
   Используется и превью-HTML, и шаблонами Ghost-темы.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #f8f7f3;
  --bg-elev:   #fdfcf9;
  --ink:       #1b1814;
  --ink-2:     #3a342c;
  --ink-3:     #6a6359;
  --ink-4:     #9a9183;
  --rule:      #e6e1d6;
  --rule-soft: #ece7dc;
  --tag-bg:    #1b1814;
  --tag-ink:   #f3efe5;
  --accent:    #2ea0d6; /* telegram pulse */
  --code-bg:   #1b1814;
  --code-ink:  #e8e3d6;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- PAGE FRAME ---------- */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 56px 96px;
}
.page--narrow {
  max-width: 760px;
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.brand .dot { color: var(--ink-3); margin: 0 2px; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-3);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--ink); }

.nav-links .nav-tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 6px 10px 6px 9px;
  margin-left: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-elev);
  transition: border-color .2s, background .2s, transform .2s;
}
.nav-links .nav-tg::after { content: none; }
.nav-links .nav-tg:hover {
  border-color: var(--ink);
  background: var(--bg);
  transform: translateY(-1px);
}
.nav-tg-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(46,160,214,.18);
  animation: tg-pulse 2.4s ease-in-out infinite;
}
@keyframes tg-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46,160,214,.18); }
  50%      { box-shadow: 0 0 0 5px rgba(46,160,214,.08); }
}

/* ---------- HERO ---------- */
.hero {
  padding: 72px 0 56px;
  max-width: 760px;
}
.tag-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 11px 6px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  border-radius: 3px;
  transition: transform .2s, background .2s;
}
.tag:hover { transform: translateY(-1px); }
.tag .sq {
  width: 5px; height: 5px;
  background: var(--tag-ink);
  opacity: .55;
  display: inline-block;
}
.tag--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 6px 10px 5px;
}
.tag--ghost .sq { background: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}

h1.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
h1.hero-title em {
  font-style: italic;
  color: var(--ink-2);
  font-weight: 400;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

/* ---------- BUTTONS / CTA ---------- */
.cta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn .arr {
  width: 14px; height: 1px;
  background: var(--bg);
  position: relative;
  transition: width .2s ease;
}
.btn .arr::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--bg);
  border-top: 1px solid var(--bg);
  transform: rotate(45deg);
}
.btn:hover .arr { width: 22px; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { background: var(--bg-elev); border-color: var(--ink); transform: translateY(-1px); }
.btn--ghost .arr { background: var(--ink); }
.btn--ghost .arr::after { border-color: var(--ink); }

.cta-secondary {
  font-size: 14px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .18s, border-color .18s;
}
.cta-secondary:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- META STRIP ---------- */
.meta-strip {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 13px;
  font-family: var(--mono);
  flex-wrap: wrap;
}
.meta-strip span b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 8px;
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 96px 0 28px;
  gap: 16px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head .all {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
  flex-shrink: 0;
}
.section-head .all:hover { color: var(--ink); }
.section-head .all .arr { display: inline-block; transition: transform .2s; }
.section-head .all:hover .arr { transform: translateX(3px); }

/* ---------- CARD GRID (home) ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  min-height: 188px;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #d8d1c1;
  box-shadow: 0 14px 30px -22px rgba(27,24,20,.25);
}
.card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card .meta .dot {
  width: 3px; height: 3px;
  background: var(--ink-3);
  border-radius: 50%;
  display: inline-block;
  opacity: .55;
}
.card .meta .tag-text { color: var(--ink); font-weight: 500; }
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
.card .read {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}
.card .read .arr { display: inline-block; transition: transform .2s; }
.card:hover .read .arr { transform: translateX(3px); color: var(--ink); }

/* ---------- ARTICLE LIST (blog, tag) ---------- */
.list {
  display: flex;
  flex-direction: column;
}
.list-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left .2s ease;
}
.list-row:hover { padding-left: 6px; }
.list-row:first-child { padding-top: 8px; }
.list-row .row-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.list-row .row-meta .tag-text { color: var(--ink); font-weight: 500; }
.list-row .row-meta .reading { color: var(--ink-4); }
.list-row .row-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: pretty;
  transition: color .2s;
}
.list-row:hover .row-body h3 { color: var(--ink-2); }
.list-row .row-body p {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
}

/* ---------- TAG FILTER ---------- */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.tag-filter a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 11px 6px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-3);
  transition: color .2s, border-color .2s, background .2s;
}
.tag-filter a:hover { color: var(--ink); border-color: var(--ink-3); }
.tag-filter a.is-active {
  color: var(--tag-ink);
  background: var(--tag-bg);
  border-color: var(--tag-bg);
}
.tag-filter .count { color: var(--ink-4); margin-left: 6px; }

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pagination a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: border-color .2s; }
.pagination a:hover { border-color: var(--ink); }
.pagination .disabled { opacity: .35; pointer-events: none; }

/* ---------- POST ---------- */
.post-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.post-header .tag-row { margin-bottom: 22px; }
h1.post-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.post-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 620px;
  text-wrap: pretty;
}
.post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.post-meta .dot { width: 3px; height: 3px; background: var(--ink-3); border-radius: 50%; opacity: .5; }
.post-meta .author { color: var(--ink); }

/* article body typography */
.post-body {
  max-width: 660px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.post-body > * { margin: 0 0 22px; }
.post-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 56px 0 18px;
  text-wrap: balance;
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 36px 0 12px;
}
.post-body h2:first-child, .post-body h3:first-child { margin-top: 0; }
.post-body p { margin: 0 0 22px; }
.post-body p > strong { color: var(--ink); font-weight: 600; }
.post-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-4);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.post-body a:hover { border-color: var(--ink); }
.post-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}
.post-body ul, .post-body ol {
  padding-left: 22px;
  margin: 0 0 22px;
}
.post-body li { margin: 0 0 8px; }
.post-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px auto;
  max-width: 80px;
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--rule-soft);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink);
}
.post-body pre {
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 20px 22px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 28px 0;
}
.post-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.post-body img, .post-body figure {
  margin: 32px 0;
  border-radius: 6px;
}
.post-body figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}

/* post: subscribe block at the end */
.subscribe {
  max-width: 660px;
  margin: 56px auto 0;
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.subscribe .copy {
  max-width: 360px;
}
.subscribe .copy h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--ink);
}
.subscribe .copy p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* post: tags at the end */
.post-tags {
  max-width: 660px;
  margin: 48px auto 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- ABOUT ---------- */
.about-hero {
  padding: 72px 0 48px;
  max-width: 760px;
}
.about-hero .eyebrow { margin-bottom: 22px; display: block; }
h1.about-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
h1.about-title em { font-style: italic; color: var(--ink-2); }
.about-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin: 56px 0;
}
.about-stats .stat {
  background: var(--bg);
  padding: 28px 24px;
}
.about-stats .stat .num {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.about-stats .stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}

.about-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.about-section .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.about-section .body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 620px;
}
.about-section .body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--ink);
}
.about-section .body p { margin: 0 0 14px; }
.about-section .body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-section .body ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  color: var(--ink-2);
}
.about-section .body ul li:last-child { border-bottom: 0; }

/* ---------- 404 ---------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px;
  max-width: 560px;
  margin: 0 auto;
}
.error-page .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 140px;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.error-page .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.error-page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.error-page p {
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 420px;
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-cta { max-width: 460px; }
.footer-cta .lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 500;
}
.footer-cta .sub { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.tg-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.footer-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  line-height: 1.7;
}
.footer-meta b { color: var(--ink); font-weight: 500; }

/* ---------- HERO VARIANTS ---------- */
.hero.is-centered { margin: 0 auto; text-align: center; max-width: 720px; }
.hero.is-centered .tag-row { justify-content: center; }
.hero.is-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero.is-centered .cta-row { justify-content: center; }
.hero.is-centered .meta-strip { justify-content: center; gap: 56px; }

/* ---------- BODY VARIANTS ---------- */
body.tag-warm   { --tag-bg: #3a2a1c; --tag-ink: #f6efe2; }
body.tag-forest { --tag-bg: #1f2e26; --tag-ink: #eaf0e8; }
body.tag-ink    { --tag-bg: #1b1814; --tag-ink: #f3efe5; }

body.serif-lora h1.hero-title, body.serif-lora h1.post-title, body.serif-lora h1.about-title,
body.serif-lora .card h3, body.serif-lora .section-head h2, body.serif-lora .footer-cta .lead,
body.serif-lora .post-body h2, body.serif-lora .post-body h3,
body.serif-lora .list-row .row-body h3, body.serif-lora .about-section .body h3
{ font-family: "Lora", Georgia, serif; }

body.serif-cormorant h1.hero-title, body.serif-cormorant h1.post-title, body.serif-cormorant h1.about-title,
body.serif-cormorant .card h3, body.serif-cormorant .section-head h2, body.serif-cormorant .footer-cta .lead,
body.serif-cormorant .post-body h2, body.serif-cormorant .post-body h3,
body.serif-cormorant .list-row .row-body h3, body.serif-cormorant .about-section .body h3
{ font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; }
body.serif-cormorant h1.hero-title { font-size: clamp(44px, 6vw, 72px); }

body.serif-georgia h1.hero-title, body.serif-georgia h1.post-title, body.serif-georgia h1.about-title,
body.serif-georgia .card h3, body.serif-georgia .section-head h2, body.serif-georgia .footer-cta .lead,
body.serif-georgia .post-body h2, body.serif-georgia .post-body h3,
body.serif-georgia .list-row .row-body h3, body.serif-georgia .about-section .body h3
{ font-family: Georgia, "Times New Roman", serif; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .list-row { grid-template-columns: 1fr; gap: 10px; }
  .list-row .row-meta { flex-direction: row; gap: 10px; }
  .about-section { grid-template-columns: 1fr; gap: 16px; }
  .about-stats { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page { padding: 22px 22px 64px; }
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .hero { padding-top: 48px; }
  .meta-strip { flex-wrap: wrap; gap: 20px; }
  .section-head { margin-top: 64px; }
  .footer { flex-direction: column; }
  .footer-meta { text-align: left; }
  .nav-tg-label { display: inline !important; font-size: 11px; }
}


/* ============================================================
   Ghost Card classes — required by Ghost theme validator
   .kg-width-wide and .kg-width-full for full-bleed images
   in post content editor
   ============================================================ */

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 2rem calc(50% - 42.5vw);
}

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

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

/* Ghost bookmark card */
.kg-bookmark-card {
  width: 100%;
  margin: 1.5rem 0;
}

.kg-bookmark-container {
  display: flex;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}

.kg-bookmark-content {
  flex: 1;
  padding: 1rem 1.25rem;
}

.kg-bookmark-title {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.kg-bookmark-description {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.kg-bookmark-icon {
  width: 16px;
  height: 16px;
}

.kg-bookmark-thumbnail {
  width: 160px;
  flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ghost callout card */
.kg-callout-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 6px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  margin: 1.5rem 0;
}

.kg-callout-emoji {
  font-size: 1.25rem;
  line-height: 1.5;
}

.kg-callout-text {
  flex: 1;
  font-size: 0.925rem;
  line-height: 1.7;
}

/* Ghost toggle card */
.kg-toggle-card {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.925rem;
}

.kg-toggle-content {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Ghost video card */
.kg-video-card {
  margin: 1.5rem 0;
}

.kg-video-card video {
  width: 100%;
  border-radius: 6px;
}

/* Ghost audio card */
.kg-audio-card {
  margin: 1.5rem 0;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
}

/* Ghost file card */
.kg-file-card {
  margin: 1.5rem 0;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.kg-file-card-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}

.kg-file-card-title {
  font-weight: 500;
  font-size: 0.9rem;
}

.kg-file-card-caption {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Ghost NFT / Product cards — minimal stubs */
.kg-product-card,
.kg-nft-card {
  margin: 1.5rem 0;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
