/* ==========================================================================
   Vig Studio — Blog / Journal page styles
   --------------------------------------------------------------------------
   Everything is namespaced under .vig-blog so it cannot leak into the rest
   of the theme. To rebrand, change only the tokens in the :root block below.
   ========================================================================== */

:root {
  /* --- Brand: change these three and the whole page follows --- */
  --vig-accent:        #c08b2e;   /* fills: buttons, badges, underlines */
  --vig-accent-ink:    #15171a;   /* text ON the accent (AA: 5.9:1) */
  --vig-accent-text:   #8f6218;   /* accent used AS text on light bg (AA: 5.3:1) */
  --vig-accent-soft:   rgba(192, 139, 46, 0.12);

  /* --- Surfaces & text (light mode) --- */
  --vig-bg:            #ffffff;
  --vig-bg-alt:        #f7f6f3;
  --vig-surface:       #ffffff;
  --vig-ink:           #15171a;
  --vig-body:          #525a63;
  --vig-muted:         #8a9099;
  --vig-line:          #e6e4df;

  /* --- Shape & motion --- */
  --vig-radius:        16px;
  --vig-radius-sm:     999px;
  --vig-shadow:        0 1px 2px rgba(16, 18, 20, .04), 0 8px 24px rgba(16, 18, 20, .06);
  --vig-shadow-lift:   0 2px 4px rgba(16, 18, 20, .05), 0 18px 44px rgba(16, 18, 20, .12);
  --vig-ease:          cubic-bezier(.2, .8, .2, 1);

  /* --- Layout --- */
  --vig-max:           1200px;
  --vig-gutter:        clamp(16px, 4vw, 40px);

  /* --- Type --- */
  --vig-font-head:     "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --vig-font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark mode: honoured only when the theme has not forced light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vig-bg:        #101114;
    --vig-bg-alt:    #16181c;
    --vig-surface:   #191b1f;
    --vig-ink:       #f4f3f1;
    --vig-body:      #b3b8bf;
    --vig-muted:     #7f858d;
    --vig-line:      #2a2d33;
    --vig-shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --vig-shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 18px 44px rgba(0,0,0,.5);
    --vig-accent-soft: rgba(192, 139, 46, 0.18);
    --vig-accent-text: #e0b25f;
  }
}
:root[data-theme="dark"] {
  --vig-bg:        #101114;
  --vig-bg-alt:    #16181c;
  --vig-surface:   #191b1f;
  --vig-ink:       #f4f3f1;
  --vig-body:      #b3b8bf;
  --vig-muted:     #7f858d;
  --vig-line:      #2a2d33;
  --vig-shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --vig-shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 18px 44px rgba(0,0,0,.5);
  --vig-accent-soft: rgba(192, 139, 46, 0.18);
  --vig-accent-text: #e0b25f;
}

/* ---------- Base ---------- */
.vig-blog {
  background: var(--vig-bg);
  color: var(--vig-body);
  font-family: var(--vig-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.vig-blog *,
.vig-blog *::before,
.vig-blog *::after { box-sizing: border-box; }

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

.vig-blog a { color: inherit; text-decoration: none; }

.vig-blog :where(a, button, input):focus-visible {
  outline: 2px solid var(--vig-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.vig-wrap {
  width: 100%;
  max-width: var(--vig-max);
  margin-inline: auto;
  padding-inline: var(--vig-gutter);
}

.vig-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Page hero ----------
   The theme's header is fixed, transparent and uses white links, so the hero
   carries its own dark backdrop (keeps the nav readable) and pads itself
   clear of the header's height. */
.vig-hero {
  position: relative;
  padding: clamp(128px, 15vw, 190px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(70% 110% at 50% 0%, rgba(192, 139, 46, .28) 0%, transparent 60%),
    linear-gradient(180deg, #16171c 0%, #101114 100%);
  border-bottom: 1px solid var(--vig-line);
  text-align: center;
  overflow: hidden;
}
.vig-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #e0b25f;
  margin: 0 0 18px;
}
.vig-hero__eyebrow::before,
.vig-hero__eyebrow::after {
  content: ""; width: 24px; height: 1px; background: currentColor; opacity: .5;
}
.vig-hero__title {
  font-family: var(--vig-font-head);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #ffffff;
  margin: 0 0 16px;
}
.vig-hero__lede {
  max-width: 58ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, .74);
}

/* ---------- Filter bar ---------- */
/* Not sticky: this theme's fixed header wrapper spans the whole viewport, so a
   sticky bar would slide underneath it. */
.vig-filters {
  position: relative; z-index: 1;
  background: var(--vig-bg);
  border-bottom: 1px solid var(--vig-line);
}
.vig-filters__inner {
  display: flex; align-items: center; gap: 10px;
  padding-block: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vig-filters__inner::-webkit-scrollbar { display: none; }

.vig-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--vig-line);
  border-radius: var(--vig-radius-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--vig-body);
  background: var(--vig-surface);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.vig-chip:hover { color: var(--vig-ink); border-color: var(--vig-ink); transform: translateY(-1px); }
.vig-chip[aria-current="page"],
.vig-chip.is-active {
  background: var(--vig-ink); border-color: var(--vig-ink); color: var(--vig-bg);
}
.vig-chip__count { font-size: .75rem; opacity: .6; font-variant-numeric: tabular-nums; }

/* ---------- Shared meta row ---------- */
.vig-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: .8125rem; color: var(--vig-muted);
  font-variant-numeric: tabular-nums;
}
.vig-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.vig-tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: var(--vig-radius-sm);
  background: var(--vig-accent-soft);
  color: var(--vig-accent-text);
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s;
}
a.vig-tag:hover { background: var(--vig-accent); color: var(--vig-accent-ink); }

/* ---------- Featured post ---------- */
.vig-featured { padding: clamp(40px, 6vw, 72px) 0 0; }
.vig-featured__card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 0;
  background: var(--vig-surface);
  border: 1px solid var(--vig-line);
  border-radius: calc(var(--vig-radius) + 6px);
  overflow: hidden;
  box-shadow: var(--vig-shadow);
  transition: box-shadow .35s var(--vig-ease), transform .35s var(--vig-ease);
}
.vig-featured__card:hover { box-shadow: var(--vig-shadow-lift); transform: translateY(-3px); }

.vig-featured__media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--vig-bg-alt);
}
.vig-featured__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--vig-ease);
}
.vig-featured__card:hover .vig-featured__media img { transform: scale(1.05); }

.vig-featured__badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--vig-radius-sm);
  background: var(--vig-accent); color: var(--vig-accent-ink);
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.vig-featured__body {
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.vig-featured__title {
  font-family: var(--vig-font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--vig-ink);
  margin: 0;
}
.vig-featured__title a { background-image: linear-gradient(var(--vig-accent), var(--vig-accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--vig-ease); }
.vig-featured__card:hover .vig-featured__title a { background-size: 100% 2px; }
.vig-featured__excerpt { margin: 0; font-size: 1.0625rem; }

/* ---------- Post grid ---------- */
.vig-list { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.vig-list__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.vig-list__title {
  font-family: var(--vig-font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600; color: var(--vig-ink); margin: 0;
}
.vig-list__count { font-size: .875rem; color: var(--vig-muted); }

.vig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
  list-style: none; margin: 0; padding: 0;
}

.vig-card {
  display: flex; flex-direction: column;
  background: var(--vig-surface);
  border: 1px solid var(--vig-line);
  border-radius: var(--vig-radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .35s var(--vig-ease), transform .35s var(--vig-ease), border-color .35s;
}
.vig-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vig-shadow-lift);
  border-color: transparent;
}
.vig-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--vig-bg-alt);
}
.vig-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--vig-ease);
}
.vig-card:hover .vig-card__media img { transform: scale(1.06); }

.vig-card__media--empty {
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, var(--vig-accent-soft), transparent 70%),
    var(--vig-bg-alt);
  color: var(--vig-muted);
  font-family: var(--vig-font-head);
  font-size: 2rem;
}

.vig-card__tags { position: absolute; bottom: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; }
.vig-card__tags .vig-tag { background: rgba(255,255,255,.94); color: #15171a; backdrop-filter: blur(6px); }
.vig-card__tags .vig-tag:hover { background: var(--vig-accent); color: var(--vig-accent-ink); }

.vig-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.vig-card__title {
  font-family: var(--vig-font-head);
  font-size: 1.25rem; font-weight: 600; line-height: 1.25;
  letter-spacing: -.01em; color: var(--vig-ink); margin: 0;
  /* clamp to 3 lines so cards stay even */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vig-card__excerpt {
  margin: 0; font-size: .9375rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vig-card__foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--vig-line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.vig-card__author { display: flex; align-items: center; gap: 9px; min-width: 0; }
/* If the avatar image fails (no Gravatar, blocked request), degrade to a plain
   circle rather than a broken-image icon with its alt text spilling out. */
.vig-card__avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  object-fit: cover;
  background: var(--vig-accent-soft);
  overflow: hidden;
  color: transparent;
  text-indent: -9999px;
}
.vig-card__authorname {
  font-size: .8125rem; font-weight: 500; color: var(--vig-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vig-card__arrow {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--vig-line); color: var(--vig-ink);
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.vig-card:hover .vig-card__arrow {
  background: var(--vig-accent); border-color: var(--vig-accent);
  color: var(--vig-accent-ink); transform: translateX(2px);
}
.vig-card__arrow svg { width: 14px; height: 14px; }

/* Make the whole card clickable without nesting links */
.vig-card__link { position: absolute; inset: 0; z-index: 1; }
.vig-card { position: relative; }
.vig-card__tags { z-index: 2; }
.vig-card__foot .vig-card__author { position: relative; z-index: 2; }

/* ---------- Newsletter / CTA strip ---------- */
.vig-cta {
  margin: 0 0 clamp(56px, 8vw, 96px);
}
.vig-cta__inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: calc(var(--vig-radius) + 6px);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--vig-accent-soft), transparent 60%),
    var(--vig-bg-alt);
  border: 1px solid var(--vig-line);
}
.vig-cta__title {
  font-family: var(--vig-font-head);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 600; line-height: 1.2; color: var(--vig-ink); margin: 0 0 8px;
}
.vig-cta__text { margin: 0; font-size: .9375rem; }
.vig-form { display: flex; gap: 10px; flex-wrap: wrap; }
.vig-form input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  padding: 13px 16px;
  font: inherit; font-size: .9375rem;
  color: var(--vig-ink);
  background: var(--vig-surface);
  border: 1px solid var(--vig-line);
  border-radius: var(--vig-radius-sm);
}
.vig-form input[type="email"]::placeholder { color: var(--vig-muted); }
.vig-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  font: inherit; font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--vig-accent);
  border-radius: var(--vig-radius-sm);
  background: var(--vig-accent); color: var(--vig-accent-ink);
  cursor: pointer;
  transition: filter .2s, transform .2s;
}
.vig-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.vig-btn--ghost { background: transparent; color: var(--vig-ink); border-color: var(--vig-line); }
.vig-btn--ghost:hover { border-color: var(--vig-ink); }

/* ---------- Pagination ---------- */
.vig-pagination { margin-top: clamp(36px, 5vw, 56px); }
.vig-pagination .nav-links,
.vig-pagination__inner {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.vig-pagination :where(a, span).page-numbers,
.vig-pagination__link {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 42px; padding-inline: 14px;
  border: 1px solid var(--vig-line);
  border-radius: var(--vig-radius-sm);
  font-size: .9375rem; font-weight: 500;
  color: var(--vig-body); background: var(--vig-surface);
  transition: color .2s, border-color .2s, background .2s;
}
.vig-pagination a.page-numbers:hover,
.vig-pagination__link:hover { color: var(--vig-ink); border-color: var(--vig-ink); }
.vig-pagination .page-numbers.current,
.vig-pagination__link.is-current {
  background: var(--vig-ink); border-color: var(--vig-ink); color: var(--vig-bg);
}
.vig-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ---------- Empty state ---------- */
.vig-empty {
  text-align: center;
  padding: clamp(48px, 8vw, 88px) var(--vig-gutter);
  border: 1px dashed var(--vig-line);
  border-radius: var(--vig-radius);
  background: var(--vig-bg-alt);
}
.vig-empty__title {
  font-family: var(--vig-font-head); font-size: 1.5rem; font-weight: 600;
  color: var(--vig-ink); margin: 0 0 8px;
}
.vig-empty p { margin: 0 auto 20px; max-width: 46ch; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .vig-featured__card { grid-template-columns: 1fr; }
  .vig-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
  .vig-featured__media img { position: static; }
  .vig-cta__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vig-grid { grid-template-columns: 1fr; }
  .vig-list__head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  .vig-blog *, .vig-blog *::before, .vig-blog *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
@media print {
  .vig-filters, .vig-cta, .vig-pagination { display: none !important; }
  .vig-card, .vig-featured__card { box-shadow: none; break-inside: avoid; }
}

/* ---------- Term pill wrapper (printed by vig_blog_terms) ---------- */
.vig-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ==========================================================================
   Single post (the article / detail page)
   ========================================================================== */

/* Same dark band as the listing hero: the theme's fixed header has white
   links, so the top of the page must be dark for the nav to stay readable. */
.vig-article__hero {
  position: relative;
  padding: clamp(128px, 15vw, 190px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(70% 110% at 50% 0%, rgba(192, 139, 46, .28) 0%, transparent 60%),
    linear-gradient(180deg, #16171c 0%, #101114 100%);
  text-align: center;
}
.vig-article__hero .vig-wrap { max-width: 860px; }

.vig-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8125rem; font-weight: 500;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 20px;
  transition: color .2s;
}
.vig-back:hover { color: #fff; }
.vig-back svg { width: 13px; height: 13px; }

.vig-article__hero .vig-tags { justify-content: center; margin-bottom: 16px; }
.vig-article__hero .vig-tag { background: rgba(224, 178, 95, .18); color: #e0b25f; }
.vig-article__hero a.vig-tag:hover { background: var(--vig-accent); color: var(--vig-accent-ink); }

.vig-article__title {
  font-family: var(--vig-font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.018em;
  color: #fff;
  margin: 0 0 20px;
  text-wrap: balance;
}
.vig-article__meta {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  font-size: .875rem; color: rgba(255, 255, 255, .64);
}
.vig-article__meta .vig-meta__dot { background: currentColor; }
.vig-article__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; background: rgba(255,255,255,.14);
  overflow: hidden; color: transparent; text-indent: -9999px;
}

/* Featured image, pulled up so it straddles the dark band */
.vig-article__figure {
  max-width: 1000px;
  margin: calc(clamp(36px, 5vw, 56px) * -1 - 24px) auto 0;
  padding-inline: var(--vig-gutter);
  position: relative; z-index: 2;
}
.vig-article__figure img {
  width: 100%;
  border-radius: calc(var(--vig-radius) + 4px);
  box-shadow: var(--vig-shadow-lift);
}

/* ---------- Article body ---------- */
.vig-article__body { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px); }
.vig-article__body .vig-wrap { max-width: 760px; }

.vig-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--vig-body);
}
/* Vertical rhythm: zero every child's own margins, then space siblings. Keep
   these two at the same specificity so the second wins for adjacent pairs —
   a more specific `p { margin: 0 }` here would cancel the gap entirely. */
.vig-prose > * { margin-top: 0; margin-bottom: 0; }
.vig-prose > * + * { margin-top: 1.4em; }

/* Tighter after a heading, so the heading binds to the text it introduces. */
.vig-prose :where(h2, h3, h4) + * { margin-top: .75em; }

.vig-prose h2, .vig-prose h3, .vig-prose h4 {
  font-family: var(--vig-font-head);
  color: var(--vig-ink);
  letter-spacing: -.012em;
  line-height: 1.22;
  margin: 2.2em 0 0;
  scroll-margin-top: 100px;
}
.vig-prose h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 600; }
.vig-prose h3 { font-size: clamp(1.125rem, 2vw, 1.3125rem); font-weight: 600; }
.vig-prose h4 { font-size: 1.0625rem; font-weight: 600; }

/* A hairline above each section keeps a long article scannable */
.vig-prose h2::before {
  content: ""; display: block;
  width: 44px; height: 2px;
  background: var(--vig-accent);
  margin-bottom: .6em;
  border-radius: 2px;
}

.vig-prose strong, .vig-prose b { color: var(--vig-ink); font-weight: 600; }

.vig-prose a:not(.vig-tag):not(.vig-btn) {
  color: var(--vig-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--vig-accent) 45%, transparent);
  transition: text-decoration-color .2s;
}
.vig-prose a:not(.vig-tag):not(.vig-btn):hover { text-decoration-color: var(--vig-accent); }

.vig-prose ul, .vig-prose ol { margin: 1.4em 0 0; padding-left: 1.35em; }
.vig-prose li { margin-top: .5em; }
.vig-prose li::marker { color: var(--vig-accent); }

.vig-prose blockquote {
  margin: 2em 0 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--vig-accent);
  font-family: var(--vig-font-head);
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--vig-ink);
}
.vig-prose blockquote p + p { margin-top: .6em; }

.vig-prose :where(img, figure, iframe, video) { margin-top: 2em; }
.vig-prose img { border-radius: var(--vig-radius); }
.vig-prose figcaption {
  margin-top: .7em; font-size: .8125rem; color: var(--vig-muted); text-align: center;
}

.vig-prose hr { margin: 2.6em 0 0; border: 0; border-top: 1px solid var(--vig-line); }

.vig-prose table {
  width: 100%; margin-top: 2em;
  border-collapse: collapse; font-size: .9375rem;
}
.vig-prose :where(th, td) {
  padding: 11px 14px; border: 1px solid var(--vig-line); text-align: left;
}
.vig-prose th { background: var(--vig-bg-alt); color: var(--vig-ink); font-weight: 600; }

/* ---------- Article footer ---------- */
.vig-article__foot {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 26px;
  border-top: 1px solid var(--vig-line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.vig-share { display: flex; align-items: center; gap: 10px; }
.vig-share__label { font-size: .8125rem; color: var(--vig-muted); }
.vig-share a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--vig-line); color: var(--vig-body);
  transition: background .2s, border-color .2s, color .2s;
}
.vig-share a:hover { background: var(--vig-accent); border-color: var(--vig-accent); color: var(--vig-accent-ink); }
.vig-share svg { width: 15px; height: 15px; }

/* ---------- Prev / next ---------- */
.vig-adjacent {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: clamp(32px, 4vw, 44px);
}
.vig-adjacent__item {
  padding: 18px 20px;
  border: 1px solid var(--vig-line);
  border-radius: var(--vig-radius);
  background: var(--vig-surface);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.vig-adjacent__item:hover { border-color: transparent; box-shadow: var(--vig-shadow); transform: translateY(-2px); }
.vig-adjacent__item--next { text-align: right; }
.vig-adjacent__label {
  display: block; font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--vig-accent-text); margin-bottom: 7px;
}
.vig-adjacent__title {
  font-family: var(--vig-font-head); font-size: 1rem; font-weight: 600;
  line-height: 1.3; color: var(--vig-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Related posts ---------- */
.vig-related {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 88px);
  background: var(--vig-bg-alt);
  border-top: 1px solid var(--vig-line);
}

@media (max-width: 620px) {
  .vig-adjacent { grid-template-columns: 1fr; }
  .vig-adjacent__item--next { text-align: left; }
  .vig-article__foot { flex-direction: column; align-items: flex-start; }
}
