/* ============================================================
   BUYING IN FRANCE — Ghost Theme
   Typography: Playfair Display + Source Serif 4 + Inter
   Palette: Ivory #FAFAF7 · Charcoal #2C2C2C · Gold #B8913A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300;1,8..60,400&family=Inter:wght@300;400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ── */
:root {
  --ivory:   #FAFAF7;
  --charcoal:#2C2C2C;
  --gold:    #B8913A;
  --muted:   #888;
  --rule:    rgba(0,0,0,0.12);
  --rule-sm: rgba(0,0,0,0.1);
  --serif:   'Playfair Display', serif;
  --body:    'Source Serif 4', serif;
  --sans:    'Inter', sans-serif;
}

/* ── Base ── */
html { font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.15);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}

.contact-trigger {
  cursor: pointer;
  color: var(--charcoal);
  letter-spacing: 0.13em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
  padding: 0;
}
.contact-trigger svg { width: 11px; height: 11px; transition: transform 0.2s; }
.contact-trigger.open svg { transform: rotate(180deg); }

.contact-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--ivory);
  border: 0.5px solid rgba(0,0,0,0.15);
  padding: 20px 24px;
  width: 270px;
  z-index: 200;
  display: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.contact-dropdown.open { display: block; }
.contact-dropdown-label {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--charcoal);
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-item-icon { font-size: 17px; color: var(--gold); width: 20px; text-align: center; }
.contact-item-title { font-size: 10px; font-weight: 500; margin-bottom: 1px; }
.contact-item-val { font-size: 9.5px; color: var(--muted); }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  padding: 20px 0 13px;
  text-align: center;
}
.eyebrow {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.title-row {
  display: flex;
  align-items: center;
}
.title-rule {
  flex: 1;
  height: 1.5px;
  background: var(--charcoal);
}
.site-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 18px;
  line-height: 1;
  white-space: nowrap;
}
.tagline {
  font-family: var(--body);
  font-size: 10.5px;
  font-style: italic;
  color: var(--muted);
  margin-top: 7px;
}
.masthead-rule {
  height: 2px;
  background: var(--charcoal);
  margin-top: 13px;
}

/* ============================================================
   SITE NAV
   ============================================================ */
.site-nav {
  display: flex;
  justify-content: center;
  border-bottom: 0.5px solid rgba(0,0,0,0.15);
}
.nav-btn {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  margin-bottom: -0.5px;
  text-decoration: none;
  display: inline-block;
}
.nav-btn.is-active, .nav-btn:hover { color: var(--charcoal); }
.nav-btn.is-active { border-bottom-color: var(--charcoal); }

/* ============================================================
   HERO PHOTO GRID (homepage)
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3px;
  height: 220px;
}
.photo-cell {
  overflow: hidden;
  position: relative;
  background: #E8E4DC;
}
.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.86);
}
.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 11px;
  background: linear-gradient(transparent, rgba(0,0,0,0.52));
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

/* ============================================================
   HERO TEXT BLOCK
   ============================================================ */
.hero {
  padding: 28px 0 24px;
  border-bottom: 0.5px solid var(--rule);
}
.kicker {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.28;
  font-weight: 600;
  margin-bottom: 13px;
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-desc {
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 18px;
  max-width: 560px;
}
.ctas { display: flex; gap: 16px; align-items: center; }
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  display: inline-block;
}
.btn-primary:hover { background: #444; color: var(--ivory); }
.btn-ghost {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
  display: inline-block;
}
.btn-ghost:hover { color: var(--charcoal); }

/* ============================================================
   HOME — TWO-COLUMN GRID
   ============================================================ */
.home-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 28px 0;
}
.col-left {
  padding-right: 32px;
  border-right: 0.5px solid var(--rule);
}
.col-right { padding-left: 32px; }
.col-label {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 18px;
  font-weight: 500;
}

/* Guide chapter rows (homepage) */
.chapter-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--rule-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.chapter-row:last-child { border-bottom: none; }
.chapter-row:hover .chapter-title { color: var(--gold); }
.chapter-num {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold);
  min-width: 16px;
  line-height: 1.1;
  flex-shrink: 0;
}
.chapter-title {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  transition: color 0.15s;
}
.chapter-desc {
  font-family: var(--body);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}

/* Article row (homepage sidebar) */
.article-row {
  padding: 12px 0;
  border-bottom: 0.5px solid var(--rule-sm);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover .article-title { color: var(--gold); }
.article-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 5px;
}
.tag {
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 2px 6px;
  border: 0.5px solid;
}
.tag-gold { color: var(--gold); border-color: var(--gold); }
.tag-muted { color: var(--muted); border-color: rgba(0,0,0,0.2); }
.article-date { font-size: 9.5px; color: var(--muted); }
.article-title {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.article-title em { font-style: italic; font-weight: 400; }
.article-excerpt {
  font-family: var(--body);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   FILTER PILLS
   ============================================================ */
.filters {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 0.5px solid rgba(0,0,0,0.2);
  color: var(--muted);
  cursor: pointer;
  background: none;
  font-family: var(--sans);
}
.filter-btn.is-active {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

/* ============================================================
   NEWSLETTER STRIP
   ============================================================ */
.newsletter-strip {
  border-top: 2px solid var(--charcoal);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.nl-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 5px;
}
.nl-sub {
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.nl-form { display: flex; }
.nl-input {
  flex: 1;
  border: 0.5px solid rgba(0,0,0,0.25);
  background: var(--ivory);
  padding: 9px 11px;
  font-size: 11px;
  font-family: var(--body);
  color: var(--charcoal);
  outline: none;
  border-right: none;
}
.nl-btn {
  background: var(--charcoal);
  color: var(--ivory);
  border: none;
  padding: 9px 13px;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
}
.nl-btn:hover { background: #444; }
.nl-success, .nl-error { margin-top: 10px; font-size: 0.9rem; font-family: 'Source Serif 4', serif; }
.nl-success { color: #2e7d32; }
.nl-error { color: #c62828; }
[data-members-form].success .nl-input,
[data-members-form].success .nl-btn { display: none; }
[data-members-form].success .nl-success { display: block !important; }
[data-members-form].error .nl-error { display: block !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 0.5px solid var(--rule);
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: var(--muted);
  letter-spacing: 0.07em;
}

/* ============================================================
   ARTICLES PAGE — GRID
   ============================================================ */
.page-header {
  padding: 26px 0 20px;
  border-bottom: 0.5px solid var(--rule);
  margin-bottom: 4px;
}
.page-kicker {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}
.page-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}
.page-desc {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 20px;
}
.article-card {
  padding: 16px 20px 16px 0;
  border-bottom: 0.5px solid var(--rule-sm);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-card:hover .article-card-title { color: var(--gold); }
.article-card:nth-child(even) {
  padding-left: 20px;
  padding-right: 0;
  border-left: 0.5px solid var(--rule-sm);
}
.article-card-title {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
  margin-top: 7px;
  transition: color 0.15s;
}
.article-card-excerpt {
  font-family: var(--body);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   SINGLE ARTICLE / POST
   ============================================================ */
.post-header {
  padding: 32px 0 24px;
  border-bottom: 0.5px solid var(--rule);
  max-width: 680px;
}
.post-kicker {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.post-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.22;
  font-weight: 600;
  margin-bottom: 14px;
}
.post-title em { font-style: italic; font-weight: 400; }
.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9.5px;
  color: var(--muted);
  font-family: var(--sans);
}
.post-meta-sep { opacity: 0.4; }

.post-content {
  max-width: 680px;
  padding: 32px 0;
}
.post-content p {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.85;
  color: #555;
  margin-bottom: 20px;
}
.post-content h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 14px;
  color: var(--charcoal);
}
.post-content h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--charcoal);
}
.post-content strong { color: var(--charcoal); font-weight: 500; }
.post-content em { font-style: italic; }
.post-content ul, .post-content ol {
  margin: 10px 0 20px 0;
  padding-left: 0;
  list-style: none;
}
.post-content ul li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-family: var(--body);
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.post-content ul li:last-child { border-bottom: none; }
.post-content ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.post-content ol { counter-reset: item; }
.post-content ol li {
  counter-increment: item;
  padding: 6px 0 6px 24px;
  position: relative;
  font-family: var(--body);
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.post-content ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}
.post-content blockquote,
.post-content .kg-callout-card {
  background: #F5F0E8;
  border-left: 2px solid var(--gold);
  padding: 14px 16px;
  margin: 20px 0;
  font-family: var(--body);
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}
.post-content blockquote p { margin-bottom: 0; font-size: 13px; }
.post-content a {
  color: var(--charcoal);
  border-bottom: 0.5px solid var(--gold);
}
.post-content a:hover { color: var(--gold); }
.post-content hr {
  border: none;
  border-top: 0.5px solid var(--rule);
  margin: 36px 0;
}
.post-content figure { margin: 28px 0; }
.post-content figure img { width: 100%; }
.post-content figcaption {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--sans);
  letter-spacing: 0.04em;
  margin-top: 8px;
  text-align: center;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 0;
  text-decoration: none;
}
.back-link:hover { color: var(--charcoal); }

/* ============================================================
   THE GUIDE PAGE
   ============================================================ */
.guide-chapter {
  padding: 24px 0;
  border-bottom: 0.5px solid var(--rule-sm);
  display: flex;
  gap: 24px;
}
.guide-chapter:last-child { border-bottom: none; }
.guide-num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  min-width: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.guide-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}
.guide-body {
  font-family: var(--body);
  font-size: 13px;
  color: #555;
  line-height: 1.85;
}
.guide-body p { margin-bottom: 12px; }
.guide-body p:last-child { margin-bottom: 0; }
.guide-body ul { margin: 10px 0 12px 0; padding-left: 0; list-style: none; }
.guide-body ul li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.guide-body ul li:last-child { border-bottom: none; }
.guide-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.guide-body strong { color: var(--charcoal); font-weight: 500; }
.callout {
  background: #F5F0E8;
  border-left: 2px solid var(--gold);
  padding: 14px 16px;
  margin: 14px 0;
  font-family: var(--body);
  font-size: 12.5px;
  color: #555;
  line-height: 1.7;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-wrap { padding: 32px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: start;
}
.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 4px;
}
.about-role {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.about-bio p {
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.85;
  color: #666;
  margin-bottom: 16px;
}
.about-bio p:last-child { margin-bottom: 0; }
.about-bio p.closing { font-style: italic; color: var(--charcoal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .home-cols,
  .newsletter-strip,
  .about-grid,
  .articles-grid { grid-template-columns: 1fr; }

  .col-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 0.5px solid var(--rule-sm);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .col-right { padding-left: 0; }

  .photo-grid { grid-template-columns: 1fr; height: 180px; }
  .photo-grid .photo-cell:not(:first-child) { display: none; }

  .about-photo { width: 140px; height: 140px; }
  .site-title { font-size: 24px; }

  .guide-chapter { flex-direction: column; gap: 8px; }

  .article-card:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .post-title { font-size: 24px; }
}

/* ── Guide chapter enhanced ── */
.guide-chapter {
  padding: 36px 0;
  border-bottom: 0.5px solid var(--rule-sm);
  display: flex;
  gap: 24px;
  scroll-margin-top: 80px;
}
.guide-chapter:last-child { border-bottom: none; }
.guide-num {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--gold);
  min-width: 32px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.5;
}
.guide-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(184,145,58,0.25);
  color: var(--charcoal);
}

/* ── Guide chapter v3 — strong section breaks ── */
.guide-chapter {
  padding: 40px 0 32px;
  border-bottom: none;
  border-top: 2px solid var(--charcoal);
  display: flex;
  gap: 28px;
  scroll-margin-top: 80px;
  margin-top: 8px;
}
.guide-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--charcoal);
  border-bottom: none;
  padding-bottom: 0;
}
.guide-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  min-width: 28px;
  flex-shrink: 0;
  letter-spacing: 0.08em;
  padding-top: 6px;
  opacity: 1;
}

/* ── Guide title v4 — bigger darker ── */
.guide-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin-bottom: 20px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}

/* ── Chapter nav v5 — bigger bolder ── */
.chapter-nav-item {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2C2C2C !important;
  letter-spacing: 0.08em !important;
  padding: 14px 18px !important;
}

/* ── Chapter nav v6 — Playfair Display ── */
.chapter-nav-item {
  font-family: 'Playfair Display', serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2C2C2C !important;
  letter-spacing: 0.03em !important;
  padding: 14px 18px !important;
  text-transform: none !important;
}
