/* ─── TUSENBRUK GHOST THEME ──────────────── */
/* A Thousand Uses — editorial journal        */

/* ─── RESET & VARIABLES ──────────────────── */
:root {
  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ink: #1a1a1a;
  --mid: #4a4a4a;
  --muted: #888;
  --rule: #e2e2e2;
  --chalk: #f7f7f5;
  --white: #fff;
  --red: #b42a2a;
  --red-dk: #8c1f1f;
  --max-w: 1080px;
  --max-w-narrow: 680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--rule);
  padding: 0 32px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; align-items: baseline; gap: 12px; }
.wordmark {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark em {
  font-style: normal;
  color: var(--red);
}
.wordmark-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}
.nav-links li a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.15s;
}
.nav-links li a:hover { color: var(--ink); }

/* ─── HERO ───────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 48px;
  border-bottom: 1px solid var(--rule);
}
.hero-kicker {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-title em {
  font-style: italic;
  color: var(--red);
}
.hero-standfirst {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--mid);
  max-width: 540px;
  line-height: 1.6;
}

/* ─── CATEGORY BAR ───────────────────────── */
.category-bar {
  display: flex;
  gap: 8px;
  padding: 16px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.cat-pill {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  color: var(--mid);
  transition: all 0.15s;
}
.cat-pill:hover, .cat-pill.active {
  color: var(--ink);
  border-color: var(--ink);
}

/* ─── LEAD STORY ─────────────────────────── */
.lead-story {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--chalk);
}
.lead-image-link {
  display: block;
  overflow: hidden;
  max-height: 480px;
}
.lead-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.lead-image-link:hover .lead-image {
  transform: scale(1.02);
}
.lead-story-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 32px 0;
}
.lead-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.lead-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}
.lead-title a { color: var(--ink); }
.lead-title a:hover { color: var(--red); }
.lead-excerpt {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 600px;
}
.lead-author-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* ─── POST CARDS ─────────────────────────── */
.posts-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}
.post-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.post-card-has-image {
  grid-template-columns: 200px 1fr auto;
}
.post-card:last-child { border-bottom: none; }
.post-card-body { min-width: 0; }
.post-card-image-link {
  display: block;
  overflow: hidden;
  border-radius: 2px;
}
.post-card-image {
  width: 200px;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.post-card-image-link:hover .post-card-image {
  transform: scale(1.04);
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.post-card-category {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.post-card-date, .post-card-reading-time {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.post-card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 6px;
}
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--red); }
.post-card-excerpt {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 8px;
}
.post-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-card-author {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* ─── SINGLE POST ────────────────────────── */
.post-cover {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  background: var(--chalk);
}
.post-cover-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.post-header {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 48px 24px 0;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.post-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.post-excerpt-full {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 32px;
  font-style: italic;
}
.post-header-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.post-header-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.post-header-author-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chalk);
  color: var(--mid);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}
.post-header-author-info {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}
.post-header-author-info strong { font-weight: 600; }
.post-header-author-info strong a { color: var(--ink); }
.post-header-author-info span { color: var(--muted); display: block; }

/* ─── POST BODY (Ghost content) ──────────── */
.post-body {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 40px 24px 40px;
}
.post-body p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 24px;
}
.post-body h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 16px;
}
.post-body h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 40px 0 12px;
}
.post-body blockquote {
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
  color: var(--mid);
}
.post-body strong { font-weight: 700; }
.post-body em { font-style: italic; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}
.post-body ul, .post-body ol {
  margin: 0 0 24px 24px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
}

/* Ghost image cards — wide/full bleed */
.post-body .kg-image-card,
.post-body .kg-gallery-card {
  margin: 48px 0;
}
.post-body .kg-image-card.kg-width-wide,
.post-body .kg-gallery-card.kg-width-wide {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100vw - 48px);
  transform: translateX(calc((var(--max-w-narrow) - 100%) / 2 * -1));
}
.post-body .kg-image-card.kg-width-full {
  max-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.post-body .kg-image-card img {
  width: 100%;
  display: block;
}
.post-body figcaption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Ghost bookmark cards */
.post-body .kg-bookmark-card {
  border: 1px solid var(--rule);
  margin: 32px 0;
}
.post-body .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: var(--ink);
}
.post-body .kg-bookmark-content {
  padding: 20px;
  flex: 1;
}
.post-body .kg-bookmark-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}
.post-body .kg-bookmark-description {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
  margin-top: 8px;
}

/* ─── BACK LINK ──────────────────────────── */
.post-back {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.post-back-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
}
.post-back-link:hover { color: var(--red-dk); }

/* ─── TAG PAGE ───────────────────────────── */
.tag-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 32px;
  border-bottom: 1px solid var(--rule);
}
.tag-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}
.tag-description {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--mid);
  margin-top: 8px;
}

/* ─── AUTHOR PAGE ────────────────────────── */
.author-header {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--rule);
}
.author-header-top {
  display: flex;
  align-items: center;
  gap: 20px;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chalk);
  color: var(--mid);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
}
.author-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}
.author-location {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}
.author-bio {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--mid);
  margin-top: 8px;
  line-height: 1.5;
}

/* ─── PAGINATION ─────────────────────────── */
.pagination {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}
.pagination-next {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
}

/* ─── FOOTER ─────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-brand em {
  font-style: normal;
  color: var(--red);
}
.footer-tagline {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); }

/* ─── HAMBURGER / MOBILE NAV ────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 500;
}
.hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.mobile-menu-open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 399;
}
.mobile-menu-open .mobile-overlay { display: block; }
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 400;
  transition: right 0.3s ease;
  border-left: 1px solid var(--rule);
  padding: 80px 32px 40px;
  display: none;
}
.mobile-menu-open .mobile-menu {
  display: block;
  right: 0;
}
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-menu-links li {
  border-bottom: 1px solid var(--rule);
}
.mobile-menu-links li:first-child {
  border-top: 1px solid var(--rule);
}
.mobile-menu-links a {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 16px 0;
  transition: color 0.15s;
}
.mobile-menu-links a:hover { color: var(--ink); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links-desktop { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .hero { padding: 48px 20px 40px; }
  .hero-title { font-size: 36px; }

  .category-bar { padding: 16px 20px; }
  .posts-grid { padding: 0 20px; }

  .post-card { grid-template-columns: 1fr; gap: 8px; }
  .post-card-has-image { grid-template-columns: 1fr; }
  .post-card-image { width: 100%; height: 200px; }

  .lead-image { height: 280px; }
  .lead-story-inner { padding: 24px 20px 0; }
  .lead-title { font-size: 24px; }

  .post-cover-img { height: 280px; }
  .post-header { padding: 32px 20px 0; }
  .post-title { font-size: 30px; }
  .post-body { padding: 32px 20px 40px; }

  .tag-header { padding: 32px 20px 24px; }
  .author-header { padding: 32px 20px 24px; }

  .site-footer { padding: 32px 20px; }
}

/* ─── SEARCH BUTTON ─────────────────────── */
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--mid);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.nav-search-btn:hover { color: var(--ink); }

/* ─── KIT / SHOP PAGE ───────────────────── */
.kit-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 48px;
  border-bottom: 1px solid var(--rule);
}
.kit-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.kit-intro {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--mid);
  max-width: 540px;
  line-height: 1.6;
}
.kit-sections {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.kit-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.kit-section:last-child { border-bottom: none; }
.kit-section-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.kit-card {
  border: 1px solid var(--rule);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
a.kit-card:hover {
  border-color: var(--ink);
}
.kit-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.kit-card-category {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kit-card-price {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.kit-card-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.kit-card-note {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--mid);
  line-height: 1.55;
  flex: 1;
}
.kit-card-cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 16px;
}
a.kit-card:hover .kit-card-cta { color: var(--red-dk); }
.kit-card-placeholder {
  border-style: dashed;
  border-color: var(--rule);
}
.kit-card-placeholder .kit-card-note {
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 768px) {
  .kit-header { padding: 48px 20px 40px; }
  .kit-title { font-size: 36px; }
  .kit-sections { padding: 0 20px; }
  .kit-grid { grid-template-columns: 1fr; }
}

/* ─── GHOST-SPECIFIC OVERRIDES ───────────── */
/* Hide Ghost's default signup/subscribe UI if not using memberships */
.gh-portal-triggerbtn-iframe { display: none !important; }
