/* ============================================================
   Caesar Theme — main.css
   Single-file stylesheet for the entire site.
   Mirrors the v6 homepage design language extended to all page types.
   ============================================================ */

/* -------- ROOT VARIABLES -------- */
:root {
  --ink: #111111;
  --paper: #fff1e5;           /* FT pink — official FT.com background */
  --paper-warm: #f2dfce;      /* deeper FT-ivory for section variation */
  --card: #fff9f1;            /* pale cream for cards — lifts off the paper */
  --oxblood: #9b1d2e;
  --oxblood-deep: #6b1418;
  --gold: #d4a574;
  --muted: #3a3633;           /* deep warm-toned dark for secondary text */
  --muted-light: #807872;     /* genuinely lighter version for meta/credentials */
}

/* -------- RESET -------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* -------- TOPBAR (site-wide) -------- */
.topbar {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.wordmark {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark .dot { color: var(--oxblood); }

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--oxblood); }

.cta-pill {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
}
.cta-pill:hover { background: var(--oxblood) !important; color: var(--paper) !important; }

/* -------- DESKTOP SEARCH ICON (in nav) -------- */
.nav-search {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin: 0 -2px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.nav-search:hover {
  color: var(--oxblood);
  background: rgba(17, 17, 17, 0.05);
}

.nav-search:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
}

/* -------- MOBILE SEARCH BUTTON (in drawer) -------- */
.mobile-nav-search {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 32px;
  background: var(--paper);
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s;
}

.mobile-nav-search:hover,
.mobile-nav-search:focus-visible {
  background: var(--card);
  border-color: var(--ink);
  outline: none;
}

.mobile-nav-search svg {
  flex-shrink: 0;
  color: var(--muted-light);
}

.mobile-nav-search span {
  flex: 1;
  text-align: left;
  color: var(--muted-light);
}

/* -------- HAMBURGER BUTTON (mobile only) -------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------- MOBILE NAV DRAWER -------- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 380px);
  background: var(--paper-warm);
  border-left: 1px solid var(--ink);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  visibility: hidden;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-inner {
  padding: 80px 32px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 48px 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.mobile-nav-links li:first-child {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.mobile-nav-links a {
  display: block;
  padding: 22px 0;
  font-family: 'Spectral', Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  color: var(--oxblood);
}

.mobile-nav-cta {
  display: block;
  background: var(--oxblood);
  color: var(--paper);
  padding: 18px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.mobile-nav-cta:hover {
  background: var(--oxblood-deep);
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(17, 17, 17, 0.4);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when mobile menu is open */
body.has-nav-open {
  overflow: hidden;
}

/* -------- HERO (homepage) -------- */
.hero {
  padding: 65px 0 90px;
  border-bottom: 1px solid var(--ink);
}

.hero-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-intro {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 980px;
}

.hero-intro em {
  font-style: italic;
  color: var(--oxblood);
}

/* -------- HERO SUB-LEDE (homepage hero) -------- */
.hero-sub-lede {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 680px;
  margin-top: 32px;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-sub-lede-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--oxblood);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 0.15s;
}

.hero-sub-lede-link:hover {
  text-decoration-thickness: 2px;
}

.hero-sub-lede-link strong em {
  font-weight: 600;
  font-style: italic;
}

/* -------- HERO CHIPS LABEL -------- */
.hero-chips-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 16px;
  font-weight: 500;
}

/* Chips row */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.hero-chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: transparent;
  font-family: 'Inter Tight', sans-serif;
}

.hero-chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* -------- HERO BUTTONS (homepage hero) -------- */
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn-primary {
  background: var(--oxblood);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: var(--oxblood-deep); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* -------- PROMISE BAR (homepage) -------- */
.promise-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 0;
  overflow: hidden;
}

.promise-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: 'Spectral', Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.promise-track span {
  display: flex;
  align-items: center;
  gap: 60px;
}

.promise-track span::after {
  content: "✦";
  color: var(--oxblood);
  font-style: normal;
  font-size: 14px;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------- SECTION LABELS AND TITLES (shared) -------- */
.section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 820px;
  font-weight: 400;
}

.section-title em { font-style: italic; color: var(--oxblood); }

.section-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 60px;
  font-family: 'Spectral', Georgia, serif;
}

/* -------- M&A VERBS SECTION (homepage) -------- */
.verbs {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--ink);
}

.verb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.verb-card {
  background: var(--card);
  border: 1px solid rgba(17, 17, 17, 0.15);
  padding: 38px 32px 30px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
}

.verb-card:hover { background: var(--ink); color: var(--paper); }
.verb-card:hover .verb-word { color: var(--paper); }
.verb-card:hover .verb-word .accent { color: var(--paper); }
.verb-card:hover .verb-arrow { color: var(--oxblood); transform: translateX(4px); }
.verb-card:hover .verb-number { color: var(--paper); opacity: 0.6; }

.verb-number {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted-light);
  margin-bottom: 12px;
  font-feature-settings: "tnum";
  text-transform: uppercase;
}

.verb-word {
  font-family: 'Spectral', Georgia, serif;
  font-size: 60px;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 400;
}

.verb-word .accent { color: var(--oxblood); font-style: italic; }

.verb-desc {
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 20px;
}

.verb-arrow {
  font-family: 'Spectral', Georgia, serif;
  font-size: 24px;
  transition: transform 0.2s;
  align-self: flex-end;
}

/* -------- CATALOGUE SECTION (homepage) -------- */
.catalogue {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-warm);
}

.catalogue-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 50px;
}

.catalogue-head .section-title { margin-bottom: 0; }

.catalogue-intro {
  font-family: 'Spectral', Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

.catalogue-intro strong {
  font-style: normal;
  font-weight: 600;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.cat-card {
  background: var(--card);
  border: 1px solid rgba(17, 17, 17, 0.15);
  padding: 24px 24px 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cat-card:hover { background: var(--ink); color: var(--paper); }
.cat-card:hover .cat-fee { color: var(--gold); }
.cat-card:hover .cat-count { color: var(--paper); opacity: 0.6; }
.cat-card:hover .cat-arrow { color: var(--oxblood); }

.cat-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 8px;
}

.cat-desc {
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0.75;
  margin-bottom: 16px;
}

.cat-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid currentColor;
  padding-top: 12px;
  margin-top: auto;
}

.cat-fee {
  font-size: 13px;
  color: var(--oxblood);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cat-fee small {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
  margin-right: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cat-count {
  font-size: 11px;
  color: var(--muted-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-arrow { font-family: 'Spectral', Georgia, serif; font-size: 18px; }

.catalogue-foot {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.catalogue-foot p {
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  max-width: 660px;
}

/* -------- HOW I WORK (homepage) -------- */
.how {
  padding: 110px 0;
  border-bottom: 1px solid var(--ink);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.how-headline {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.how-headline em { font-style: italic; color: var(--oxblood); }

.how-body p {
  font-family: 'Spectral', Georgia, serif;
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.how-body p:last-child { margin-bottom: 0; }

.how-body strong {
  font-weight: 600;
  font-style: italic;
}

/* -------- WRITING SECTION (homepage) -------- */
.writing {
  padding: 110px 0;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-warm);
}

.writing-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
  gap: 40px;
  flex-wrap: wrap;
}

.writing-head-text { max-width: 720px; }

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.article {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.article-cat {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 14px;
}

.article-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  font-weight: 400;
  transition: color 0.2s;
}

.article-excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.article:hover .article-title { color: var(--oxblood); }

.article-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.writing-foot {
  border-top: 1px solid var(--ink);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.writing-foot p {
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

/* -------- ABOUT (homepage) -------- */
.about {
  padding: 110px 0;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-headline {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.about-headline em { font-style: italic; color: var(--gold); }

.about-body p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
  opacity: 0.88;
}

.about-sig {
  margin-top: 32px;
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}

.credentials {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 247, 242, 0.2);
  font-size: 12.5px;
  color: rgba(250, 247, 242, 0.55);
  line-height: 1.65;
  letter-spacing: 0.02em;
}

/* -------- BIG CTA (homepage) -------- */
.cta-bottom {
  padding: 130px 0;
  text-align: center;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--ink);
}

.cta-bottom h2 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
  font-weight: 400;
}

.cta-bottom h2 em { font-style: italic; color: var(--oxblood); }

.cta-bottom p {
  font-size: 19px;
  margin-bottom: 36px;
  color: var(--muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Spectral', Georgia, serif;
}

/* -------- FOOTER (site-wide) -------- */
.site-footer {
  background: var(--paper);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand .wordmark {
  font-size: 36px;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.footer-col a:hover { opacity: 1; color: var(--oxblood); }

.footer-bottom {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-light);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   PAGE TEMPLATES — post, page, tag
   These are NEW styles not in v6, needed for the rest of the site
   ============================================================ */

/* -------- ARTICLE/POST LAYOUT (post.hbs) -------- */
.post-header {
  padding: 80px 0 50px;
  border-bottom: 1px solid var(--ink);
}

.post-header > .container > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.post-meta {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 24px;
}

.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }

.post-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  font-weight: 400;
  max-width: 980px;
}

.post-title em { font-style: italic; color: var(--oxblood); }

.post-excerpt {
  font-family: 'Spectral', Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 28px;
}

.post-byline {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted-light);
}

.post-byline .dot-sep { opacity: 0.5; }

.post-feature {
  margin: 0;
  border-bottom: 1px solid var(--ink);
}

.post-feature img {
  width: 100%;
  display: block;
}

.post-content-wrap {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--ink);
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.55;
}

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

.post-content h2 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 2em;
  margin-bottom: 0.6em;
  font-weight: 500;
}

.post-content h3 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  font-weight: 500;
}

.post-content h4 {
  font-family: 'Spectral', Georgia, serif;
  font-size: 20px;
  line-height: 1.25;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  font-weight: 600;
}

.post-content p { margin-bottom: 1.2em; }

.post-content a {
  color: var(--oxblood);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--oxblood-deep); }

.post-content blockquote {
  border-left: 3px solid var(--oxblood);
  padding-left: 28px;
  margin: 2em 0;
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink);
}

.post-content ul, .post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.post-content li { margin-bottom: 0.5em; }

.post-content code {
  background: var(--paper-warm);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Inter Tight', monospace;
}

.post-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  margin: 1.6em 0;
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.post-content img,
.post-content figure {
  margin: 2em 0;
  max-width: 100%;
}

.post-content figure img { margin: 0; }

.post-content figcaption {
  font-size: 14px;
  color: var(--muted-light);
  text-align: center;
  margin-top: 0.8em;
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 2.5em auto;
  max-width: 120px;
  opacity: 0.4;
}

/* Post footer: tags + CTA */
.post-footer {
  padding: 60px 0 100px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-warm);
}

.post-footer-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.post-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.post-tag:hover { background: var(--ink); color: var(--paper); }

.post-footer-cta {
  border-top: 1px solid var(--ink);
  padding-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.post-footer-cta h3 {
  font-family: 'Spectral', Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 6px;
}

.post-footer-cta p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* -------- PAGE LAYOUT (page.hbs) -------- */
/* For static Ghost Pages like /about/, /contact/, /sell/, /buy/ etc. */
.page-header {
  padding: 80px 0 50px;
  border-bottom: 1px solid var(--ink);
}

.page-header > .container > * {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.page-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 20px;
}

.page-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  font-weight: 400;
  max-width: 980px;
}

.page-title em { font-style: italic; color: var(--oxblood); }

.page-excerpt {
  font-family: 'Spectral', Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 760px;
}

.page-content-wrap {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--ink);
}

.page-content {
  max-width: 880px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.55;
}

.page-content > * + * { margin-top: 1.3em; }

.page-content h2 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 500;
}

.page-content h2 em { font-style: italic; color: var(--oxblood); }

.page-content h3 {
  font-family: 'Spectral', Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  font-weight: 500;
}

.page-content p { margin-bottom: 1em; }

.page-content a {
  color: var(--oxblood);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-content blockquote {
  border-left: 3px solid var(--oxblood);
  padding-left: 28px;
  margin: 1.8em 0;
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
}

.page-content ul, .page-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.page-content li { margin-bottom: 0.4em; }

.page-content hr {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 2.5em auto;
  max-width: 120px;
  opacity: 0.4;
}

/* -------- TAG / ARCHIVE LAYOUT (tag.hbs, index.hbs) -------- */
.archive-header {
  padding: 80px 0 50px;
  border-bottom: 1px solid var(--ink);
}

.archive-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 16px;
}

.archive-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  font-weight: 400;
}

.archive-title em { font-style: italic; color: var(--oxblood); }

.archive-description {
  font-family: 'Spectral', Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 760px;
}

.archive-list {
  padding: 60px 0 100px;
  border-bottom: 1px solid var(--ink);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.archive-empty {
  padding: 100px 0;
  text-align: center;
  font-family: 'Spectral', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  color: var(--muted);
}

/* Pagination */
.pagination {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.pagination a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  transition: all 0.2s;
}

.pagination a:hover { background: var(--ink); color: var(--paper); }

.pagination .page-info {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* -------- KOENIG EDITOR CLASSES --------
   These classes are added by Ghost's editor when authors choose
   "wide" or "full width" for images, galleries, bookmarks, etc.
   Themes are expected to style them. */

.post-content .kg-width-wide,
.page-content .kg-width-wide {
  max-width: 1040px;
  width: calc(100vw - 80px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-content .kg-width-full,
.page-content .kg-width-full {
  max-width: none;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-content .kg-width-full img,
.page-content .kg-width-full img {
  width: 100%;
  max-width: 100%;
}

/* Koenig card wrappers */
.kg-card { margin: 1.8em 0; }

/* Bookmark cards */
.kg-bookmark-card {
  display: block;
  border: 1px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
}

.kg-bookmark-card:hover { background: var(--paper-warm); }

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 24px;
}

.kg-bookmark-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.kg-bookmark-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-light);
}

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

.kg-bookmark-thumbnail {
  flex: 0 0 200px;
}

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

/* Gallery cards */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kg-gallery-row {
  display: flex;
  gap: 8px;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Embed cards (YouTube, Twitter, etc.) */
.kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kg-embed-card iframe {
  max-width: 100%;
}

/* Callout cards */
.kg-callout-card {
  display: flex;
  padding: 20px 24px;
  border-radius: 4px;
  background: var(--paper-warm);
  margin: 1.6em 0;
  gap: 16px;
}

.kg-callout-emoji {
  font-size: 22px;
  line-height: 1.4;
}

.kg-callout-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.55;
}

/* Toggle cards */
.kg-toggle-card {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 1.6em 0;
}

.kg-toggle-heading {
  font-family: 'Spectral', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
}

.kg-toggle-content {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
}

/* Button cards */
.kg-button-card {
  text-align: center;
  margin: 2em 0;
}

.kg-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--oxblood);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.kg-btn:hover { background: var(--oxblood-deep); }

/* Header cards */
.kg-header-card {
  padding: 40px 24px;
  text-align: center;
  background: var(--paper-warm);
  margin: 1.8em 0;
  border-radius: 4px;
}

/* Product cards */
.kg-product-card {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 24px;
  margin: 1.8em 0;
}

/* Audio + File cards */
.kg-audio-card,
.kg-file-card {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 1.6em 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Members-only / paywall content */
.gh-post-upgrade-cta {
  border: 1px solid var(--ink);
  padding: 32px;
  margin: 2em 0;
  background: var(--paper-warm);
  text-align: center;
  border-radius: 4px;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 1000px) {
  .verb-grid { grid-template-columns: 1fr 1fr; }
  .catalogue-grid { grid-template-columns: 1fr 1fr; }
  .writing-grid { grid-template-columns: 1fr 1fr; }
  .catalogue-head { grid-template-columns: 1fr; gap: 30px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .topbar-inner { padding: 14px 24px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 80px 0 70px; }
  .how-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .writing-head { flex-direction: column; align-items: start; }
  .post-footer-cta { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .verb-grid { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .writing-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .verb-word { font-size: 44px; }
}
