/* ============================================================
   MARTHEBRE THEME
   ============================================================ */

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

:root {
  --snow:    #F2EEE9;
  --ice:     #DDE8EF;
  --glacier: #A8C4D4;
  --polar:   #1A2D3D;
  --pink:    #C94070;
  --blush:   #E88AAA;
  --grey:    #6A8898;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', Arial, sans-serif;
  --max-width: 900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font-body); font-weight: 300; background: var(--snow); color: var(--polar); line-height: 1.7; overflow-x: hidden; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   INNER WRAPPER — centres all content
   ============================================================ */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   NAV
   ============================================================ */
.gh-head { border-bottom: 0.5px solid rgba(168,196,212,0.3); background: var(--snow);    }
.gh-head-inner { max-width: var(--max-width); margin: 0 auto; padding: 18px 40px; display: flex; justify-content: space-between; align-items: center; }
.gh-head-brand a { font-family: var(--font-heading); font-weight: 300; font-size: 18px; letter-spacing: 0.05em; color: var(--polar); }
.gh-head-menu nav { display: flex; gap: 28px; align-items: center; }
.gh-head-menu a { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--glacier); }
.gh-head-menu a:hover { color: var(--polar); text-decoration: none; }
.gh-head-actions { display: flex; gap: 12px; }
.gh-head-btn { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 16px; border-radius: 2px; background: var(--polar); color: var(--snow); border: none; cursor: pointer; }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.home-hero { text-align: center; padding: 60px 40px 24px; }
.home-hero-hello { font-family: var(--font-heading); font-weight: 300; font-size: 80px; line-height: 1; color: var(--polar); margin-bottom: 10px; letter-spacing: -0.01em; }
.home-hero-name { font-size: 13px; color: var(--grey); letter-spacing: 0.06em; margin-bottom: 14px; }
.home-hero-body { font-size: 14px; color: var(--polar); line-height: 1.75; max-width: 480px; margin: 0 auto 24px; }
.home-hero-btn { display: inline-block; padding: 9px 26px; border-radius: 40px; border: 0.5px solid rgba(26,45,61,0.28); font-size: 12px; color: var(--polar); letter-spacing: 0.04em; cursor: pointer; background: transparent; font-family: var(--font-body); transition: background 0.15s, color 0.15s; }
.home-hero-btn:hover { background: var(--polar); color: var(--snow); text-decoration: none; }

/* ============================================================
   PHOTO COLLAGE — fixed 860px container, centred
   ============================================================ */
.home-collage { position: relative; height: 380px; width: 860px; max-width: 100%; margin: 0 auto; }
.home-collage-photo { position: absolute; border-radius: 3px; overflow: hidden; background: var(--ice); box-shadow: 0 8px 30px rgba(26,45,61,0.15), 0 2px 6px rgba(26,45,61,0.08); }
.home-collage-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-collage-photo:nth-child(1) { width: 220px; height: 290px; left: 40px; top: 55px; transform: rotate(-5deg); z-index: 1; }
.home-collage-photo:nth-child(2) { width: 260px; height: 310px; left: calc(50% - 130px); top: 20px; transform: rotate(2deg); z-index: 3; }
.home-collage-photo:nth-child(3) { width: 220px; height: 290px; right: 40px; top: 55px; transform: rotate(5deg); z-index: 2; }

/* ============================================================
   PILL NAVIGATION
   ============================================================ */
.home-pills { display: flex; gap: 9px; justify-content: center; align-items: center; padding: 40px 20px 0; flex-wrap: wrap; }
.home-pill { font-size: 12px; padding: 8px 22px; border-radius: 40px; border: 0.5px solid rgba(26,45,61,0.22); color: var(--polar); cursor: pointer; font-family: var(--font-body); font-weight: 300; letter-spacing: 0.02em; background: transparent; transition: all 0.15s; }
.home-pill:hover, .home-pill.active { background: var(--polar); color: var(--snow); border-color: var(--polar); }

/* ============================================================
   PANELS
   ============================================================ */
.home-panel { display: none !important; padding: 40px 0 52px; }
.home-panel.visible { display: block !important; }
.home-panel-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

/* ============================================================
   EXPEDITION TILES
   ============================================================ */
.exp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.exp-tile { position: relative; height: 260px; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--ice); }
.exp-tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.exp-tile-dim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,30,45,0.6) 0%, transparent 60%); transition: opacity 0.25s; }
.exp-tile-title-wrap { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px; transition: opacity 0.25s; }
.exp-tile-meta { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.exp-tile-name { font-family: var(--font-heading); font-size: 26px; font-weight: 300; color: #fff; line-height: 1.1; }
.exp-tile-name em { font-style: italic; color: var(--blush); }
.exp-tile-overlay { position: absolute; inset: 0; background: rgba(15,30,45,0.75); opacity: 0; transition: opacity 0.25s; }
.exp-tile-hover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 24px; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
.exp-tile-hover-meta { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.exp-tile-hover-name { font-family: var(--font-heading); font-size: 22px; font-weight: 300; color: #fff; margin-bottom: 10px; }
.exp-tile-hover-name em { font-style: italic; color: var(--blush); }
.exp-tile-hover-desc { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 18px; }
.exp-tile-hover-link { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blush); }
.exp-tile:hover .exp-tile-overlay { opacity: 1; }
.exp-tile:hover .exp-tile-title-wrap { opacity: 0; }
.exp-tile:hover .exp-tile-hover { opacity: 1; transform: translateY(0); }

/* ============================================================
   MEDIA LIST
   ============================================================ */
.media-list { display: flex; flex-direction: column; }
.media-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 0.5px solid rgba(168,196,212,0.3); cursor: pointer; }
.media-item:last-child { border-bottom: none; }
.media-item:hover .media-title { color: var(--pink); }
.media-badge { font-size: 10px; padding: 3px 9px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.06em; text-transform: uppercase; flex-shrink: 0; }
.media-badge.podcast { background: var(--ice); color: var(--grey); }
.media-badge.tv      { background: #f5e0e8; color: var(--pink); }
.media-badge.doc     { background: var(--ice); color: var(--grey); }
.media-badge.mag     { background: #f5e0e8; color: var(--pink); }
.media-badge.news    { background: var(--ice); color: var(--grey); }
.media-info { flex: 1; }
.media-title { font-family: var(--font-heading); font-size: 16px; font-weight: 300; color: var(--polar); margin-bottom: 2px; transition: color 0.15s; }
.media-source { font-size: 11px; color: var(--glacier); }
.media-date { font-size: 11px; color: var(--glacier); white-space: nowrap; }
.media-arrow { font-size: 11px; color: var(--pink); }

/* ============================================================
   TEXT PANELS
   ============================================================ */
.text-panel { max-width: 560px; }
.text-panel-title { font-family: var(--font-heading); font-size: 36px; font-weight: 300; color: var(--polar); margin-bottom: 16px; line-height: 1.1; }
.text-panel-title em { font-style: italic; color: var(--pink); }
.text-panel-body { font-size: 13px; color: var(--grey); line-height: 1.85; margin-bottom: 20px; }
.text-panel-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.text-panel-item { font-size: 13px; color: var(--grey); padding-left: 16px; position: relative; }
.text-panel-item::before { content: '—'; position: absolute; left: 0; color: var(--blush); }
.btn-contact { display: inline-block; background: var(--polar); color: var(--snow); border: none; padding: 10px 24px; border-radius: 2px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; font-family: var(--font-body); transition: background 0.15s; }
.btn-contact:hover { background: var(--pink); text-decoration: none; color: var(--snow); }

/* ============================================================
   SPONSORS
   ============================================================ */
.sponsors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.sponsor-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sponsor-img { width: 100%; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--ice); margin-bottom: 18px; }
.sponsor-img img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-name { font-family: var(--font-heading); font-size: 22px; font-weight: 300; color: var(--polar); margin-bottom: 10px; }
.sponsor-text { font-size: 12px; color: var(--grey); line-height: 1.75; }

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-hero { padding: 52px 0 32px; border-bottom: 0.5px solid rgba(168,196,212,0.3); max-width: var(--max-width); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.blog-hero-title { font-family: var(--font-heading); font-size: 52px; font-weight: 300; color: var(--polar); }
.blog-hero-title em { font-style: italic; color: var(--pink); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(168,196,212,0.2); max-width: var(--max-width); margin: 0 auto; }
.blog-card { background: var(--snow); cursor: pointer; transition: background 0.15s; }
.blog-card:hover { background: #fff; }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--ice); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.02); }
.blog-card-body { padding: 20px 24px 24px; }
.blog-card-tag { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 20px; background: var(--ice); color: var(--grey); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.blog-card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 300; color: var(--polar); line-height: 1.35; margin-bottom: 8px; }
.blog-card:hover .blog-card-title { color: var(--pink); }
.blog-card-meta { font-size: 11px; color: var(--glacier); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero { max-width: var(--max-width); margin: 0 auto; padding: 60px 40px 32px; }
.post-tag { display: inline-block; font-size: 10px; padding: 3px 9px; border-radius: 20px; background: var(--ice); color: var(--grey); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.post-title { font-family: var(--font-heading); font-size: 52px; font-weight: 300; color: var(--polar); line-height: 1.1; margin-bottom: 16px; }
.post-title em { font-style: italic; color: var(--pink); }
.post-meta { font-size: 12px; color: var(--glacier); }
.post-feature-img { max-width: var(--max-width); margin: 32px auto; padding: 0 40px; }
.post-feature-img img { width: 100%; border-radius: 4px; }
.post-content { max-width: 680px; margin: 0 auto; padding: 32px 40px 80px; font-size: 16px; line-height: 1.8; color: var(--polar); }
.post-content h2, .post-content h3 { font-family: var(--font-heading); font-weight: 300; color: var(--polar); margin: 40px 0 16px; }
.post-content h2 { font-size: 32px; }
.post-content h3 { font-size: 24px; }
.post-content p { margin-bottom: 24px; }
.post-content blockquote { border-left: 2px solid var(--blush); padding: 12px 20px; margin: 32px 0; background: #fff; border-radius: 0 2px 2px 0; }
.post-content blockquote p { font-family: var(--font-heading); font-style: italic; font-size: 20px; color: var(--polar); margin: 0; }
.post-content img { border-radius: 4px; margin: 32px 0; }
.post-content a { color: var(--pink); }
.post-excerpt { font-size: 18px; color: var(--grey); line-height: 1.6; margin-top: 12px; font-family: var(--font-heading); font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
.gh-foot { border-top: 0.5px solid rgba(168,196,212,0.3); background: var(--snow); }
.gh-foot-inner { max-width: var(--max-width); margin: 0 auto; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; }
.gh-foot-brand { font-family: var(--font-heading); font-size: 13px; color: var(--glacier); }
.gh-foot-links { display: flex; gap: 18px; }
.gh-foot-links a { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--glacier); }
.gh-foot-links a:hover { color: var(--polar); text-decoration: none; }

/* ============================================================
   GHOST REQUIRED
   ============================================================ */
.kg-width-wide { margin-left: -80px; margin-right: -80px; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.kg-image { max-width: 100%; }
.kg-image-card { margin: 32px 0; }
.kg-image-card img { border-radius: 4px; }
.kg-gallery-container { display: flex; flex-direction: column; margin: 32px 0; }
.kg-gallery-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.kg-embed-card { margin: 32px 0; }
.kg-embed-card iframe { width: 100%; border-radius: 4px; }
.kg-bookmark-card { margin: 32px 0; border: 0.5px solid rgba(168,196,212,0.4); border-radius: 4px; overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-bookmark-content { padding: 16px; flex: 1; }
.kg-bookmark-title { font-weight: 400; color: var(--polar); margin-bottom: 4px; }
.kg-bookmark-description { font-size: 13px; color: var(--grey); }
.kg-bookmark-thumbnail img { width: 160px; height: 100%; object-fit: cover; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .gh-head-inner, .home-panel-inner, .inner { padding-left: 20px; padding-right: 20px; }
  .home-hero { padding: 40px 20px 16px; }
  .home-hero-hello { font-size: 56px; }
  .home-collage { width: 100%; height: 280px; }
  .home-collage-photo:nth-child(1) { width: 150px; height: 200px; left: 10px; }
  .home-collage-photo:nth-child(2) { width: 180px; height: 220px; }
  .home-collage-photo:nth-child(3) { width: 150px; height: 200px; right: 10px; }
  .home-pills { padding: 24px 20px 0; }
  .exp-grid { grid-template-columns: 1fr; }
  .sponsors-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 36px; }
  .post-content { padding: 20px 20px 60px; }
  .gh-foot-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   NAV FIXES
   ============================================================ */
.gh-head-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.gh-head-nav a {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--glacier);
  text-decoration: none;
}

.gh-head-nav a:hover { color: var(--polar); }

/* Hide any ul/li bullet points Ghost might inject */
.gh-head-nav ul,
.gh-head-menu ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; }
.gh-head-nav ul li::before,
.gh-head-menu ul li::before { display: none; content: none; }

.gh-head-social {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--glacier);
}

.gh-head-social a { color: var(--glacier); line-height: 0; }
.gh-head-social a:hover { color: var(--polar); }

/* Hide nav entirely on homepage */
.home-template .gh-head { display: none; }

/* Subpage nav — normal flow, not sticky */
.gh-head { position: static; }

/* Pill as link (Blog) */
.home-pill-link {
  display: inline-block;
  font-size: 12px;
  padding: 8px 22px;
  border-radius: 40px;
  border: 0.5px solid rgba(26,45,61,0.22);
  color: var(--polar);
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  font-weight: 300;
  background: transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.home-pill-link:hover { background: var(--polar); color: var(--snow); border-color: var(--polar); text-decoration: none; }

/* Blog pill — link style, never gets active state */
.home-pill-link, .home-pill-blog {
  font-size: 12px;
  padding: 8px 22px;
  border-radius: 40px;
  border: 0.5px solid rgba(26,45,61,0.22);
  color: var(--polar);
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  font-weight: 300;
  background: transparent;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.home-pill-link:hover, .home-pill-blog:hover {
  background: var(--polar);
  color: var(--snow);
  border-color: var(--polar);
  text-decoration: none;
}

/* Expeditions — always visible, between collage and pills */
.home-expeditions {
  padding: 48px 0 0;
}

/* Hero and collage — homepage only, hidden on all other pages */
.home-template .home-hero,
.home-template .home-collage,
.home-template .home-pills,
.home-template .home-panel,
.home-template .home-expeditions { display: block; }

/* On non-home pages, these elements don't exist in the template
   but if Ghost ever injects them, hide them */
body:not(.home-template) .home-hero,
body:not(.home-template) .home-collage { display: none; }

/* FORCE PILLS CENTER — override everything */
.home-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 40px 20px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: static !important;
  left: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

main {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.home-collage {
  width: 100% !important;
  max-width: 860px !important;
  overflow: hidden !important;
}
