/* ============================================================
   R2 Consulting — Ghost Blog Theme
   Design system matched to r2c.io (ink-950 dark, cyan brand)
   ============================================================ */

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

:root {
  /* Ink palette (dark navy-blacks) */
  --ink-950: #080c15;
  --ink-900: #0c1222;
  --ink-800: #111a30;
  --ink-700: #1a2540;
  --ink-600: #243050;

  /* Slate palette (light grays) */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;

  /* Brand accent — cyan / electric blue */
  --brand-400: #22d3ee;
  --brand-500: #06b6d4;
  --brand-600: #0891b2;

  /* Semantic */
  --bg-primary:   var(--ink-950);
  --bg-surface:   var(--ink-900);
  --bg-elevated:  var(--ink-800);
  --border:       rgba(148, 163, 184, 0.10);
  --border-hover: rgba(148, 163, 184, 0.20);
  --text-primary: var(--slate-100);
  --text-secondary: var(--slate-400);
  --accent:       var(--brand-500);
  --accent-hover: var(--brand-400);

  /* Type scale */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --content-width: 720px;
  --wide-width: 1100px;
  --full-width: 1320px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--brand-500);
  color: var(--ink-950);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--slate-50);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

/* ---------- Layout Containers ---------- */
.r2-container {
  width: 100%;
  max-width: var(--full-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.r2-content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-lg);
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--ink-950);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-lg);
  color: var(--ink-950);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(8, 12, 21, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--full-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--slate-50);
  text-decoration: none;
}
.site-header__logo:hover {
  color: var(--slate-50);
}
.site-header__logo img {
  height: 36px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-400);
  transition: color 0.2s var(--ease);
  text-decoration: none;
}
.site-header__nav a:hover,
.site-header__nav a.active {
  color: var(--slate-50);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--ink-950) !important;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.site-header__cta:hover {
  background: var(--accent-hover);
  color: var(--ink-950) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-100);
  cursor: pointer;
  padding: var(--space-sm);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ink-900);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  .site-header__nav.is-open { display: flex; }
}

/* ============================================================
   HERO — Index / Tag / Author pages
   ============================================================ */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}
.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.hero__title {
  margin-bottom: var(--space-md);
}
.hero__desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ============================================================
   POST GRID
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
  padding: 0 0 var(--space-3xl);
}

@media (max-width: 480px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Post Card ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.post-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-800);
}
.post-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.post-card:hover .post-card__image-wrap img {
  transform: scale(1.04);
}

.post-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  gap: var(--space-sm);
}

.post-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.post-card__title {
  font-size: 1.25rem;
  line-height: 1.35;
}
.post-card__title a {
  color: var(--slate-50);
  text-decoration: none;
}
.post-card__title a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.post-card__meta-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.post-card__meta-sep {
  opacity: 0.3;
}

/* Featured card */
.post-card--featured {
  border-color: rgba(6, 182, 212, 0.25);
}
.post-card--featured .post-card__tag::before {
  content: '★ ';
}

/* ============================================================
   FEATURED HERO (first post on index)
   ============================================================ */
.featured-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.featured-hero__image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.featured-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.featured-hero__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.featured-hero__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.featured-hero__title a {
  color: var(--slate-50);
}
.featured-hero__title a:hover {
  color: var(--accent);
}

.featured-hero__excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
}

.featured-hero__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.featured-hero__read:hover {
  gap: 10px;
}

@media (max-width: 768px) {
  .featured-hero {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
}

.post-header__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  padding: 4px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 9999px;
}

.post-header__title {
  margin-bottom: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.post-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.post-header__author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.post-header__author-name {
  font-weight: 600;
  color: var(--slate-200);
}

/* Feature image */
.post-feature-image {
  max-width: var(--wide-width);
  margin: 0 auto var(--space-2xl);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-feature-image img {
  width: 100%;
  height: auto;
}

/* ---------- Post Content (Ghost editor output) ---------- */
.post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-200);
}

.post-content > * + * {
  margin-top: 1.5em;
}

.post-content h2 {
  margin-top: 2.5em;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.post-content h3 {
  margin-top: 2em;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(6, 182, 212, 0.3);
}
.post-content a:hover {
  text-decoration-color: var(--accent);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border-radius: 0 12px 12px 0;
  color: var(--slate-300);
  font-style: italic;
}

.post-content pre {
  background: var(--ink-900);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--ink-800);
  padding: 2px 6px;
  border-radius: 4px;
}
.post-content pre code {
  background: none;
  padding: 0;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
}
.post-content li + li {
  margin-top: 0.5em;
}

.post-content figure {
  margin: 2em 0;
}
.post-content figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
}
.post-content th,
.post-content td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  text-align: left;
}
.post-content th {
  background: var(--ink-800);
  font-weight: 600;
}

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

/* Ghost-specific width classes */
.post-content .kg-width-wide {
  max-width: var(--wide-width);
  margin-left: calc(50% - min(var(--wide-width)/2, 50vw - var(--space-lg)));
  margin-right: calc(50% - min(var(--wide-width)/2, 50vw - var(--space-lg)));
  width: auto;
}
.post-content .kg-width-full {
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

/* Ghost bookmark card */
.post-content .kg-bookmark-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.post-content .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}
.post-content .kg-bookmark-content {
  flex: 1;
  padding: var(--space-lg);
}
.post-content .kg-bookmark-title {
  font-weight: 600;
  color: var(--slate-100);
}
.post-content .kg-bookmark-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}
.post-content .kg-bookmark-thumbnail {
  width: 200px;
  flex-shrink: 0;
}
.post-content .kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ghost callout card */
.post-content .kg-callout-card {
  padding: var(--space-lg);
  border-radius: 12px;
  display: flex;
  gap: var(--space-md);
}

/* Ghost gallery */
.post-content .kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.post-content .kg-gallery-row {
  display: flex;
  gap: var(--space-md);
}
.post-content .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- Author box ---------- */
.post-author-box {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: var(--content-width);
  margin: 0 auto var(--space-2xl);
}
.post-author-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.post-author-box__name {
  font-size: 1.125rem;
  font-weight: 700;
}
.post-author-box__bio {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: var(--space-xs);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-3xl);
  font-size: 0.9375rem;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--slate-200);
  font-weight: 500;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .page-number {
  color: var(--text-secondary);
}

/* ============================================================
   TAG & AUTHOR PAGES
   ============================================================ */
.tag-header,
.author-header {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.tag-header__count,
.author-header__meta {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.author-header__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--border);
}

.author-header__bio {
  max-width: 560px;
  margin: var(--space-md) auto 0;
  color: var(--text-secondary);
}

.author-header__social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.author-header__social a {
  color: var(--slate-400);
}
.author-header__social a:hover {
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.site-footer__inner {
  max-width: var(--full-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.site-footer__copy a {
  color: var(--slate-300);
}

.site-footer__nav {
  display: flex;
  gap: var(--space-lg);
}
.site-footer__nav a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.site-footer__nav a:hover {
  color: var(--slate-100);
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  flex: 1;
}
.error-page__code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.error-page__message {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: var(--space-lg) 0 var(--space-xl);
}
.error-page__link {
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--ink-950);
  border-radius: 9999px;
  font-weight: 600;
}
.error-page__link:hover {
  background: var(--accent-hover);
  color: var(--ink-950);
}

/* ============================================================
   TAG PILLS
   ============================================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  padding: 0 0 var(--space-2xl);
}
.tag-pill {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-300);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   CTA BANNER (newsletter subscribe)
   ============================================================ */
.subscribe-banner {
  max-width: var(--wide-width);
  margin: 0 auto var(--space-3xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(6,182,212,0.02));
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 20px;
}
.subscribe-banner h2 {
  margin-bottom: var(--space-sm);
}
.subscribe-banner p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.subscribe-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--ink-800);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--slate-100);
  font-size: 0.9375rem;
  outline: none;
}
.subscribe-form input[type="email"]::placeholder {
  color: var(--slate-500);
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
}
.subscribe-form button {
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: var(--ink-950);
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.subscribe-form button:hover {
  background: var(--accent-hover);
}

@media (max-width: 480px) {
  .subscribe-form {
    flex-direction: column;
  }
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s var(--ease);
  z-index: 40;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Custom setting: List layout ---------- */
.post-grid--list {
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.post-grid--list .post-card {
  flex-direction: row;
  border-radius: 12px;
}
.post-grid--list .post-card__image-wrap {
  width: 260px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.post-grid--list .post-card__body {
  justify-content: center;
}
@media (max-width: 640px) {
  .post-grid--list .post-card { flex-direction: column; }
  .post-grid--list .post-card__image-wrap { width: 100%; aspect-ratio: 16/9; }
}

/* ---------- Custom setting: Solid header ---------- */
.site-header--solid {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--ink-900);
}

/* ---------- Loading / skeleton ---------- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--ink-800) 25%, var(--ink-700) 50%, var(--ink-800) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
