/* =============================================================================
   TALNIR GHOST THEME — screen.css
   Design mirrors talnir.eu: Poppins headlines + Trebuchet MS body,
   #FAFAFA bg, #226CE0 accent, white cards with 20px radius.
============================================================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --c-primary:   #1E1E1E;
  --c-bg:        #FAFAFA;
  --c-accent:    #226CE0;
  --c-muted:     #525250;
  --c-muted-lt:  #9A9A96;
  --c-border:    #E8E8E4;
  --c-white:     #FFFFFF;
  --c-dark:      #0f1e2d;
  --r-card:      20px;
  --r-btn:       100px;
  --f-head:      'Poppins', sans-serif;
  --f-body:      'Trebuchet MS', Trebuchet, sans-serif;
  --max-w:       1200px;
  --pad-x:       48px;

  /* Ghost font picker — these vars are set by Ghost Admin when a custom font
     is selected. We fall back to Talnir's brand fonts by default. */
  --gh-font-heading: var(--f-head);
  --gh-font-body:    var(--f-body);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--gh-font-body);
  background: var(--c-bg);
  color: var(--c-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--gh-font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--c-primary);
}

.gh-muted   { color: var(--c-muted); }
.gh-accent  { color: var(--c-accent); }


/* ===== BUTTONS ===== */
.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 11px 22px;
  border-radius: var(--r-btn);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.gh-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.gh-btn:active { transform: translateY(0); opacity: 1; }

.gh-btn-dark   { background: var(--c-primary); color: var(--c-white); }
.gh-btn-accent { background: var(--c-accent);  color: var(--c-white); }
.gh-btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-border);
}
.gh-btn-full { width: 100%; justify-content: center; }


/* ===== SECTION LABEL ===== */
.gh-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
/* The ● bullet is already in the text via Handlebars/HTML, colored with CSS */
.gh-section-label { color: var(--c-muted); }


/* ===== DOTS & META SEPARATORS ===== */
.gh-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-muted-lt);
  vertical-align: middle;
  flex-shrink: 0;
}

.gh-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  transition: border-color 0.2s, color 0.2s;
}
.gh-tag-pill:hover { border-color: var(--c-accent); color: var(--c-accent); }

.gh-tag-pill-accent {
  background: rgba(34, 108, 224, 0.08);
  border-color: rgba(34, 108, 224, 0.2);
  color: var(--c-accent);
}
.gh-tag-pill-accent:hover { background: rgba(34, 108, 224, 0.15); }

.gh-reading-time {
  font-size: 12px;
  color: var(--c-muted-lt);
  font-family: var(--f-body);
}


/* =============================================================================
   NAVIGATION
============================================================================= */
.gh-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s;
}
.gh-nav.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}

.gh-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.gh-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.gh-nav-logo-img {
  height: 112px;
  width: auto;
  display: block;
}
.gh-nav-logo-text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--c-primary);
  letter-spacing: -0.5px;
}

/* Nav links (rendered by Ghost's {{navigation}} helper as .nav ul) */
.gh-nav-menu .nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.gh-nav-menu .nav li a {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-primary);
  transition: color 0.2s;
}
.gh-nav-menu .nav li a:hover,
.gh-nav-menu .nav li.nav-current a {
  color: var(--c-accent);
}

/* Nav actions */
.gh-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.gh-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 0.2s;
}
.gh-burger:hover { background: var(--c-bg); }
.gh-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Burger open state */
.gh-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.gh-burger.is-open span:nth-child(2) { opacity: 0; }
.gh-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav panel */
.gh-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-white);
}
.gh-mobile-nav.is-open { display: flex; }

.gh-mobile-nav .nav {
  display: contents; /* let li items participate in the flex column directly */
}
.gh-mobile-nav .nav li a {
  display: block;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-primary);
  transition: color 0.2s;
}
.gh-mobile-nav .nav li a:hover { color: var(--c-accent); }


/* =============================================================================
   MAIN LAYOUT
============================================================================= */
.gh-main { min-height: 60vh; }

.inner-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}


/* =============================================================================
   BLOG HEADER (index.hbs top area)
============================================================================= */
.gh-blog-header {
  padding: 72px var(--pad-x) 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.gh-blog-header-inner { max-width: 640px; }

.gh-blog-title {
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -2px;
  margin-bottom: 16px;
  line-height: 1.05;
}
.gh-blog-desc {
  font-size: 17px;
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 520px;
}


/* =============================================================================
   FEATURED CARD (first post on home page)
============================================================================= */
.gh-featured-wrap {
  padding: 0 var(--pad-x) 48px;
}
.gh-featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.gh-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 440px;
}

.gh-featured-thumb {
  display: block;
  overflow: hidden;
  background: var(--c-dark);
}
.gh-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gh-featured-card:hover .gh-featured-thumb img { transform: scale(1.04); }

.gh-featured-body {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.gh-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-muted);
}
.gh-card-meta time { color: var(--c-muted); }

.gh-featured-title {
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -1px;
  line-height: 1.15;
}
.gh-featured-title a { color: inherit; transition: color 0.2s; }
.gh-featured-title a:hover { color: var(--c-accent); }

.gh-featured-excerpt {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.65;
  flex: 1;
}

.gh-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}


/* =============================================================================
   POST GRID & CARDS
============================================================================= */
.gh-posts-section {
  padding: 0 var(--pad-x) 96px;
}
.gh-posts-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.gh-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* Post card */
.gh-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.gh-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09);
}

.gh-card-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-border);
}
.gh-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gh-card:hover .gh-card-thumb img { transform: scale(1.04); }

.gh-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.gh-card-title {
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.gh-card-title a { color: inherit; transition: color 0.2s; }
.gh-card-title a:hover { color: var(--c-accent); }

.gh-card-excerpt {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
  flex: 1;
}

.gh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

/* Author byline */
.gh-author-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
}

.gh-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gh-author-avatar-lg {
  width: 44px;
  height: 44px;
}
.gh-author-initial {
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.gh-author-initial-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Empty state */
.gh-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--c-muted);
  font-size: 15px;
}


/* =============================================================================
   PAGINATION
============================================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 56px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--c-muted);
}

.pagination .older-posts,
.pagination .newer-posts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-btn);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.pagination .older-posts:hover,
.pagination .newer-posts:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.pagination .page-number {
  padding: 0 8px;
  color: var(--c-muted);
}


/* =============================================================================
   ARCHIVE HEADERS (tag.hbs, author.hbs)
============================================================================= */
.gh-archive-header {
  padding: 72px var(--pad-x) 56px;
}
.gh-archive-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.gh-archive-title {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.gh-archive-desc {
  font-size: 16px;
  color: var(--c-muted);
  max-width: 560px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.gh-archive-count {
  font-size: 13px;
  color: var(--c-muted-lt);
  font-family: var(--f-body);
}

/* Author profile in archive header */
.gh-author-profile {
  display: flex;
  align-items: center;
  gap: 24px;
}
.gh-author-profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-border);
  flex-shrink: 0;
}
.gh-author-location {
  font-size: 13px;
  color: var(--c-muted-lt);
  margin-top: 4px;
}


/* =============================================================================
   SINGLE POST — ARTICLE HEADER
============================================================================= */
.gh-article-header {
  padding: 64px var(--pad-x) 48px;
}
.gh-article-header-inner {
  max-width: 740px;
  margin: 0 auto;
}
.gh-article-header-inner--page {
  max-width: 840px;
}

.gh-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 24px;
}
.gh-article-meta time { color: var(--c-muted); }

.gh-article-title {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.gh-article-excerpt {
  font-size: 18px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 640px;
}

/* Article author byline */
.gh-article-byline { margin-top: 8px; }
.gh-author-byline-lg {
  font-size: 14px;
  font-weight: 600;
}
.gh-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
}
.gh-author-role {
  font-size: 12px;
  color: var(--c-muted-lt);
  margin-top: 2px;
}


/* =============================================================================
   FEATURE IMAGE
============================================================================= */
.gh-feature-image-wrap {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 0 var(--pad-x);
}
.gh-feature-image {
  width: 100%;
  border-radius: var(--r-card);
  display: block;
  object-fit: cover;
  max-height: 560px;
}
.gh-feature-caption {
  text-align: center;
  font-size: 13px;
  color: var(--c-muted-lt);
  margin-top: 10px;
  font-style: italic;
}


/* =============================================================================
   POST CONTENT (Koenig editor output)
============================================================================= */
.gh-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 64px;
}

/* Prose typography */
.gh-prose { font-size: 17px; line-height: 1.75; color: var(--c-primary); }

.gh-prose > * + * { margin-top: 1.5em; }

.gh-prose h1 { font-size: 2em;   letter-spacing: -1.5px; margin-top: 2em; }
.gh-prose h2 { font-size: 1.6em; letter-spacing: -1px;   margin-top: 2em; }
.gh-prose h3 { font-size: 1.3em; letter-spacing: -0.5px; margin-top: 1.8em; }
.gh-prose h4 { font-size: 1.1em; margin-top: 1.6em; }

.gh-prose p { margin-top: 1.4em; }
.gh-prose p:first-child { margin-top: 0; }

.gh-prose a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.gh-prose a:hover { opacity: 0.75; }

.gh-prose strong { font-weight: 700; }
.gh-prose em { font-style: italic; }

.gh-prose ul,
.gh-prose ol {
  padding-left: 1.5em;
  margin-top: 1.4em;
}
.gh-prose ul { list-style: disc; }
.gh-prose ol { list-style: decimal; }
.gh-prose li { margin-top: 0.5em; }

.gh-prose blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 16px 24px;
  margin: 2em 0;
  background: rgba(34, 108, 224, 0.04);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  color: var(--c-muted);
  font-style: italic;
  font-size: 1.05em;
}
.gh-prose blockquote p { margin-top: 0; }

.gh-prose code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--c-primary);
}

.gh-prose pre {
  background: var(--c-dark);
  border-radius: 12px;
  padding: 24px 28px;
  overflow-x: auto;
  margin: 2em 0;
}
.gh-prose pre code {
  background: none;
  padding: 0;
  color: #e8eaed;
  font-size: 0.875em;
  line-height: 1.7;
}

.gh-prose hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 2.5em 0;
}

.gh-prose img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.gh-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 2em 0;
}
.gh-prose th,
.gh-prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
}
.gh-prose th {
  font-weight: 700;
  background: var(--c-bg);
  color: var(--c-primary);
}
.gh-prose tr:last-child td { border-bottom: none; }

/* Koenig card sizing */
.gh-prose .kg-width-wide {
  position: relative;
  width: min(100vw - (2 * var(--pad-x)), 1000px);
  margin-left: calc(50% - min(100vw - (2 * var(--pad-x)), 1000px) / 2);
}

.gh-prose .kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Koenig image card */
.gh-prose .kg-image-card { margin: 2em 0; }
.gh-prose .kg-image-card img { border-radius: 12px; width: 100%; height: auto; }
.gh-prose .kg-image-card figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--c-muted-lt);
  margin-top: 10px;
  font-style: italic;
}

/* Koenig gallery */
.gh-prose .kg-gallery-card { margin: 2em 0; }
.gh-prose .kg-gallery-container { display: grid; gap: 8px; }
.gh-prose .kg-gallery-image img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; }

/* Koenig bookmark card */
.gh-prose .kg-bookmark-card {
  margin: 2em 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.gh-prose .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.gh-prose .kg-bookmark-container:hover { background: var(--c-bg); }
.gh-prose .kg-bookmark-content { padding: 20px 24px; flex: 1; }
.gh-prose .kg-bookmark-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.gh-prose .kg-bookmark-description { font-size: 13px; color: var(--c-muted); line-height: 1.5; margin-bottom: 12px; }
.gh-prose .kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-muted-lt); }
.gh-prose .kg-bookmark-icon { width: 16px; height: 16px; border-radius: 2px; }
.gh-prose .kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.gh-prose .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Koenig callout */
.gh-prose .kg-callout-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(34, 108, 224, 0.06);
  border: 1px solid rgba(34, 108, 224, 0.15);
  margin: 2em 0;
  font-size: 0.95em;
}
.gh-prose .kg-callout-emoji { font-size: 1.4em; line-height: 1.4; flex-shrink: 0; }
.gh-prose .kg-callout-text { flex: 1; }
.gh-prose .kg-callout-text p:first-child { margin-top: 0; }

/* Koenig video & embed */
.gh-prose .kg-embed-card,
.gh-prose .kg-video-card { margin: 2em 0; }
.gh-prose .kg-embed-card iframe { border-radius: 12px; }

/* Koenig HR */
.gh-prose .kg-hr { border: none; border-top: 1px solid var(--c-border); margin: 2.5em 0; }

/* Koenig toggle */
.gh-prose .kg-toggle-card {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 2em 0;
}
.gh-prose .kg-toggle-heading-text { font-size: 1em; }


/* =============================================================================
   ARTICLE TAGS (below content)
============================================================================= */
.gh-article-tags {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gh-article-tags-label {
  font-size: 13px;
  color: var(--c-muted-lt);
  font-family: var(--f-body);
}


/* =============================================================================
   AUTHOR CARD (below article)
============================================================================= */
.gh-author-card {
  max-width: 740px;
  margin: 16px auto 0;
  padding: 0 var(--pad-x) 64px;
}
.gh-author-card > div {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
}
.gh-author-card-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gh-author-card-body { flex: 1; }
.gh-author-card-label {
  font-size: 12px;
  color: var(--c-muted-lt);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.gh-author-card-name {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.gh-author-card-bio {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}


/* =============================================================================
   BACK BAR
============================================================================= */
.gh-back-bar {
  padding: 0 var(--pad-x) 80px;
}
.gh-back-bar-inner {
  max-width: 740px;
  margin: 0 auto;
}
.gh-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  font-family: var(--f-body);
  transition: color 0.2s;
}
.gh-back-link:hover { color: var(--c-accent); }


/* =============================================================================
   ERROR PAGE
============================================================================= */
.gh-error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 80px var(--pad-x);
  text-align: center;
}
.gh-error-inner { max-width: 480px; }
.gh-error-title {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.gh-error-desc {
  font-size: 16px;
  color: var(--c-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}


/* =============================================================================
   FOOTER
============================================================================= */
.gh-footer {
  background: var(--c-dark);
  color: var(--c-white);
  margin-top: auto;
}
.gh-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.gh-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gh-footer-tagline {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 280px;
}
.gh-footer-cols {
  display: flex;
  gap: 56px;
  flex-shrink: 0;
}
.gh-footer-col h4 {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}
.gh-footer-col .nav,
.gh-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gh-footer-col .nav li a,
.gh-footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}
.gh-footer-col .nav li a:hover,
.gh-footer-col ul li a:hover { color: var(--c-white); }

.gh-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
.gh-footer-legal {
  display: flex;
  gap: 20px;
}
.gh-footer-legal a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}
.gh-footer-legal a:hover { color: rgba(255, 255, 255, 0.7); }


/* =============================================================================
   SCROLL ANIMATIONS
============================================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid cards */
.gh-post-grid .gh-card:nth-child(2) { transition-delay: 0.08s; }
.gh-post-grid .gh-card:nth-child(3) { transition-delay: 0.16s; }
.gh-post-grid .gh-card:nth-child(4) { transition-delay: 0.04s; }
.gh-post-grid .gh-card:nth-child(5) { transition-delay: 0.12s; }
.gh-post-grid .gh-card:nth-child(6) { transition-delay: 0.20s; }


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

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
  }

  .gh-post-grid { grid-template-columns: repeat(2, 1fr); }

  .gh-featured-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .gh-featured-thumb {
    aspect-ratio: 16 / 7;
    max-height: 360px;
  }

  .gh-footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .gh-footer-tagline { max-width: 100%; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
  }

  /* Nav */
  .gh-nav-menu { display: none; }
  .gh-burger { display: flex; }
  .gh-nav-actions .gh-btn-dark { display: none; }

  /* Blog header */
  .gh-blog-header { padding: 48px var(--pad-x) 36px; }
  .gh-blog-title { font-size: 36px; letter-spacing: -1.5px; }

  /* Featured */
  .gh-featured-wrap { padding: 0 var(--pad-x) 32px; }
  .gh-featured-body { padding: 28px 24px 24px; }
  .gh-featured-title { font-size: 22px; }
  .gh-featured-footer { flex-direction: column; align-items: flex-start; }

  /* Grid */
  .gh-post-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Post */
  .gh-article-header { padding: 40px var(--pad-x) 32px; }
  .gh-article-title { font-size: 30px; letter-spacing: -1.5px; }

  .gh-content { padding-bottom: 48px; }
  .gh-prose { font-size: 16px; }

  .gh-feature-image-wrap { padding: 0 var(--pad-x); margin-bottom: 36px; }
  .gh-feature-image { max-height: 280px; }

  .gh-author-card > div { flex-direction: column; }
  .gh-author-card-img { width: 56px; height: 56px; }

  /* Archive */
  .gh-archive-header { padding: 48px var(--pad-x) 36px; }
  .gh-author-profile { flex-direction: column; text-align: center; align-items: center; }

  /* Footer */
  .gh-footer-top { padding: 40px 0 32px; }
  .gh-footer-cols { flex-direction: column; gap: 28px; }
  .gh-footer-bar { flex-direction: column; text-align: center; gap: 12px; }
  .gh-footer-legal { justify-content: center; }

  /* Error */
  .gh-error-page { min-height: 50vh; }
}

/* Small mobile */
@media (max-width: 480px) {
  .gh-nav-inner { padding: 0 16px; }
  .gh-blog-title { font-size: 30px; }
  .gh-post-grid { margin-top: 16px; }
  .gh-card-body { padding: 20px 20px 24px; }
  .gh-posts-section { padding-bottom: 64px; }
}
