/* ══════════════════════════════════════════════
   NOTES FROM THE ABSTRACT
   Ghostium base, 1950s newspaper aesthetic
   ══════════════════════════════════════════════ */

:root {
  --cream: #FBF8EE;
  --warm-white: #FEFCF7;
  --ink: #2A2A2A;
  --ink-light: #4A4A4A;
  --ink-faded: #7A7A7A;
  --red: #C0392B;
  --red-dark: #A93226;
  --blue: #2471A3;
  --teal: #1ABC9C;
  --rule: #D5CDBA;
  --rule-light: #E6DECA;
  --highlight: #FFF8E1;
}

@font-face {
  font-family: 'Typical Writer';
  src: url('../fonts/TypicalWriter.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 20px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
}

p { margin: 0 0 1.5rem; }

blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--red);
  background: var(--warm-white);
}

blockquote p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

code {
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.88em;
  background: var(--highlight);
  padding: 0.12em 0.4em;
  border-radius: 3px;
  color: var(--red-dark);
}

pre {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink);
}

table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
th, td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--rule); text-align: left; font-size: 0.9rem; }
th { font-family: "Typical Writer", "Space Mono", monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faded); }

sup { font-family: "Typical Writer", "Space Mono", monospace; font-size: 0.65em; color: var(--red); }


/* ══════════════════════════════════════
   MASTHEAD
   ══════════════════════════════════════ */
.site-masthead {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 1rem 0;
  text-align: center;
}

.masthead-logo-link { display: block; }

.masthead-logo {
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
}

.masthead-rule {
  border: none;
  border-top: 3px double var(--rule);
  margin: 0.25rem 0 0;
}

.edition-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

.edition-tagline {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  color: var(--ink-light);
}

/* ── Navigation bar (above banner) ── */
.site-nav {
  padding: 0.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.5rem;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.site-nav li { display: inline; }

.site-nav a {
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faded);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--red); }
.site-nav .nav-current a { color: var(--red); font-weight: 700; }


/* ══════════════════════════════════════
   CONTAINER / LAYOUT
   ══════════════════════════════════════ */
.container { max-width: 960px; margin: 0 auto; }
.surface, .surface-container { width: 100%; }

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.wrapper-container { width: 100%; }


/* ══════════════════════════════════════
   POST LIST (homepage)
   ══════════════════════════════════════ */
.post-list { margin: 0; }

/* ══════════════════════════════════════
   NEWSPAPER GRID
   ══════════════════════════════════════ */

/* ── LEAD STORY (first post) ── */
.post-item-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  padding: 0 0 2rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--ink);
}

.post-item-featured-image {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}

.post-item-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-item-featured-image:hover img {
  transform: scale(1.02);
}

.post-item-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-item-title-featured {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 2.3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.5rem;
}

.post-item-featured .post-item-excerpt p {
  font-size: 1.05rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0.25rem 0 0;
}

.post-item-featured .post-item-footer { margin-top: 0.75rem; }


/* ── THREE-COLUMN ROW (posts 2–4) ── */
.post-list-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 0 0 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--ink);
}

.post-item-col {
  padding: 0 1.25rem;
  border-right: 1px solid var(--rule);
}

.post-item-col:first-child { padding-left: 0; }
.post-item-col:last-child { border-right: none; padding-right: 0; }

.post-item-col .post-item-title {
  font-size: 1.1rem;
  margin: 0.15rem 0 0;
}

.post-item-col .post-item-excerpt p {
  font-size: 0.8rem;
}


/* ── CARD GRID (posts 5+) ── */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.post-grid-three {
  grid-template-columns: 1fr 1fr 1fr;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--ink);
}

.post-item-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--warm-white);
  transition: box-shadow 0.2s ease;
}

.post-item-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.post-item-card-image {
  display: block;
  overflow: hidden;
}

.post-item-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.post-item-card:hover .post-item-card-image img {
  transform: scale(1.03);
}

.post-item-card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.post-item-card-body .post-item-title {
  font-size: 1.15rem;
  margin: 0.15rem 0 0;
}

.post-item-card-body .post-item-excerpt p {
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.post-item-card-body .post-item-footer {
  margin-top: 0.5rem;
}


/* ── Shared styles ── */
.section-label {
  display: inline-block;
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.post-item-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0.1rem 0 0;
}

.post-item-title a { color: var(--ink); }
.post-item-title a:hover { color: var(--red); }

.post-item-excerpt p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0.3rem 0 0;
}

.post-item-footer { margin-top: 0.4rem; }

.post-item-meta {
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faded);
}

.post-item-meta .author-name,
.post-meta-line .author-name {
  color: var(--red);
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .post-item-featured {
    grid-template-columns: 1fr;
  }

  .post-item-featured-image { order: -1; }
  .post-item-title-featured { font-size: 1.6rem; }

  .post-grid,
  .post-grid-three {
    grid-template-columns: 1fr;
  }

  .post-item-col {
    padding: 1rem 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
  }

  .post-item-col:first-child { padding-top: 0; }
  .post-item-col:last-child { border-bottom: none; }

  .post-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════
   SINGLE POST — with author sidebar
   ══════════════════════════════════════ */
.wrapper-post { max-width: 960px; }

.post { padding-top: 1.5rem; }

.post-container {
  position: relative;
}

.post-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.post-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  gap: 1rem;
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faded);
  line-height: 1;
}

.post-meta-item a { color: var(--blue); }
.post-meta-item a:hover { color: var(--red); }

.post-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding-bottom: 0.5rem;
}

.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--red); }

.post-subtitle {
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--ink-light);
  line-height: 1.4;
  padding-bottom: 0.5rem;
}

/* ── Date sidebar (left of post body) ── */
.post-side {
  position: absolute;
  top: 0;
  left: -220px;
  width: 160px;
  padding: 0 5px;
  text-align: right;
  z-index: 300;
}

.post-side-date {
  font-family: "Typical Writer", "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faded);
  line-height: 1.4;
}

.post-side-month {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
}

.post-side-day {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  margin: 0.15rem 0;
}

.post-side-year {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-faded);
}

/* ── Post feature image ── */
.post-feature-image {
  margin: 0 0 2rem;
  text-align: center;
}

.post-feature-image img {
  border: 2px solid var(--rule);
  border-radius: 3px;
  background: var(--warm-white);
}

.post-feature-image figcaption {
  padding: 0.75rem 0 0;
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.68rem;
  color: var(--ink-faded);
  text-align: center;
}

/* ── Post body ── */
.post-body {
  display: flex;
  flex-direction: column;
}

/* Drop cap on first paragraph */
.post-body > p:first-of-type::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 4.2rem;
  float: left;
  line-height: 0.8;
  margin: 0.08em 0.12em 0 0;
  color: var(--red);
}

.post-body p { font-size: 1.1rem; line-height: 1.8; }
.post-body h1 { font-size: 2em; margin: 2.5rem 0 1rem; padding-top: 1.5rem; }
.post-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-top: 1.5rem; }
.post-body h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.post-body h4 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

.post-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 2px;
}

.post-body a:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

.post-body img {
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.post-body figure {
  position: relative;
  margin: 2rem 0;
}

.post-body figure img {
  margin: 0 auto;
  width: 100%;
  cursor: zoom-in;
}

/* ── Captions in the sidebar margin ── */
.post-body figcaption,
.post-body .kg-card figcaption {
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--ink-faded);
  text-align: right;
  margin-top: 0.5rem;
}

@media (min-width: 961px) {
  .post-body figcaption,
  .post-body .kg-card figcaption {
    position: absolute;
    top: 0;
    left: -220px;
    width: 160px;
    padding: 0 5px;
    text-align: right;
    margin-top: 0;
  }
}

/* ── Lightbox overlay for clicked images ── */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border: none;
  cursor: zoom-out;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.5rem; }
.post-body li { margin-bottom: 0.5rem; font-size: 1.1rem; line-height: 1.8; }

.post-body hr { border: none; text-align: center; margin: 2.5rem 0; }
.post-body hr::after { content: "• • •"; color: var(--rule); font-size: 1.4rem; letter-spacing: 0.5em; }

/* ── Post footer (bottom author card + tags) ── */
.post-footer {
  overflow: hidden;
  border-top: 2px solid var(--rule);
  padding: 2rem 0;
}

.post-footer .post-author {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.post-footer .post-author-avatar {
  flex-shrink: 0;
  width: 64px;
}

.post-footer .post-author-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--rule);
}

.post-footer .post-author-info { overflow: hidden; }

.post-footer-heading {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.68rem;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-author-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.post-author-name:hover { color: var(--red); }

.post-author-bio {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-faded);
  margin: 0;
  line-height: 1.5;
}

.post-info { margin-top: 0.6rem; }

.post-info-title {
  display: block;
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 0.15rem;
}

.post-date {
  font-size: 0.75rem;
  color: var(--ink-faded);
}

.post-tags {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-light);
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.65rem;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-tags a { color: var(--blue); }
.post-tags a:hover { color: var(--red); }


/* ══════════════════════════════════════
   TAG / ARCHIVE HEADERS
   ══════════════════════════════════════ */
.tag-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tag-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 2rem;
}

.tag-header p {
  color: var(--ink-light);
  font-size: 0.95rem;
}


/* ══════════════════════════════════════
   POST NAVIGATION
   ══════════════════════════════════════ */
.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}

.post-navigation::after { content: ""; display: table; clear: both; }
.cf::after { content: ""; display: table; clear: both; }

.nav-previous, .nav-next { max-width: 45%; }
.nav-previous { float: left; }
.nav-next { float: right; text-align: right; }

.post-navigation a {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.9rem;
  color: var(--ink);
}

.post-navigation a:hover { color: var(--red); }


/* ══════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════ */
.post-list-pagination {
  text-align: center;
  padding: 2rem 0;
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faded);
}

.post-list-pagination a { color: var(--red); }
.post-list-pagination a:hover { color: var(--red-dark); }
.post-list-pagination-item { margin: 0 0.5rem; }


/* ══════════════════════════════════════
   ABOUT STRIP (below lead story)
   ══════════════════════════════════════ */
.about-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 1.5rem 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--ink);
  align-items: start;
}

.about-strip-heading {
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faded);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule-light);
}

.about-strip-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 0;
}

.about-strip-social {
  min-width: 160px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faded);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--red);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  font-size: 0.7rem;
  color: var(--ink-faded);
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover .social-icon {
  border-color: var(--red);
  color: var(--red);
}


/* ══════════════════════════════════════
   SUBSCRIBE BAR (every page)
   ══════════════════════════════════════ */
.subscribe-bar {
  border-top: 3px double var(--rule);
  padding: 2rem 0;
  margin-top: 2rem;
}

.subscribe-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.subscribe-bar-text {
  flex: 1;
}

.subscribe-bar-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.subscribe-bar-text p {
  font-size: 0.78rem;
  color: var(--ink-faded);
  margin: 0;
}

.subscribe-bar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.subscribe-bar-form {
  display: flex;
  gap: 0;
}

.subscribe-bar-input {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--rule);
  border-right: none;
  border-radius: 3px 0 0 3px;
  background: var(--warm-white);
  color: var(--ink);
  outline: none;
  width: 180px;
  transition: border-color 0.2s;
}

.subscribe-bar-input:focus {
  border-color: var(--blue);
}

.subscribe-bar-input::placeholder {
  color: var(--ink-faded);
  font-style: italic;
}

.subscribe-bar-btn {
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.subscribe-bar-btn-primary {
  background: var(--red);
  color: var(--cream);
}

.subscribe-bar-btn-primary:hover {
  background: var(--red-dark);
  color: var(--cream);
}

.subscribe-bar-btn-secondary {
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 3px 3px 0;
}

.subscribe-bar-btn-secondary:hover {
  background: var(--ink-light);
  color: var(--cream);
}

/* Ghost members form states */
.subscribe-bar-form[data-members-form] .loading {
  display: none;
}

.subscribe-bar-form.success {
  display: none;
}

.subscribe-bar-form.success + .subscribe-bar-success {
  display: block;
}

.subscribe-bar-success {
  display: none;
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.65rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 0;
  border-top: 1px solid var(--rule);
  font-family: "Typical Writer", "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-faded);
  letter-spacing: 0.06em;
}

.footer a { color: var(--red); }


/* ══════════════════════════════════════
   GHOST CARD CLASSES
   ══════════════════════════════════════ */
.kg-width-wide { margin-left: -4rem; margin-right: -4rem; max-width: none; }
.kg-width-full { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: none; width: 100vw; }
.kg-width-wide img, .kg-width-full img { width: 100%; }

.kg-image-card, .kg-gallery-card { margin: 2rem 0; position: relative; }
.kg-image-card img { max-width: 100%; height: auto; display: block; cursor: zoom-in; }
.kg-image-card figcaption, .kg-gallery-card figcaption {
  font-family: "Typical Writer", "Space Mono", monospace; font-size: 0.76rem; color: var(--ink-faded); text-align: right; line-height: 1.5; margin-top: 0.5rem;
}

@media (min-width: 961px) {
  .kg-image-card figcaption, .kg-gallery-card figcaption {
    position: absolute; top: 0; left: -220px; width: 160px; padding: 0 5px; text-align: right; margin-top: 0;
  }
}

/* Ensure all Ghost content images are visible */
.post-body .kg-card img,
.post-body .kg-image-card img,
.post-body .kg-gallery-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
}

.kg-gallery-container { display: flex; flex-direction: column; gap: 0.75rem; }
.kg-gallery-row { display: flex; gap: 0.75rem; }
.kg-gallery-row img { flex: 1; height: auto; border: 2px solid var(--rule); border-radius: 3px; }

.kg-bookmark-card { margin: 2rem 0; border: 1.5px solid var(--rule); border-radius: 4px; background: var(--warm-white); overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: var(--ink); }
.kg-bookmark-content { flex: 1; padding: 1rem 1.25rem; }
.kg-bookmark-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1rem; }
.kg-bookmark-description { font-size: 0.8rem; color: var(--ink-light); margin-top: 0.5rem; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.55rem; color: var(--ink-faded); }
.kg-bookmark-thumbnail { width: 160px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--red); background: var(--warm-white); }
.kg-embed-card { margin: 2rem 0; }
.kg-embed-card iframe { width: 100%; }
.kg-button-card { margin: 2rem 0; text-align: center; }
.kg-btn { display: inline-block; font-family: "Typical Writer", "Space Mono", monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.65rem 2rem; border-radius: 3px; font-weight: 700; }
.kg-btn-accent { background: var(--red); color: var(--cream); }
.kg-btn-accent:hover { background: var(--red-dark); color: var(--cream); }

.kg-toggle-card { margin: 1.5rem 0; border: 1.5px solid var(--rule); border-radius: 4px; background: var(--warm-white); padding: 1rem 1.25rem; }
.kg-header-card { margin: 2.5rem 0; padding: 3rem 2rem; text-align: center; background: var(--warm-white); border: 2px solid var(--rule); border-radius: 4px; }


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 960px) {
  .post-side { display: none; }
}

@media (max-width: 700px) {
  .post-item-featured { grid-template-columns: 1fr; }
  .post-item-featured-image { order: -1; }
  .post-item-title-featured { font-size: 1.6rem; }

  .about-strip { grid-template-columns: 1fr; gap: 1rem; }

  .post-grid-three { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  html { font-size: 15px; }

  .edition-bar {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .site-nav ul { flex-wrap: wrap; gap: 0.75rem 1.25rem; }

  .post-title { font-size: 1.9rem; }

  .kg-width-wide { margin-left: -0.5rem; margin-right: -0.5rem; }
  .kg-width-full { margin-left: -1rem; margin-right: -1rem; }

  .post-navigation { flex-direction: column; gap: 1rem; }
  .nav-previous, .nav-next { max-width: 100%; float: none; text-align: left; }

  .post-grid { grid-template-columns: 1fr; }

  .subscribe-bar-inner { flex-direction: column; text-align: center; }
  .subscribe-bar-actions { width: 100%; }
  .subscribe-bar-input { width: 100%; }
  .subscribe-bar-form { width: 100%; }
  .subscribe-bar-btn-primary { width: 100%; }

  .social-links { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1rem; }
}
