@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --terracotta: #c4614a;
  --terracotta-light: #d97c66;
  --sienna: #8b3a2a;
  --ochre: #c49a3c;
  --stone: #9a8f82;
  --dark: #2a2118;
  --mid: #5c4f44;
  --ink: #1a1410;
  --nav-height: 64px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--dark);
  font-size: 18px;
  line-height: 1.6;
  max-width: 100%;
  width: 100%;
}

html {
  max-width: 100%;
}

/* ============================================
   READING PROGRESS
   ============================================ */
#reading-progress {
  position: fixed; top: var(--nav-height); left: 0;
  height: 3px; width: 0%;
  background: var(--terracotta);
  z-index: 200; transition: width 0.1s linear;
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,97,74,0.15);
}

.site-nav .nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-style: italic;
  color: var(--terracotta); text-decoration: none; white-space: nowrap;
}

.site-nav .nav-links { display: flex; gap: 2rem; list-style: none; }

.site-nav .nav-links a {
  font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mid);
  text-decoration: none; font-weight: 500; transition: color 0.2s; white-space: nowrap;
}

.site-nav .nav-links a:hover { color: var(--terracotta); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--terracotta);
}

.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(196,97,74,0.15);
  z-index: 99; padding: 1rem 1.5rem;
  flex-direction: column;
}

.mobile-nav a {
  display: block; padding: 0.9rem 0;
  font-size: 0.88rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mid);
  text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(196,97,74,0.08);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--terracotta); }
.mobile-nav.is-open { display: flex; }

/* ============================================
   HERO
   ============================================ */
.hero-section {
  min-height: 80vh;
  max-height: 820px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  align-items: stretch;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 4rem 3rem 5rem;
  position: relative; z-index: 2;
}

.hero-eyebrow {
  font-size: 0.9rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terracotta);
  font-weight: 500; margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}

.hero-eyebrow-line {
  display: block; width: 2rem; height: 1px; background: var(--terracotta); flex-shrink: 0;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 300; line-height: 1.15;
  color: var(--ink); margin-bottom: 2rem;
}

.hero-title em { font-style: italic; color: var(--terracotta); }

.hero-desc {
  font-size: 1.1rem; color: var(--mid);
  line-height: 1.75; max-width: 440px;
  margin-bottom: 2.8rem; font-weight: 300;
}

.hero-btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--terracotta); color: white;
  padding: 0.9rem 2.2rem; text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  align-self: flex-start;
  transition: background 0.2s, transform 0.2s;
}

.hero-btn:hover { background: var(--sienna); transform: translateY(-1px); }

.hero-stats {
  display: flex; gap: 2rem;
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(196,97,74,0.15);
}

.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }

.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300;
  color: var(--terracotta); line-height: 1;
}

.hero-stat-label {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--stone);
}

.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  overflow: hidden;
}

/* Desktop mosaic tiles — fill the grid cell */
.hero-right .mosaic-tile {
  position: relative;
  overflow: hidden;
}

/* ============================================
   HERO MOSAIC
   ============================================ */
.hero-mosaic {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
}

.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mosaic-tile:hover img { transform: scale(1.04); }

.mosaic-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(26,20,16,0.75), transparent);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; color: white; font-size: 1.3rem;
}

/* ============================================
   START HERE SECTION
   ============================================ */
.start-here-section {
  background: linear-gradient(135deg, #3a4a28 0%, #4a5e35 40%, #3d5230 100%);
  padding: 4rem 5rem;
  position: relative; overflow: hidden;
}

.section-eyebrow {
  font-size: 0.9rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ochre);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
  position: relative; z-index: 1;
}

.eyebrow-line {
  display: block; width: 1.5rem; height: 1px;
  background: var(--ochre); flex-shrink: 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300; line-height: 1.2;
  color: #faf8f4; margin-bottom: 3rem;
  position: relative; z-index: 1;
}

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

.start-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; position: relative; z-index: 1;
}

.start-card {
  background: rgba(255,252,245,0.08);
  backdrop-filter: blur(4px);
  padding: 3rem 2.5rem;
  text-decoration: none; position: relative;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform 0.3s, background 0.3s;
}

.start-card:hover {
  transform: translateY(-3px);
  background: rgba(255,252,245,0.14);
}

.start-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem; font-weight: 300;
  color: rgba(196,97,74,0.2); line-height: 1;
  position: absolute; top: 1.2rem; right: 1.5rem;
}

.start-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 400;
  color: #faf8f4; line-height: 1.3;
}

.start-card-desc {
  font-size: 1rem; color: rgba(240,235,220,0.8);
  line-height: 1.7; font-weight: 300;
}

.start-card-link {
  font-size: 0.88rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ochre);
  margin-top: auto; padding-top: 1.2rem;
  border-top: 1px solid rgba(196,97,74,0.2);
}

/* ============================================
   ARTICLES SECTION
   ============================================ */
.articles-section {
  padding: 4rem 5rem 7rem;
  background: var(--warm-white);
}

.articles-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 3rem;
}

.articles-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300; color: var(--ink); line-height: 1.2;
}

.articles-title em { font-style: italic; color: var(--terracotta); }

.articles-header .section-eyebrow { color: var(--terracotta); margin-bottom: 0.5rem; }
.articles-header .eyebrow-line { background: var(--terracotta); }

.view-all-link {
  font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terracotta);
  text-decoration: none; border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px; white-space: nowrap;
}

.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

/* ============================================
   POST CARDS
   ============================================ */
.post-card {
  background: white; text-decoration: none;
  border: 1px solid rgba(196,97,74,0.1);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(42,33,24,0.09); }

.post-card-img { position: relative; overflow: hidden; height: 220px; }

.post-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform 0.5s;
}

.post-card:hover .post-card-img img { transform: scale(1.05); }

.post-card-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--terracotta); color: white;
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; font-weight: 500;
}

.post-card-body {
  padding: 1.8rem; display: flex;
  flex-direction: column; gap: 0.7rem; flex: 1;
}

.post-card-meta {
  font-size: 0.72rem; color: var(--stone);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}

.meta-dot {
  width: 3px; height: 3px; background: var(--stone);
  border-radius: 50%; display: inline-block; opacity: 0.5;
}

.post-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400; color: var(--ink); line-height: 1.3;
}

.post-card-excerpt {
  font-size: 0.92rem; color: var(--mid);
  line-height: 1.65; font-weight: 300; flex: 1;
}

.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid rgba(196,97,74,0.1); margin-top: 0.5rem;
}

.post-card-link {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terracotta);
  display: flex; align-items: center; gap: 0.4rem; transition: gap 0.2s;
}

.post-card:hover .post-card-link { gap: 0.7rem; }

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  background: var(--terracotta);
  padding: 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.newsletter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300; color: white; line-height: 1.25;
  margin-bottom: 1rem;
}

.newsletter-title em { font-style: italic; }

.newsletter-desc {
  font-size: 0.92rem; color: rgba(255,255,255,0.75);
  line-height: 1.7; font-weight: 300;
}

.newsletter-form {
  display: flex; margin-bottom: 0.8rem;
}

.newsletter-input {
  flex: 1; padding: 1rem 1.3rem; border: none;
  background: rgba(255,255,255,0.15); color: white;
  font-family: 'Jost', sans-serif; font-size: 0.88rem; outline: none;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-btn {
  padding: 1rem 1.8rem; background: var(--dark); color: white;
  border: none; font-family: 'Jost', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}

.newsletter-btn:hover { background: var(--sienna); }

.newsletter-note {
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
}


/* START CARD ICON */
.start-card-icon {
  margin-bottom: 0.5rem;
  line-height: 1;
}

.start-card-icon svg {
  display: block;
}

/* ============================================
   POST HERO
   ============================================ */
.post-hero {
  width: 100%; height: 55vh;
  min-height: 300px; max-height: 520px;
  overflow: hidden; position: relative;
  margin-top: var(--nav-height);
}

.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,248,240,0.25) 0%, rgba(26,20,16,0.1) 30%, rgba(26,20,16,0.75) 100%);
}

.post-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-width: 720px; margin: 0 auto; padding: 0 2rem 3rem;
}

.post-tag {
  display: inline-block; background: var(--terracotta); color: white;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.28rem 0.8rem; font-weight: 500; margin-bottom: 1rem; text-decoration: none;
}

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 400; color: white; line-height: 1.2; margin-bottom: 1rem;
}

.post-meta { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.post-meta span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.post-meta-sep { width: 3px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 50%; display: inline-block; }

/* ============================================
   POST CONTENT
   ============================================ */
.post-content {
  max-width: 720px; margin: 0 auto; padding: 3rem 2rem 5rem;
}

.post-content p {
  font-size: 1.08rem; line-height: 1.9;
  color: var(--mid); font-weight: 300; margin-bottom: 1.6rem;
}

.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 400;
  color: var(--ink); line-height: 1.25; margin: 3rem 0 1.2rem;
}

.post-content h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin: 2.5rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.post-content h3::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--terracotta);
  flex-shrink: 0;
}

.post-content h4 {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 600; margin: 2rem 0 0.8rem;
}

.post-content ul, .post-content ol {
  margin: 0.5rem 0 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}

.post-content li { font-size: 1.05rem; line-height: 1.75; color: var(--mid); font-weight: 300; }

.post-content a {
  color: var(--terracotta); text-decoration: underline;
  text-decoration-color: rgba(196,97,74,0.3);
  text-underline-offset: 3px; transition: text-decoration-color 0.2s;
}

.post-content a:hover { text-decoration-color: var(--terracotta); }
.post-content strong { font-weight: 600; color: var(--ink); }

.post-content blockquote {
  background: var(--cream); border-left: 3px solid var(--ochre);
  padding: 1.4rem 1.8rem; margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic; color: var(--ink); line-height: 1.5; font-weight: 300;
}

.post-content figure { margin: 2rem 0; }
.post-content figure img { width: 100%; height: auto; min-height: 200px; object-fit: cover; }
.post-content figcaption { font-size: 0.78rem; color: var(--stone); font-style: italic; padding: 0.6rem 0 0; }


/* ============================================
   TABLE SCROLL — ALL CONTEXTS
   ============================================ */

/* Target every possible wrapper Ghost uses for tables */
.post-content table,
.post-content .kg-table-card,
.post-content .kg-table-card table,
.gh-content table,
.post-full-content table,
article table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-collapse: collapse;
}

/* Restore table behaviour for info-tables which are in HTML cards */
.post-content table.info-table {
  display: table;
  max-width: 560px;
  width: 560px;
  table-layout: fixed;
}

.post-content table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
}

/* Ghost native table card wrapper */
.post-content .kg-table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  display: block;
}

/* HTML card table scroll wrapper */
.post-content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1.5rem 0 2rem;
}

.post-content .table-scroll table {
  margin: 0;
  min-width: 500px;
}

.post-content table th {
  background: var(--dark); color: var(--cream); padding: 0.75rem 1rem;
  text-align: left; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
}

.post-content table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid rgba(196,97,74,0.1);
  color: var(--mid); font-weight: 300; line-height: 1.5;
}

.post-content table tr:nth-child(even) td { background: rgba(245,240,232,0.6); }
/* TWO-COLUMN INFO TABLES — consistent fixed width */
.post-content table.info-table {
  max-width: 560px;
  width: 560px;
  table-layout: fixed;
}

.post-content table.info-table td:first-child {
  width: 170px;
  min-width: 170px;
  white-space: nowrap;
  vertical-align: top;
}

.post-content table.info-table td:last-child {
  vertical-align: top;
}



/* ============================================
   KOENIG CARDS
   ============================================ */
.post-content .kg-width-wide { margin-left: -4rem; margin-right: -4rem; }
.post-content .kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.post-content .kg-image { width: 100%; height: auto; display: block; }
.post-content .kg-image-card { margin: 2rem 0; }
.post-content .kg-image-card img { width: 100%; height: auto; display: block; }
.post-content .kg-image-card figcaption { font-size: 0.78rem; color: var(--stone); font-style: italic; padding: 0.6rem 0 0; }
.post-content .kg-gallery-card { margin: 2rem 0; }
.post-content .kg-gallery-container { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-content .kg-gallery-image { flex: 1 1 calc(50% - 0.25rem); min-width: 200px; }
.post-content .kg-gallery-image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.post-content .kg-embed-card { margin: 2rem 0; }
.post-content .kg-embed-card iframe { max-width: 100%; }
.post-content .kg-bookmark-card { margin: 2rem 0; }
.post-content .kg-bookmark-container { display: flex; border: 1px solid rgba(196,97,74,0.15); text-decoration: none; background: white; flex-wrap: wrap; }
.post-content .kg-bookmark-content { padding: 1.2rem; flex: 1; min-width: 200px; }
.post-content .kg-bookmark-title { font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; font-size: 0.95rem; }
.post-content .kg-bookmark-description { font-size: 0.85rem; color: var(--stone); line-height: 1.5; }
.post-content .kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.post-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-content .kg-callout-card { display: flex; gap: 1rem; background: var(--cream); border-left: 3px solid var(--terracotta); padding: 1.4rem 1.8rem; margin: 2rem 0; }
.post-content .kg-callout-text { font-size: 1rem; color: var(--mid); line-height: 1.65; }
.post-content .kg-toggle-card { border: 1px solid rgba(196,97,74,0.15); margin: 1.5rem 0; }
.post-content .kg-toggle-heading { padding: 1rem 1.4rem; font-weight: 500; cursor: pointer; }
.post-content .kg-toggle-content { padding: 0 1.4rem 1rem; }
.post-content .kg-button-card { text-align: center; margin: 2rem 0; }
.post-content .kg-btn { display: inline-block; background: var(--terracotta); color: white; padding: 0.85rem 2rem; text-decoration: none; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.post-content .kg-divider { border: none; border-top: 1px solid rgba(196,97,74,0.15); margin: 2.5rem 0; }
.post-content .kg-header-card { background: var(--dark); padding: 3rem 1.5rem; text-align: center; margin: 2rem 0; }
.post-content .kg-header-card h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 4vw, 2.4rem); color: white; font-weight: 300; margin: 0 0 1rem; }
.post-content .kg-header-card p { color: rgba(255,255,255,0.7); font-size: 1rem; margin: 0; }

/* ============================================
   MID NEWSLETTER
   ============================================ */
.mid-newsletter {
  background: linear-gradient(135deg, #3a4a28 0%, #4a5e35 100%);
  padding: 2.8rem 2rem; margin: 3.5rem 0; text-align: center;
}
.mid-newsletter h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem, 3vw, 1.7rem); font-weight: 300; font-style: italic; color: white; margin-bottom: 0.5rem; }
.mid-newsletter p { font-size: 0.95rem; color: rgba(255,255,255,0.72); margin-bottom: 1.5rem; font-weight: 300; }
.mid-newsletter-form { display: flex; max-width: 400px; margin: 0 auto; }
.mid-newsletter input { flex: 1; padding: 0.85rem 1.2rem; border: none; background: rgba(255,255,255,0.15); color: white; font-family: 'Jost', sans-serif; font-size: 0.9rem; outline: none; }
.mid-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.mid-newsletter button { padding: 0.85rem 1.5rem; background: var(--terracotta); color: white; border: none; font-family: 'Jost', sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.mid-newsletter button:hover { background: var(--sienna); }

/* ============================================
   AUTHOR BAR
   ============================================ */
.author-bar {
  max-width: 720px; margin: 0 auto; padding: 2rem 2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(196,97,74,0.12);
  flex-wrap: wrap; gap: 1.5rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; justify-content: center; gap: 1rem; padding: 3rem 0; flex-wrap: wrap; }
.pagination a { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); text-decoration: none; border: 1px solid rgba(196,97,74,0.3); padding: 0.6rem 1.4rem; }
.pagination a:hover { background: var(--terracotta); color: white; }

/* ============================================
   GHOST PAGE FEATURES — required
   ============================================ */
.page-template .post-hero { display: block; }
.tag-template .site-header { display: block; }
.author-template .author-header { display: block; }
.error-template .error-content { display: block; }

/* ============================================
   ERROR PAGE
   ============================================ */
.error-content { padding-top: var(--nav-height); text-align: center; padding: 8rem 2rem; }
.error-content h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(4rem, 10vw, 6rem); font-weight: 300; color: var(--terracotta); line-height: 1; margin-bottom: 1rem; }
.error-content p { font-size: 1.1rem; color: var(--mid); margin-bottom: 2rem; }

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
  background: var(--ink); padding: 4rem 5rem 2.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.site-footer .footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-style: italic; color: var(--terracotta); display: block; margin-bottom: 1rem; text-decoration: none; }
.site-footer .footer-tagline { font-size: 0.9rem; color: var(--stone); line-height: 1.65; font-weight: 300; max-width: 280px; }
.site-footer .footer-col-title { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.2rem; }
.site-footer .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer .footer-links a { font-size: 0.9rem; color: var(--stone); text-decoration: none; transition: color 0.2s; }
.site-footer .footer-links a:hover { color: var(--terracotta-light); }
.site-footer .footer-bottom { grid-column: 1/-1; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer .footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }


/* ============================================
   MOBILE MOSAIC — separate element, hidden on desktop
   ============================================ */
.mobile-mosaic {
  display: none;
}

/* ============================================
   TABLET — max 1024px
   ============================================ */
@media (max-width: 1024px) {
  .site-nav { padding: 0 2rem; }
  .hero-left { padding: 3rem 2.5rem 3rem 3rem; }
  .start-here-section { padding: 4rem 3rem; }
  .articles-section { padding: 4rem 3rem 5rem; }
  .newsletter-section { padding: 4rem 3rem; gap: 3rem; }
  .site-footer { padding: 4rem 3rem 2.5rem; }
}

/* ============================================
   MOBILE — max 768px
   ============================================ */
@media (max-width: 768px) {

  /* NAV */
  .site-nav { padding: 0 1.5rem; }
  .site-nav .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* HERO */
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 2.5rem 1.5rem;
    order: 1;
  }

  .hero-right {
    display: none;
  }

  /* Show mobile mosaic instead */
  .mobile-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .mobile-mosaic-tile {
    position: relative;
    overflow: hidden;
    padding-bottom: 50vw;
    height: 0;
  }

  .mobile-mosaic-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mobile-mosaic-tile .mosaic-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.8rem 1rem;
    background: linear-gradient(to top, rgba(26,20,16,0.75), transparent);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; color: white; font-size: 1.1rem;
  }

  .hero-desc { max-width: 100%; }
  .mosaic-label { font-size: 1rem; }

  /* START HERE */
  .start-here-section { padding: 3rem 1.5rem; }
  .start-grid { grid-template-columns: 1fr; gap: 1rem; }
  .start-card { padding: 2rem 1.5rem; }
  .start-card-num { font-size: 3rem; }

  /* ARTICLES */
  .articles-section { padding: 3rem 1.5rem 4rem; }
  .articles-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .posts-grid { grid-template-columns: 1fr; }

  /* NEWSLETTER */
  .newsletter-section {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .newsletter-form { flex-wrap: wrap; }
  .newsletter-input { min-width: 100%; }
  .newsletter-btn { width: 100%; }

  /* POST */
  .post-hero { height: 55vw; min-height: 240px; max-height: 380px; }
  .post-hero-content { padding: 0 1.5rem 2rem; }
  .post-content { padding: 2rem 1.5rem 4rem; }
  .post-content .kg-width-wide { margin-left: -1.5rem; margin-right: -1.5rem; }
  .post-content .kg-width-full { margin-left: -1.5rem; margin-right: -1.5rem; width: calc(100% + 3rem); max-width: none; }
  .post-content .kg-gallery-image { flex: 1 1 100%; }
  .post-content .kg-bookmark-thumbnail { display: none; }

  /* AUTHOR BAR */
  .author-bar { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }

  /* FOOTER */
  .site-footer { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; gap: 2rem; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* TAG / AUTHOR PAGES */
  div[style*="grid-template-columns: repeat(3,1fr)"],
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    display: flex !important; flex-direction: column !important;
  }

  div[style*="grid-template-columns: repeat(2,1fr)"],
  div[style*="grid-template-columns:repeat(2,1fr)"] {
    display: flex !important; flex-direction: column !important;
  }
}


  /* Articles page hero heading — smaller on mobile only */
  .articles-hero-title {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
  }

  /* FIX 1: Start Here heading — smaller font on mobile only */
  .start-here-section .section-title {
    font-size: 2rem;
  }

  /* FIX 2: Article cards — reduce side padding so cards are wider */
  .articles-grid-wrap {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .tag-template div[style*="padding:4rem 5rem"],
  div[style*="padding:4rem 5rem"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* ALL TABLES on mobile — scroll horizontally */
  .post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .post-content .kg-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .post-content .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 1.5rem 0 2rem;
  }

  .post-content .table-scroll table {
    display: table;
    margin: 0;
    min-width: 480px;
    font-size: 0.78rem;
  }

  /* Info tables on mobile */
  .post-content table.info-table {
    display: block;
    width: 100%;
    max-width: 100%;
    table-layout: auto;
  }

  .post-content table.info-table td:first-child {
    width: 120px;
    min-width: 120px;
    white-space: nowrap;
  }

/* ============================================
   SMALL MOBILE — max 480px
   ============================================ */
@media (max-width: 480px) {
  body { font-size: 16px; }
  /* hero-right hidden on mobile */
  .post-hero { height: 60vw; min-height: 200px; }
  .post-content { padding: 1.5rem 1.2rem 3rem; }
  .mid-newsletter { padding: 2rem 1.2rem; }
  .mid-newsletter-form { flex-direction: column; }
  .mid-newsletter input { min-width: 100%; }
  .mid-newsletter button { width: 100%; }
  .site-footer { padding: 2.5rem 1.2rem 1.5rem; }
  .start-here-section { padding: 2.5rem 1.2rem; }
  .articles-section { padding: 2.5rem 1.2rem 3rem; }
  .newsletter-section { padding: 2.5rem 1.2rem; }
}
