/* ===========================================================
   Shanshan, Direction A "Warm Grounded" site stylesheet
   Sage + terracotta on warm cream, serif headline / sans body
   =========================================================== */

:root {
  /* Brand palette (from Shani's book): off-white, lavender-grey,
     taupe, black, dusty blue. Variable names kept from the earlier
     draft so every rule below repaints automatically. */
  --cream: #F8F8F8;
  --cream-deep: #E9E8EA;
  --ink: #000000;
  --ink-soft: #3D3D3D;
  --ink-muted: #767676;
  --border: #DDDBDF;
  --border-dashed: #B8B5BA;
  --sage: #7793BE;
  --sage-deep: #5C7399;
  --terracotta: #AFA3A3;
  --taupe: #D3CCCC;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .serif {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--sage); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header / nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.wordmark {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.wordmark img {
  height: 46px;
  width: auto;
  display: block;
}
.footer-col .wordmark img {
  height: 40px;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.primary-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

nav.primary-nav a.current { color: var(--ink); border-bottom: 1.5px solid var(--sage); padding-bottom: 3px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary { background: var(--sage); color: var(--cream); }
.btn-primary:hover { background: var(--sage-deep); color: var(--cream); }

.btn-dark { background: var(--sage-deep); color: var(--cream); }
.btn-dark:hover { background: var(--sage); color: var(--cream); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  nav.primary-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border-dashed);
    border-radius: 3px;
    background: none;
    cursor: pointer;
  }
  nav.primary-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    padding: 24px 40px;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
}

.hero .blob-a {
  position: absolute; top: -110px; right: -110px;
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--sage); opacity: 0.12;
}
.hero .blob-b {
  position: absolute; bottom: -60px; left: -120px;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--terracotta); opacity: 0.10;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 { font-size: 52px; max-width: 640px; }
.page-title h1 { font-size: 44px; }

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 540px;
  margin-top: 20px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Photo placeholder ---------- */

.photo-placeholder {
  border: 1.5px dashed var(--border-dashed);
  border-radius: 6px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 24px;
  min-height: 260px;
}

.photo-frame {
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-deep);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Book chapter photos: show the full uncropped image, natural aspect ratio */
.photo-frame.book-photo {
  border-radius: 0;
  height: auto;
}
.photo-frame.book-photo img {
  width: 100%;
  height: auto;
  object-fit: initial;
  display: block;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.tight { padding: 40px 0; }
section + section { border-top: 1px solid var(--border); }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 16px; }

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1, .page-title h1 { font-size: 38px; }
  .wrap { padding: 0 24px; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }
.card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 14px;
}

.icon-row { display: flex; gap: 12px; margin-bottom: 14px; }

.trust-strip {
  display: flex;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 200px; }
.trust-item p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--cream); font-size: 30px; }
.cta-band p { color: #C9C9C9; margin-top: 12px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary { background: var(--sage); color: var(--cream); }
.cta-band .btn-primary:hover { background: var(--sage-deep); }
.cta-band .btn-outline { color: var(--cream); border-color: #4D4D4D; }
.cta-band .btn-outline:hover { background: var(--cream); color: var(--ink); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-grid .photo-placeholder { min-height: 200px; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Masonry gallery: preserves each photo's natural crop (no forced cover-crop) */
.masonry-gallery {
  column-count: 3;
  column-gap: 18px;
}
.masonry-gallery .photo-frame {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-deep);
  height: auto;
}
.masonry-gallery .photo-frame img {
  width: 100%;
  height: auto;
  object-fit: initial;
  display: block;
}
@media (max-width: 860px) { .masonry-gallery { column-count: 2; } }
@media (max-width: 560px) { .masonry-gallery { column-count: 1; } }

/* ---------- Forms ---------- */

form.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-dashed);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--sage);
}
.form-note { font-size: 12.5px; color: var(--ink-muted); }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.placeholder-flag {
  display: inline-block;
  font-size: 11px;
  background: #F3EFEF;
  color: #5A5050;
  border: 1px solid var(--taupe);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  margin-left: 8px;
}
