/* Hub pages (/, /ascent/, /coaching/, /contact/). Tokens, type and photo
   treatment copied from /7-systems/ so the hub reads as the same site.
   The ad landing pages (/7-systems/, /7-systems-guide/) do not load this file. */
:root {
  --cream: #f4ece0;
  --cream-deep: #ece2d2;
  --paper: #f9f3e8;
  --ink: #1c1a17;
  --ink-soft: #36322c;
  --ink-mute: #6b6358;
  --rule: #d9cdb8;
  --rule-soft: #e8dfcc;
  --clay: #b34a26;
  --clay-deep: #8c3819;
  --ochre: #c98a1d;
  --oak: #6b4f2c;
  --moss: #4a5d3a;
  --shadow-warm: 0 20px 60px -24px rgba(80, 50, 20, 0.28), 0 6px 18px -8px rgba(80, 50, 20, 0.12);
  --shadow-flat: 0 1px 0 rgba(28,26,23,0.06), 0 8px 24px -12px rgba(60,40,15,0.16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.13 0 0 0 0 0.10 0 0 0 0.42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(255, 220, 160, 0.32), rgba(255, 220, 160, 0) 60%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 2; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
@media (min-width: 900px) { .container { padding: 0 48px; } }
@media (min-width: 1180px) { .container { padding: 0 64px; } }

section { padding: 56px 0; position: relative; z-index: 2; }
section + section { border-top: 1px solid var(--rule-soft); }
@media (min-width: 900px) { section { padding: 80px 0; } }

/* NAV */
.nav {
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 236, 224, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.nav .mark {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav .mark span { color: var(--clay); }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 24px; }
.nav-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--clay); }
.nav-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 12px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.nav.open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  gap: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 8px 16px 16px;
}
.nav.open .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links, .nav.open .nav-links { display: flex; flex-direction: row; position: static; background: none; border: 0; padding: 0; gap: 24px; }
  .nav.open .nav-links a { padding: 0; border: 0; }
}

/* TYPE */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  font-weight: 700;
  color: var(--clay);
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--clay); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; }
h1 {
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  color: var(--clay);
}
h2 {
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
h3 {
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  margin-bottom: 10px;
}
.lede { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; margin: 0 0 24px; }
.muted { color: var(--ink-mute); }
p { margin: 0 0 16px; }
.section-head { max-width: 640px; margin-bottom: 36px; }

/* BUTTONS (button.cta on /7-systems/) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 22px;
  font: 700 14px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--clay);
  border: 0;
  border-radius: 3px;
  box-shadow: 0 10px 22px -12px rgba(140, 56, 25, 0.7), inset 0 -2px 0 rgba(0,0,0,0.12);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn::after { content: "\2192"; }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 640px) { .btn-row .btn { width: 100%; } }
.text-link { font-weight: 700; color: var(--clay); text-decoration: none; }
.text-link:hover { color: var(--clay-deep); text-decoration: underline; }

/* PHOTO TREATMENT (.bio-portrait on /7-systems/) */
.portrait {
  border-radius: 50%;
  object-fit: cover;
  filter: sepia(.04) contrast(1.02);
  box-shadow: 0 10px 24px rgba(28,26,23,.16);
  border: 2px solid var(--paper);
  outline: 1px solid var(--rule);
}
.photo {
  width: 100%;
  object-fit: cover;
  border-radius: 3px;
  filter: sepia(.04) contrast(1.02);
  box-shadow: var(--shadow-flat);
}

/* HERO */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero .portrait { width: 132px; height: 132px; }
@media (max-width: 899px) { .hero-grid > .portrait { order: -1; } }
/* Homepage hero: a teaching photo instead of the round headshot (David, 2026-10-20). */
.hero-photo { aspect-ratio: 710 / 617; object-position: center 30%; }
@media (max-width: 899px) { .hero-grid--photo > .hero-photo { order: -1; max-height: 340px; } }
@media (min-width: 900px) { .hero-grid.hero-grid--photo { grid-template-columns: 1fr 440px; } }
@media (min-width: 900px) {
  .hero { padding: 88px 0 80px; }
  .hero-grid { grid-template-columns: 1fr 300px; gap: 64px; }
  .hero .portrait { width: 300px; height: 300px; justify-self: end; }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; color: var(--ink-soft); }
.chips strong { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--clay); margin-right: 6px; }

/* CARDS */
.cards { display: grid; gap: 24px; }
@media (min-width: 900px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--shadow-flat);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card .photo { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 2; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
@media (min-width: 900px) { .card-body { padding: 32px; } }
.card-body .btn-row { margin-top: auto; padding-top: 12px; }
.card .meta { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oak); margin: 0 0 10px; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  border: 1px solid var(--moss);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 12px;
  align-self: flex-start;
}

/* WIDE FEATURE (image + text side by side) */
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 56px; } .feature.flip > :first-child { order: 2; } }

/* LISTS */
.ticks { list-style: none; margin: 0 0 20px; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule-soft); }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 10px; color: var(--clay); font-weight: 700; }
.outcomes { display: grid; gap: 0; counter-reset: o; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .outcomes { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.outcomes li { counter-increment: o; padding: 18px 0 18px 52px; position: relative; border-top: 1px solid var(--rule-soft); }
.outcomes li::before {
  content: counter(o, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--clay);
}
.outcomes strong { display: block; font-weight: 700; margin-bottom: 2px; }

/* STATS */
.stats { display: grid; gap: 20px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--cream); border: 1px solid var(--rule); border-radius: 3px; padding: 24px; }
.stat .num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 48px; line-height: 1; color: var(--clay); margin-bottom: 6px; }
.stat .label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oak); margin-bottom: 12px; }
.stat blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-soft); }

/* GALLERY */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .photo { aspect-ratio: 4 / 3; }

/* FORM (matches /ascent-webinar/ waitlist form fields) */
.form-card { background: var(--cream); border: 2px solid var(--ink); border-radius: 3px; padding: 24px; max-width: 520px; }
@media (min-width: 900px) { .form-card { padding: 32px; } }
.form-card label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.form-card .opt { font-weight: 400; color: var(--ink-mute); }
.form-card input[type="email"], .form-card input[type="text"], .form-card input[type="tel"] {
  width: 100%;
  font: 400 16px/1.4 var(--sans);
  padding: 13px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.form-card input:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.form-card .btn { width: 100%; margin-top: 18px; }
.form-error { display: none; color: var(--clay-deep); font-size: 14px; margin-top: 8px; }
.form-error.show { display: block; }
.fine { font-size: 13px; color: var(--ink-mute); margin-top: 12px; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 20px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-family: var(--sans); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); max-width: 64ch; }

/* QUOTE */
.pull { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; color: var(--ink); margin: 24px 0 0; padding-left: 20px; border-left: 2px solid var(--clay); }
.pull cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 10px; }

/* CONTACT */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item { border-top: 2px solid var(--ink); padding-top: 16px; }
.contact-item p { color: var(--ink-soft); }

/* FOOTER */
.footer { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: 14px; color: var(--ink-mute); position: relative; z-index: 2; }
.footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer a { color: var(--ink-mute); }
