/* ============================================
   THE LEADER UNDERNEATH — Michaela A. Grancharova
   Design tokens: ink / paper / stone / ember / moss / gold
   Display: Fraunces · Body: Public Sans · Utility: IBM Plex Mono
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #211f1b;
  --ink-soft: #4a463e;
  --paper: #eee7d8;
  --paper-high: #f6f1e6;
  --stone: #c9bfa8;
  --stone-line: #d9d0bb;
  --ember: #92401c;
  --ember-hover: #7a3416;
  --moss: #3f4a38;
  --moss-deep: #2c3428;
  --gold: #b08a3e;
  --cream-on-dark: #f2eee3;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0 0 1em 0; }
a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-block;
  margin-bottom: 0.9em;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 231, 216, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ember); }

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--ember);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper-high);
    border-bottom: 1px solid var(--stone-line);
    padding: 20px 32px 28px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary { background: var(--ember); color: var(--paper-high); }
.btn-primary:hover { background: var(--ember-hover); transform: translateY(-1px); }

.btn-ghost-light { background: transparent; color: var(--cream-on-dark); border-color: rgba(242,238,227,0.4); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ember); color: var(--ember); }

/* ---------- Hero: surface / underneath signature ---------- */

.hero-surface {
  background: var(--paper-high);
  padding: 96px 0 72px;
  position: relative;
}

.hero-surface .container { max-width: 860px; text-align: center; }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.01em;
}

.hero-title .accent { font-style: italic; color: var(--ember); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 22px auto 0;
}

.hero-shift {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ember);
  max-width: 640px;
  margin: 26px auto 0;
  line-height: 1.5;
}

.surface-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0;
}

.hero-underneath {
  background: var(--moss);
  color: var(--cream-on-dark);
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero-underneath::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(242,238,227,0.05) 0, transparent 40%),
                     radial-gradient(circle at 80% 70%, rgba(176,138,62,0.08) 0, transparent 45%);
  pointer-events: none;
}

.hero-underneath .container { max-width: 760px; text-align: center; position: relative; }

.underneath-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.hero-underneath blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.5;
  margin: 0 0 30px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ---------- Generic page hero (non-home pages) ---------- */

.page-hero {
  background: var(--paper-high);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--stone-line);
}

.page-hero .container { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.page-hero .lede { font-size: 1.12rem; color: var(--ink-soft); margin-top: 18px; max-width: 620px; }

/* ---------- Section rhythm ---------- */

section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.bg-paper-high { background: var(--paper-high); }
.bg-ink { background: var(--ink); color: var(--cream-on-dark); }
.bg-moss { background: var(--moss-deep); color: var(--cream-on-dark); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }
.bg-ink .section-head p, .bg-moss .section-head p { color: rgba(242,238,227,0.75); }

/* ---------- Pillars (three rooms teaser) ---------- */

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

.pillar {
  background: var(--paper-high);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.pillar .eyebrow { margin-bottom: 14px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Author strip ---------- */

.author-strip {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}

.author-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 20px;
}

.author-strip h2 { margin-bottom: 16px; }
.author-strip p { color: var(--ink-soft); font-size: 1.02rem; }

@media (max-width: 720px) {
  .author-strip { grid-template-columns: 1fr; }
  .author-portrait { max-width: 220px; margin: 0 auto; }
}

/* ---------- Testimonials / Client Feedback ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--paper-high);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
}

.testimonial .mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.testimonial p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 18px;
}

.testimonial .attribution {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.bg-ink .testimonial, .bg-moss .testimonial {
  background: rgba(242,238,227,0.06);
  border-color: rgba(242,238,227,0.16);
}
.bg-ink .testimonial p.quote, .bg-moss .testimonial p.quote { color: var(--cream-on-dark); }
.bg-ink .testimonial .attribution, .bg-moss .testimonial .attribution { color: rgba(242,238,227,0.6); }

@media (max-width: 780px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- Process steps (coaching page) ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone-line);
}

.process-step {
  padding: 32px 28px;
  border-right: 1px solid var(--stone-line);
}
.process-step:last-child { border-right: none; }

.process-step .eyebrow { color: var(--moss); }
.process-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.process-step p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--stone-line); }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--cream-on-dark);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream-on-dark); font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.cta-band p { color: rgba(242,238,227,0.72); max-width: 560px; margin: 16px auto 30px; font-size: 1.05rem; }

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

.site-footer {
  background: var(--moss-deep);
  color: rgba(242,238,227,0.7);
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand { font-family: var(--font-display); font-size: 1.1rem; color: var(--cream-on-dark); margin-bottom: 8px; }

.footer-links { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: rgba(242,238,227,0.7); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold); }

.footer-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(242,238,227,0.12);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(242,238,227,0.45);
}

/* ---------- Form (contact page) ---------- */

.form-card {
  background: var(--paper-high);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 640px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
}

.field textarea { resize: vertical; min-height: 130px; }

.confidentiality-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 28px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.confidentiality-note .mark { color: var(--gold); font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }

/* ---------- Utility ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

.divider {
  height: 1px;
  background: var(--stone-line);
  border: none;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
