/* ============================================================
   THE HOUR — Ghost Theme Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=DM+Mono:wght@300;400;500&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

:root {
  --paper:    #FDF8F0;
  --paper2:   #F7F1E6;
  --ink:      #1A1713;
  --rule:     #C8BDA8;
  --rule-lt:  #DDD5C4;
  --muted:    #6B6255;
  --light:    #9C9080;
  --gold:     #8B6914;
  --red:      #9E2A2A;
  --max-w:    1280px;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'PT Serif', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
hr.rule      { border: none; border-top: 1px solid var(--rule); }
hr.rule-lt   { border: none; border-top: 1px solid var(--rule-lt); }
hr.rule-heavy{ border: none; border-top: 2px solid var(--ink); }

.mono { font-family: 'DM Mono', monospace; }
.serif { font-family: 'EB Garamond', serif; }
.cap  { text-transform: uppercase; letter-spacing: 0.09em; }

/* ── SITE WRAPPER ──────────────────────────────────────────── */
.gh-site { max-width: var(--max-w); margin: 0 auto; }

/* ── TICKER ──────────────────────────────────────────────── */
.gh-ticker {
  background: #111009;
  height: 32px; overflow: hidden;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gh-ticker-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 44s linear infinite;
}
.gh-ticker-item {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.7); padding: 0 32px;
}
.gh-ticker-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; opacity: .9;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── TOP BAR ──────────────────────────────────────────────── */
.gh-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 24px;
  border-bottom: 1px solid var(--rule);
  font-family: 'DM Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.gh-topbar a { color: var(--muted); }
.gh-topbar a:hover { color: var(--ink); text-decoration: underline; }
.gh-topbar-left,
.gh-topbar-right { display: flex; gap: 14px; align-items: center; }
.gh-topbar-pipe  { color: var(--rule); }

/* ── MASTHEAD ──────────────────────────────────────────────── */
.gh-head {
  padding: 16px 24px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}
.gh-head-left {
  display: flex; align-items: center;
}
.gh-head-center { text-align: center; }

/* THE HOUR logo — faithful to brand */
.gh-logo-wrap {
  display: inline-flex; flex-direction: column; align-items: stretch;
}
.gh-logo-rule { border: none; border-top: 1px solid var(--ink); }
.gh-logo-text {
  font-family: 'DM Mono', monospace;
  font-size: 22px; font-weight: 400;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink); line-height: 1;
  padding: 7px 0 6px;
  white-space: nowrap;
}
.gh-logo-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 6.5px; letter-spacing: 0.46em; text-transform: uppercase;
  color: var(--ink); display: block;
  margin-top: 5px; text-align: center;
}

.gh-head-right {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase;
}
.gh-head-right a { color: var(--muted); }
.gh-head-right a:hover { color: var(--ink); }

.gh-btn {
  background: var(--ink); color: var(--paper) !important;
  padding: 7px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  border: none; cursor: pointer; display: inline-block;
  transition: opacity .2s;
}
.gh-btn:hover { opacity: .8; text-decoration: none !important; }
.gh-btn-outline {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--ink);
  padding: 7px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; display: inline-block;
  transition: background .2s, color .2s;
}
.gh-btn-outline:hover { background: var(--ink); color: var(--paper) !important; text-decoration: none !important; }

/* ── MAIN NAV ──────────────────────────────────────────────── */
.gh-nav {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px; overflow-x: auto;
  position: relative;
  -ms-overflow-style: none; scrollbar-width: none;
}
.gh-nav::-webkit-scrollbar { display: none; }
.gh-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding: 11px 18px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.gh-nav a:first-child { padding-left: 12px; }
.gh-nav a:hover,
.gh-nav a.current { color: var(--ink); border-color: var(--ink); text-decoration: none; }

/* Search toggle in nav */
.gh-nav-search {
  position: absolute; right: 24px;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding: 11px 0;
  transition: color .15s;
}
.gh-nav-search:hover { color: var(--ink); }

/* ── DATE STRIP ──────────────────────────────────────────────── */
.gh-date-strip {
  padding: 5px 24px;
  border-bottom: 1px solid var(--rule-lt);
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--light);
  display: flex; justify-content: space-between;
}

/* ── SEARCH OVERLAY ──────────────────────────────────────────── */
.gh-search {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,23,19,.92);
  align-items: flex-start; justify-content: center;
  padding-top: 120px;
}
.gh-search.open { display: flex; }
.gh-search-inner { width: 100%; max-width: 680px; padding: 0 24px; }
.gh-search-label {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 14px; display: block;
}
.gh-search-form { display: flex; border-bottom: 1px solid rgba(255,255,255,.3); }
.gh-search-form:focus-within { border-color: var(--paper); }
.gh-search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: 'EB Garamond', serif;
  font-size: 32px; color: var(--paper);
  padding: 8px 0; letter-spacing: -0.01em;
}
.gh-search-input::placeholder { color: rgba(255,255,255,.25); }
.gh-search-submit {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); padding: 0 0 0 20px;
  transition: color .2s;
}
.gh-search-submit:hover { color: var(--paper); }
.gh-search-close {
  display: block; margin-top: 24px; text-align: right;
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.35); cursor: pointer; background: none; border: none;
}
.gh-search-close:hover { color: rgba(255,255,255,.7); }

/* ── HOMEPAGE GRID ──────────────────────────────────────────── */
.gh-page { padding: 0 24px; }

.gh-col-grid {
  display: grid;
  border-bottom: 1px solid var(--rule);
}
.gh-row-main  { grid-template-columns: 3fr 1px 1fr 1px 1fr; }
.gh-row-mid   { grid-template-columns: 1fr 1px 1fr 1px 1fr; }
.gh-row-small { grid-template-columns: repeat(5, 1fr 1px) 1fr; }
.gh-vr        { background: var(--rule); width: 1px; }

.gh-col     { padding: 18px 20px; }
.gh-col-sm  { padding: 12px 16px; }

/* ── STORY ELEMENTS ──────────────────────────────────────────── */
.gh-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
  display: flex; align-items: center; gap: 8px;
}
.gh-kicker::before { content: ''; width: 16px; height: 1px; background: var(--gold); }
.gh-kicker.red { color: var(--red); }
.gh-kicker.red::before { background: var(--red); }

.gh-hl-xl {
  font-family: 'EB Garamond', serif;
  font-size: 38px; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
}
.gh-hl-xl em { font-style: italic; }

.gh-hl-lg {
  font-family: 'EB Garamond', serif;
  font-size: 24px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.015em; color: var(--ink);
}
.gh-hl-lg em { font-style: italic; }

.gh-hl-md {
  font-family: 'EB Garamond', serif;
  font-size: 19px; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
}
.gh-hl-md em { font-style: italic; }

.gh-hl-sm {
  font-family: 'EB Garamond', serif;
  font-size: 15.5px; font-weight: 700;
  line-height: 1.22; color: var(--ink);
}

.gh-deck {
  font-family: 'PT Serif', serif;
  font-size: 14.5px; font-style: italic;
  line-height: 1.65; color: var(--muted); margin-top: 10px;
}
.gh-deck-sm {
  font-family: 'PT Serif', serif;
  font-size: 13px; font-style: italic;
  line-height: 1.6; color: var(--muted); margin-top: 8px;
}

.gh-body {
  font-family: 'PT Serif', serif;
  font-size: 13.5px; line-height: 1.72;
  color: var(--ink); margin-top: 12px;
}
.gh-body p + p { margin-top: 0.7em; }

.gh-byline {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light); margin-top: 12px;
  display: flex; align-items: center; gap: 10px;
}
.gh-byline::before { content: ''; width: 14px; height: 1px; background: var(--rule); }

.gh-pull {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 14px; margin: 16px 0;
}
.gh-pull-text {
  font-family: 'EB Garamond', serif;
  font-size: 16px; font-style: italic;
  line-height: 1.45; color: var(--ink);
}

.gh-story-sep { border: none; border-top: 1px solid var(--rule-lt); margin: 16px 0; }

.gh-col-label {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--rule-lt);
  padding-bottom: 7px; margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.gh-col-label-more {
  font-family: 'DM Mono', monospace;
  font-size: 7px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--light);
}
.gh-col-label-more:hover { color: var(--ink); }

/* Short list (sidebar) */
.gh-short-list { display: flex; flex-direction: column; }
.gh-short-item { padding: 11px 0; border-bottom: 1px solid var(--rule-lt); }
.gh-short-item:last-child { border-bottom: none; padding-bottom: 0; }
.gh-si-cat {
  font-family: 'DM Mono', monospace;
  font-size: 7px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.gh-si-cat.red { color: var(--red); }
.gh-si-hl {
  font-family: 'EB Garamond', serif;
  font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ink);
}
.gh-si-meta {
  font-family: 'DM Mono', monospace;
  font-size: 6.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light); margin-top: 4px;
}

/* Watch ref box */
.gh-watch-box {
  border: 1px solid var(--rule);
  padding: 12px 14px; margin-top: 14px;
  background: var(--paper2);
}
.gh-watch-box-label {
  font-family: 'DM Mono', monospace;
  font-size: 6.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--light); margin-bottom: 8px;
}
.gh-watch-item { margin-bottom: 8px; }
.gh-watch-item:last-child { margin-bottom: 0; }
.gh-watch-brand {
  font-family: 'DM Mono', monospace;
  font-size: 7px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.gh-watch-name {
  font-family: 'EB Garamond', serif;
  font-size: 13.5px; font-weight: 700; font-style: italic; color: var(--ink);
}
.gh-watch-ref {
  font-family: 'DM Mono', monospace;
  font-size: 6.5px; letter-spacing: 0.12em; color: var(--light);
}

/* ── SECTION DIVIDER ──────────────────────────────────────────── */
.gh-sec-div {
  padding: 6px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper2);
}
.gh-sec-div-title {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
}
.gh-sec-div-more {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.gh-sec-div-more:hover { color: var(--ink); }

/* ── TAG / SECTION PAGES ──────────────────────────────────────── */
.gh-section-header {
  padding: 32px 24px 0;
  border-bottom: 1px solid var(--rule);
}
.gh-section-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.gh-section-title {
  font-family: 'EB Garamond', serif;
  font-size: 42px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--ink); padding-bottom: 16px;
}
.gh-section-desc {
  font-family: 'PT Serif', serif;
  font-size: 14px; font-style: italic;
  color: var(--muted); line-height: 1.6;
  padding-bottom: 20px;
  border-top: 1px solid var(--rule-lt);
  padding-top: 12px;
  margin-top: 4px;
}

/* Post grid for tag/section pages */
.gh-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
}
.gh-post-card {
  border-right: 1px solid var(--rule);
  padding: 24px 20px;
  transition: background .2s;
}
.gh-post-card:nth-child(3n) { border-right: none; }
.gh-post-card:hover { background: var(--paper2); text-decoration: none; }

.gh-post-image {
  width: 100%; aspect-ratio: 3/2;
  background: var(--paper2);
  margin-bottom: 14px; overflow: hidden;
}
.gh-post-image img { width: 100%; height: 100%; object-fit: cover; }

.gh-post-cat {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.gh-post-title {
  font-family: 'EB Garamond', serif;
  font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink);
}
.gh-post-excerpt {
  font-family: 'PT Serif', serif;
  font-size: 13px; font-style: italic; color: var(--muted);
  line-height: 1.65; margin-top: 8px;
}
.gh-post-meta {
  font-family: 'DM Mono', monospace;
  font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light); margin-top: 10px;
}

/* ── ARTICLE PAGE ──────────────────────────────────────────── */
.gh-article-header {
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--rule);
  max-width: 800px; margin: 0 auto;
}
.gh-article-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.gh-article-kicker::before { content: ''; width: 18px; height: 1px; background: var(--gold); }
.gh-article-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(28px, 4vw, 52px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
}
.gh-article-deck {
  font-family: 'PT Serif', serif;
  font-size: 18px; font-style: italic;
  line-height: 1.6; color: var(--muted); margin-top: 14px;
}
.gh-article-meta {
  display: flex; align-items: center; gap: 20px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--rule-lt);
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light);
}
.gh-article-author { color: var(--ink); font-weight: 500; }

.gh-article-image {
  width: 100%; max-height: 520px; overflow: hidden;
}
.gh-article-image img { width: 100%; height: 100%; object-fit: cover; }
.gh-article-caption {
  padding: 6px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.12em;
  color: var(--light); border-bottom: 1px solid var(--rule-lt);
}

/* Article body */
.gh-article-body {
  max-width: 680px; margin: 0 auto;
  padding: 32px 24px 48px;
}
.gh-article-body p {
  font-family: 'PT Serif', serif;
  font-size: 16px; line-height: 1.8;
  color: var(--ink); margin-bottom: 1.2em;
}
.gh-article-body h2 {
  font-family: 'EB Garamond', serif;
  font-size: 26px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.01em;
  margin: 2em 0 0.6em; color: var(--ink);
}
.gh-article-body h3 {
  font-family: 'EB Garamond', serif;
  font-size: 20px; font-weight: 700;
  margin: 1.6em 0 0.5em; color: var(--ink);
}
.gh-article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 18px; margin: 2em 0;
  font-style: italic; font-size: 18px;
  line-height: 1.5; color: var(--muted);
}
.gh-article-body figure { margin: 2em 0; }
.gh-article-body figcaption {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.12em;
  color: var(--light); margin-top: 6px;
}
.gh-article-body hr {
  border: none; border-top: 1px solid var(--rule);
  margin: 2em 0;
}

/* Paywall gate */
.gh-paywall {
  position: relative; overflow: hidden;
}
.gh-paywall-fade {
  position: absolute; top: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.gh-paywall-gate {
  background: var(--paper2);
  border: 1px solid var(--rule);
  padding: 40px;
  text-align: center;
  margin: 0 24px 40px;
}
.gh-paywall-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.gh-paywall-title {
  font-family: 'EB Garamond', serif;
  font-size: 26px; font-weight: 700; font-style: italic;
  line-height: 1.2; color: var(--ink); margin-bottom: 10px;
}
.gh-paywall-desc {
  font-family: 'PT Serif', serif;
  font-size: 14px; color: var(--muted); line-height: 1.65;
  max-width: 440px; margin: 0 auto 24px;
}
.gh-paywall-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── MARKETS STRIP ──────────────────────────────────────────── */
.gh-markets {
  display: flex; align-items: stretch;
  background: #111009;
  overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gh-markets::-webkit-scrollbar { display: none; }
.gh-mkt-label {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #8B6914;
  padding: 0 24px;
  display: flex; align-items: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0; white-space: nowrap;
}
.gh-mkt-item {
  display: flex; flex-direction: column; justify-content: center;
  padding: 10px 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0; gap: 3px;
}
.gh-mkt-name {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.42); white-space: nowrap;
}
.gh-mkt-val {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px; font-weight: 400;
  color: rgba(255,255,255,.92); letter-spacing: 0.01em;
}
.gh-mkt-chg { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.06em; }
.gh-mkt-chg.up { color: #6BAA75; }
.gh-mkt-chg.dn { color: #C06060; }
.gh-mkt-updated {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.2); white-space: nowrap;
  margin-left: auto; padding: 0 24px;
  display: flex; align-items: center;
}

/* ── NEWSLETTER ──────────────────────────────────────────────── */
.gh-newsletter {
  padding: 32px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: var(--paper2);
}
.gh-nl-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.gh-nl-head {
  font-family: 'EB Garamond', serif;
  font-size: 22px; font-style: italic; color: var(--ink); line-height: 1.25;
}
.gh-nl-right { flex-shrink: 0; min-width: 320px; }
.gh-nl-form { display: flex; border: 1px solid var(--rule); }
.gh-nl-form:focus-within { border-color: var(--ink); }
.gh-nl-form input {
  flex: 1; background: var(--paper); border: none; outline: none;
  padding: 10px 12px;
  font-family: 'PT Serif', serif; font-size: 13.5px; color: var(--ink);
}
.gh-nl-form input::placeholder { color: var(--light); }
.gh-nl-form button {
  background: var(--ink); color: var(--paper);
  border: none; padding: 10px 16px; cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: opacity .2s;
}
.gh-nl-form button:hover { opacity: .8; }
.gh-nl-note {
  font-family: 'DM Mono', monospace;
  font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--light); margin-top: 6px;
}

/* ── SUBSCRIBE PAGE ──────────────────────────────────────────── */
.gh-subscribe-page {
  max-width: 680px; margin: 0 auto;
  padding: 56px 24px;
}
.gh-subscribe-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.gh-subscribe-title {
  font-family: 'EB Garamond', serif;
  font-size: 42px; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 16px;
}
.gh-subscribe-desc {
  font-family: 'PT Serif', serif;
  font-size: 16px; font-style: italic;
  line-height: 1.7; color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.gh-subscribe-form-label {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--light); margin-bottom: 10px; display: block;
}
.gh-subscribe-form { display: flex; border: 1px solid var(--rule-lt); margin-bottom: 10px; }
.gh-subscribe-form:focus-within { border-color: var(--ink); }
.gh-subscribe-form input {
  flex: 1; background: var(--paper); border: none; outline: none;
  padding: 14px 16px;
  font-family: 'PT Serif', serif; font-size: 15px; color: var(--ink);
}
.gh-subscribe-form input::placeholder { color: var(--light); }
.gh-subscribe-form button {
  background: var(--ink); color: var(--paper);
  border: none; padding: 14px 22px; cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: opacity .2s;
}
.gh-subscribe-form button:hover { opacity: .8; }
.gh-subscribe-note {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--light);
}
.gh-subscribe-perks {
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.gh-subscribe-perks-title {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.gh-perk {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 16px;
}
.gh-perk-dash {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--gold); flex-shrink: 0; margin-top: 2px;
}
.gh-perk-text {
  font-family: 'PT Serif', serif;
  font-size: 14.5px; line-height: 1.55; color: var(--ink);
}
.gh-perk-text strong { font-weight: 700; }

/* ── SIGN IN PAGE ──────────────────────────────────────────── */
.gh-signin-page {
  max-width: 480px; margin: 0 auto;
  padding: 56px 24px;
}
.gh-signin-title {
  font-family: 'EB Garamond', serif;
  font-size: 34px; font-weight: 700; font-style: italic;
  color: var(--ink); margin-bottom: 8px;
}
.gh-signin-sub {
  font-family: 'PT Serif', serif;
  font-size: 14px; color: var(--muted); font-style: italic;
  margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.gh-field { margin-bottom: 16px; }
.gh-field label {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 6px;
}
.gh-field input {
  width: 100%; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule);
  padding: 11px 14px;
  font-family: 'PT Serif', serif; font-size: 14px;
  outline: none; transition: border-color .2s;
}
.gh-field input:focus { border-color: var(--ink); }
.gh-signin-submit {
  width: 100%; background: var(--ink); color: var(--paper);
  border: none; padding: 13px;
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; margin-top: 8px; transition: opacity .2s;
}
.gh-signin-submit:hover { opacity: .8; }
.gh-signin-footer {
  margin-top: 20px; text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light);
}
.gh-signin-footer a { color: var(--ink); }
.gh-signin-magic {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--rule-lt);
  text-align: center;
}
.gh-signin-magic-label {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--light); margin-bottom: 10px;
}
.gh-magic-btn {
  width: 100%; background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
  padding: 11px;
  font-family: 'DM Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.gh-magic-btn:hover { border-color: var(--ink); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.gh-foot {
  border-top: 2px solid var(--ink);
  padding: 28px 24px 20px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.gh-foot-col-h {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.gh-foot-links { display: flex; flex-direction: column; gap: 8px; }
.gh-foot-links a {
  font-family: 'PT Serif', serif;
  font-size: 13px; color: var(--muted); transition: color .15s;
}
.gh-foot-links a:hover { color: var(--ink); text-decoration: none; }
.gh-foot-bottom {
  padding: 10px 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--light);
}

/* ── PAGINATION ──────────────────────────────────────────────── */
.gh-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 2px; padding: 24px;
  border-top: 1px solid var(--rule);
}
.gh-page-btn {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--rule);
  background: var(--paper); cursor: pointer; transition: all .18s;
}
.gh-page-btn:hover,
.gh-page-btn.current { background: var(--ink); color: var(--paper); border-color: var(--ink); text-decoration: none; }

/* ── UTILITY ──────────────────────────────────────────────────── */
.gh-success {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); padding: 12px 0;
  border-top: 1px solid var(--rule-lt);
  display: none;
}
.gh-error { color: var(--red); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .gh-row-main  { grid-template-columns: 2fr 1px 1fr; }
  .gh-col-hide  { display: none; }
  .gh-row-small { grid-template-columns: repeat(3, 1fr 1px) 1fr; }
  .gh-post-grid { grid-template-columns: 1fr 1fr; }
  .gh-post-card:nth-child(3n)  { border-right: 1px solid var(--rule); }
  .gh-post-card:nth-child(2n)  { border-right: none; }
}
@media (max-width: 720px) {
  .gh-head { grid-template-columns: 1fr; text-align: center; }
  .gh-head-left, .gh-head-right { display: none; }
  .gh-row-main, .gh-row-mid, .gh-row-small { grid-template-columns: 1fr; }
  .gh-vr { display: none; }
  .gh-col, .gh-col-sm { border-bottom: 1px solid var(--rule); }
  .gh-foot { grid-template-columns: 1fr 1fr; }
  .gh-newsletter { flex-direction: column; }
  .gh-nl-right { min-width: unset; width: 100%; }
  .gh-post-grid { grid-template-columns: 1fr; }
  .gh-post-card { border-right: none !important; }
  .gh-markets { display: none; }
}

/* ── GHOST CARD ASSETS (required) ───────────────────────────── */
/* Ghost injects these classes for image cards, embeds, etc.    */

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5em auto;
  transform: translateX(calc(50% - 50vw * 0.85));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Card base */
.kg-card { margin: 2em 0; }
.kg-card + .kg-card { margin-top: 0; }

/* Image card */
.kg-image-card { margin: 2em 0; }
.kg-image-card img { width: 100%; height: auto; display: block; }
.kg-image-card figcaption {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.12em;
  color: var(--light); margin-top: 6px; text-align: center;
}

/* Gallery card */
.kg-gallery-card { margin: 2em 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image { flex: 1; min-width: 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bookmark card */
.kg-bookmark-card { margin: 2em 0; }
.kg-bookmark-container {
  display: flex; border: 1px solid var(--rule);
  text-decoration: none; color: inherit;
  transition: border-color .2s;
}
.kg-bookmark-container:hover { border-color: var(--ink); }
.kg-bookmark-content { flex: 1; padding: 18px 20px; }
.kg-bookmark-title { font-family: 'EB Garamond', serif; font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.kg-bookmark-description { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.kg-bookmark-metadata { font-family: 'DM Mono', monospace; font-size: 7.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light); display: flex; align-items: center; gap: 8px; }
.kg-bookmark-icon { width: 14px; height: 14px; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.kg-callout-card {
  display: flex; gap: 16px; padding: 18px 20px;
  background: var(--paper2); border-left: 2px solid var(--gold);
  margin: 2em 0;
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text { font-family: 'PT Serif', serif; font-size: 15px; line-height: 1.65; color: var(--ink); }

/* Video card */
.kg-video-card { margin: 2em 0; }
.kg-video-card video { width: 100%; display: block; }

/* Audio card */
.kg-audio-card { margin: 2em 0; border: 1px solid var(--rule); padding: 16px; }

/* HR card */
.kg-divider { border: none; border-top: 1px solid var(--rule); margin: 2.5em 0; }

/* Toggle card */
.kg-toggle-card { border: 1px solid var(--rule); margin: 2em 0; }
.kg-toggle-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer;
  font-family: 'EB Garamond', serif; font-size: 18px; font-weight: 700;
}
.kg-toggle-content { padding: 0 18px 14px; font-size: 15px; line-height: 1.7; }

/* Button card */
.kg-btn-card { text-align: center; margin: 2em 0; }
.kg-btn {
  display: inline-block; padding: 12px 24px;
  background: var(--ink); color: var(--paper);
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; transition: opacity .2s;
}
.kg-btn:hover { opacity: .8; text-decoration: none; }

/* Product card */
.kg-product-card { border: 1px solid var(--rule); padding: 24px; margin: 2em 0; }
.kg-product-card-image { margin-bottom: 16px; }
.kg-product-card-title { font-family: 'EB Garamond', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.kg-product-card-rating { margin-bottom: 10px; }
.kg-product-card-description { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }

/* File card */
.kg-file-card { margin: 2em 0; }
.kg-file-card-container {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--rule); padding: 14px 18px;
  text-decoration: none; color: inherit;
  transition: border-color .2s;
}
.kg-file-card-container:hover { border-color: var(--ink); }
.kg-file-card-contents { flex: 1; }
.kg-file-card-title { font-family: 'EB Garamond', serif; font-size: 16px; font-weight: 700; }
.kg-file-card-caption { font-size: 12px; color: var(--muted); }
.kg-file-card-metadata { font-family: 'DM Mono', monospace; font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); margin-top: 4px; }

/* Embed / NFT / Other */
.kg-embed-card { margin: 2em 0; }
.kg-embed-card iframe { width: 100%; }
.kg-nft-card { margin: 2em 0; }

/* Code card */
.kg-code-card { margin: 2em 0; }
.kg-code-card pre {
  background: var(--ink); color: var(--paper2);
  padding: 20px; overflow-x: auto;
  font-family: 'DM Mono', monospace; font-size: 13px; line-height: 1.6;
}

/* Header card (Ghost native) */
.kg-header-card {
  padding: 40px 24px; text-align: center;
  background: var(--paper2); margin: 2em 0;
}
.kg-header-card h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(28px, 4vw, 48px); font-weight: 700;
  line-height: 1.1; color: var(--ink);
}
.kg-header-card p {
  font-size: 16px; color: var(--muted); margin-top: 12px;
}

/* Signup card */
.kg-signup-card { margin: 2em 0; }

/* Before/After card */
.kg-before-after-card { margin: 2em 0; position: relative; overflow: hidden; }

/* ── POST FEATURE IMAGE UTILITY ──────────────────────────────── */
.gh-feature-image-wrap { margin-bottom: 0; }
.gh-feature-image-wrap img { width: 100%; max-height: 600px; object-fit: cover; display: block; }
