/* ==========================================================================
   Frank Lobo, Friendship Facilitator — site styles
   Palette + type per Design System (v1). Fraunces (display) + Inter (body).
   ========================================================================== */

:root {
  --paper: #F4EEE2;
  --ink: #241F1B;
  --clay: #B4552D;
  --clay-deep: #8F4123;
  --olive: #4A5340;
  --ochre: #C98A3C;
  --stone: #A99B86;
  --ink-70: #4F4740;
  --paper-deep: #EAE1CF;
  --paper-line: #DCD2BD;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 5.5vw, 54px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.6vw, 34px); }
h3 { font-size: 22px; }

p { max-width: 62ch; }
p + p { margin-top: 1.2em; }

a { color: var(--clay-deep); text-decoration-color: var(--paper-line); text-underline-offset: 3px; }
a:hover { color: var(--clay); }

.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.lede {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.5;
  color: var(--ink-70);
}

.muted { color: var(--ink-70); }

/* ---------- Layout ---------- */

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 680px; }

section { padding: 72px 0; }

hr.rule {
  border: none;
  border-top: 1px solid var(--paper-line);
  margin: 0 auto;
  max-width: 1040px;
}

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

header.site {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--paper-line);
}

.nav-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-left { display: flex; justify-content: flex-end; gap: 32px; }
.nav-right { display: flex; justify-content: flex-start; gap: 32px; }

.nav-left a, .nav-right a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-left a:hover, .nav-right a:hover { border-bottom-color: var(--clay); color: var(--ink); }
.nav-left a[aria-current="page"], .nav-right a[aria-current="page"] { border-bottom-color: var(--stone); }

.wordmark { text-align: center; text-decoration: none; display: block; }
.wordmark .name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.1;
}
.wordmark .role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone); /* decorative mark, not body text */
  margin-top: 4px;
}

@media (max-width: 720px) {
  .nav-grid { grid-template-columns: 1fr; gap: 14px; }
  .nav-left, .nav-right { justify-content: center; gap: 20px; flex-wrap: wrap; }
  .nav-left { order: 2; }
  .wordmark { order: 1; }
  .nav-right { order: 3; }
  .nav-left { margin-top: 4px; }
  .nav-right { margin-top: -6px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--clay);
  color: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 2px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease;
}
.btn:hover { background: var(--clay-deep); color: var(--paper); }

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

.hero { padding: 120px 0 110px; text-align: center; }
.hero h1 { max-width: 18ch; margin: 0 auto; }
.hero .lede { margin-top: 22px; }

@media (max-width: 720px) { .hero { padding: 80px 0 72px; } }

/* ---------- Split sections (intro) ---------- */

.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: center;
}
.split.flip { grid-template-columns: 2fr 3fr; }

@media (max-width: 780px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 32px; }
}

.photo-slot {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
  border-radius: 2px;
}

.substack-card {
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  padding: 36px 32px;
}
.substack-card .title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
}
.substack-card p { margin-top: 10px; color: var(--ink-70); font-size: 16px; line-height: 26px; }
.substack-card a.more { display: inline-block; margin-top: 16px; font-size: 16px; }

/* ---------- Offering cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 14px; }
.card p { font-size: 16px; line-height: 26px; flex: 1; }
.card a.more { margin-top: 20px; font-size: 16px; }

/* ---------- Content pages ---------- */

.page-head { padding: 72px 0 0; }
.page-head .label { margin-bottom: 14px; display: block; }
.page-head h1 { max-width: 22ch; }

.facts { list-style: none; margin: 1.4em 0; }
.facts li {
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
  max-width: 62ch;
}
.facts li:first-child { border-top: 1px solid var(--paper-line); }

ul.plain { margin: 1.2em 0 1.2em 1.2em; max-width: 60ch; }
ul.plain li { margin-bottom: 0.7em; }

.cta-block { margin-top: 44px; }
.cta-block .note { margin-top: 14px; font-size: 15px; color: var(--ink-70); }

.strong-line { font-weight: 600; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--paper-line);
  padding: 6px 0;
  max-width: 680px;
}
.faq details:first-of-type { border-top: 1px solid var(--paper-line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  padding: 16px 32px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--stone);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; }

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

footer.site {
  background: var(--olive);
  color: var(--paper);
  margin-top: 72px;
  padding: 48px 24px;
}
.footer-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--paper); text-decoration: none; font-size: 15px; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.footer-links a:hover { border-bottom-color: var(--paper); color: var(--paper); }
.footer-copy { font-size: 14px; color: var(--paper); opacity: 0.85; }

/* ---------- Popup (Kit capture — disabled until the guide ships) ---------- */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 31, 27, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.popup {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  max-width: 440px;
  width: 100%;
  padding: 40px 36px;
  position: relative;
}
.popup h3 { font-size: 26px; margin-bottom: 14px; }
.popup p { font-size: 16px; line-height: 26px; }
.popup form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.popup input[type="email"] {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.popup .small-print { margin-top: 14px; font-size: 13px; color: var(--ink-70); }
.popup .close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink-70);
  cursor: pointer;
  line-height: 1;
}
