/* Managed-site editorial chrome.
   The visual language is Lucy Harper Finds' own — cream, charcoal,
   green, terracotta, Playfair headings over Inter body — expressed as
   variables so a later site can supply its own palette through
   theme_config without touching these rules. */

.msite {
  --ms-cream: #f7f4ee;
  --ms-cream-dark: #ede9df;
  --ms-charcoal: #2f2f2f;
  --ms-charcoal-light: #5a5a5a;
  --ms-green: #5e7455;
  --ms-green-dark: #4a5c42;
  --ms-terracotta: #b66a4b;
  --ms-border: #ddd5c4;
  --ms-max: 1200px;
  --ms-gutter: clamp(20px, 7vw, 84px);

  background: var(--ms-cream);
  color: var(--ms-charcoal);
  font-family: var(--ms-font-body, Inter), system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.msite h1, .msite h2, .msite h3 {
  font-family: var(--ms-font-heading, "Playfair Display"), Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
.msite a { color: var(--ms-terracotta); }
.msite img { max-width: 100%; display: block; }

/* Header */
.msite-header {
  border-bottom: 1px solid var(--ms-border);
  background: var(--ms-cream);
}
.msite-header__inner {
  max-width: var(--ms-max);
  margin: 0 auto;
  padding: 14px var(--ms-gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.msite-header__logo img { height: 54px; width: auto; }
.msite-header__logo span {
  font-family: var(--ms-font-heading, "Playfair Display"), Georgia, serif;
  font-size: 24px;
  color: var(--ms-charcoal);
}
.msite-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.msite-nav a {
  color: var(--ms-charcoal);
  text-decoration: none;
  font-size: 15px;
}
.msite-nav a:hover, .msite-nav a.is-active { color: var(--ms-green-dark); }
.msite-nav a.msite-nav__cta {
  background: var(--ms-green);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.msite-nav a.msite-nav__cta:hover { background: var(--ms-green-dark); }

/* Mobile navigation: the old site's nav vanished under 640px with no
   replacement — this one folds into a details disclosure instead. */
.msite-nav-toggle { display: none; }
@media (max-width: 720px) {
  .msite-nav { display: none; }
  .msite-nav-toggle { display: block; margin-left: auto; position: relative; }
  .msite-nav-toggle > summary {
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    padding: 8px 14px;
    border: 1px solid var(--ms-border);
    border-radius: 8px;
  }
  .msite-nav-toggle[open] > summary { background: var(--ms-cream-dark); }
  .msite-nav-toggle > nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    padding: 8px;
    min-width: 190px;
    z-index: 30;
    box-shadow: 0 10px 30px rgba(47, 47, 47, .12);
  }
  .msite-nav-toggle a {
    color: var(--ms-charcoal);
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 15px;
  }
  .msite-nav-toggle a:hover { background: var(--ms-cream); }
}

/* Page scaffolding */
.msite-main { flex: 1; }
.msite-section {
  max-width: var(--ms-max);
  margin: 0 auto;
  padding: 40px var(--ms-gutter);
}
.msite-hero {
  background: var(--ms-cream-dark);
  border-bottom: 1px solid var(--ms-border);
}
.msite-hero .msite-section { padding-top: 52px; padding-bottom: 52px; }
.msite-eyebrow {
  font-family: var(--ms-font-script, Caveat), cursive;
  color: var(--ms-green-dark);
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}
.msite-hero h1 { font-size: clamp(32px, 4.5vw, 52px); max-width: 20ch; }
.msite-hero p { max-width: 60ch; color: var(--ms-charcoal-light); }

.msite-prose { max-width: 72ch; }
.msite-prose p { margin: 0 0 1.1em; }
.msite-article-hero {
  max-width: 900px;
  margin: 0 0 28px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
}
.msite-article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons and pills */
.msite-btn {
  display: inline-block;
  background: var(--ms-green);
  color: #fff !important;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.msite-btn:hover { background: var(--ms-green-dark); }
.msite-btn--outline {
  background: transparent;
  color: var(--ms-charcoal) !important;
  border: 1px solid var(--ms-border);
}
.msite-btn--outline:hover { background: var(--ms-cream-dark); }
.msite-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.msite-pill {
  border: 1px solid var(--ms-border);
  background: #fff;
  color: var(--ms-charcoal-light);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  text-decoration: none;
}
.msite-pill.is-active {
  background: var(--ms-green);
  border-color: var(--ms-green);
  color: #fff;
}

/* Card grids: journal and markets */
.msite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 960px) { .msite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .msite-grid { grid-template-columns: 1fr; } }
.msite-card {
  background: #fff;
  border: 1px solid var(--ms-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.msite-card__image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ms-cream-dark); }
.msite-card__image img { width: 100%; height: 100%; object-fit: cover; }
.msite-card__body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.msite-card__body h3 { font-size: 20px; }
.msite-card__body h3 a { color: var(--ms-charcoal); text-decoration: none; }
.msite-card__body h3 a:hover { color: var(--ms-green-dark); }
.msite-card__meta { color: var(--ms-charcoal-light); font-size: 13px; }
.msite-card__body p { margin: 0; color: var(--ms-charcoal-light); font-size: 14.5px; }
.msite-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.msite-tag {
  background: var(--ms-cream-dark);
  color: var(--ms-charcoal-light);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

/* Newsletter strip */
.msite-newsletter {
  background: var(--ms-green);
  color: #fff;
}
.msite-newsletter .msite-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.msite-newsletter h2 { font-size: 24px; color: #fff; }
.msite-newsletter p { margin: 4px 0 0; opacity: .9; font-size: 15px; }
.msite-newsletter form { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.msite-newsletter input[type="email"] {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  min-width: 240px;
  font: inherit;
}
.msite-newsletter .msite-btn { background: var(--ms-charcoal); }
.msite-newsletter .msite-btn:hover { background: #000; }

/* Forms */
.msite-form { display: grid; gap: 16px; max-width: 560px; }
.msite-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.msite-form input, .msite-form select, .msite-form textarea {
  border: 1px solid var(--ms-border);
  border-radius: 8px;
  background: #fff;
  padding: 11px 13px;
  font: inherit;
  color: var(--ms-charcoal);
}
.msite-form textarea { min-height: 140px; resize: vertical; }
.msite-form .msite-hp { position: absolute; left: -9999px; }
.msite-form-error {
  background: #f7e8e2;
  border-left: 3px solid var(--ms-terracotta);
  color: #7c3a22;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}

/* Footer */
.msite-footer {
  background: var(--ms-charcoal);
  color: #eee9dd;
  margin-top: 48px;
}
.msite-footer .msite-section { display: grid; gap: 26px; padding-top: 44px; padding-bottom: 30px; }
.msite-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.msite-footer__brand { max-width: 320px; display: grid; gap: 10px; }
.msite-footer__brand img { height: 46px; width: auto; }
.msite-footer__brand p { margin: 0; font-size: 14px; opacity: .8; }
.msite-footer__col { display: grid; gap: 8px; align-content: start; }
.msite-footer__col strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.msite-footer__col a { color: #eee9dd; text-decoration: none; font-size: 14.5px; }
.msite-footer__col a:hover { color: #fff; text-decoration: underline; }
.msite-footer__bottom {
  border-top: 1px solid rgba(238, 233, 221, .2);
  padding-top: 16px;
  font-size: 13px;
  opacity: .7;
}

/* ---- Impose theme, waterfall home (Lucy Harper Finds, 5 Sep 2026) ----
   The banner and the portrait are picture SLOTS from site.json — each carries a focus point so a wide crop keeps her face. */
.home-banner .post-thumbnail { min-height: 62vh; background-size: cover; }
.home-banner .entry-header .entry-title { max-width: 18em; margin-left: auto; margin-right: auto; }
.home-banner .entry-header .more-link { color: #fff; border-color: #fff; }
.home-lucy { max-width: 1100px; margin: 3em auto 4.5em; padding: 0 20px; display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 2.5em; align-items: center; }
.home-lucy-picture img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.home-lucy-words h2 { margin-top: 0; }
.home-lucy-words .button { margin-right: .6em; }
@media (max-width: 767px) { .home-lucy { grid-template-columns: 1fr; } }
