/* Josh Morse coaching site. Demand Karma type (PP Pangaia Medium + Merriweather Light),
   quiet editorial direction per Josh's briefs (Nov 2026): white ground, near-white accents,
   black investor band and footer, no yellow, colour portrait, static name-only header. */

@font-face { font-family: 'PP Pangaia'; font-weight: 500; src: url('assets/fonts/PPPangaia-Medium.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Merriweather DK'; font-weight: 300; src: url('assets/fonts/Merriweather-Light.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Merriweather DK'; font-weight: 300; font-style: italic; src: url('assets/fonts/Merriweather-LightItalic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Merriweather DK'; font-weight: 600; src: url('assets/fonts/Merriweather-SemiBold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Merriweather DK'; font-weight: 700; src: url('assets/fonts/Merriweather-Bold.woff2') format('woff2'); font-display: swap; }

:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #f8f8f5;
  --muted: #5f5c51;
  --hairline: rgba(0, 0, 0, 0.14);
  --hairline-on-dark: rgba(255, 255, 255, 0.16);
  --on-dark: rgba(255, 255, 255, 0.85);
  --on-dark-muted: rgba(255, 255, 255, 0.62);
  --display: 'PP Pangaia', Georgia, serif;
  --body: 'Merriweather DK', Georgia, serif;
  --edge: max(5.5vw, calc((100vw - 1100px) / 2));
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 27px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: auto;
}
@media (max-width: 767px) { body { font-size: 16px; line-height: 26px; } }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 24px;
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); max-width: 20ch; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 24ch; }
h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 14px; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
strong { font-weight: 700; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.measure { max-width: 60ch; }

section { padding: 80px var(--edge); }
.band-cream { background: var(--grey); }
.band-dark { background: var(--black); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: var(--white); }
@media (max-width: 767px) { section { padding: 56px var(--edge); } }

/* Buttons: pill, quiet variants */
.button {
  display: inline-flex; align-items: center; column-gap: 10px;
  padding: 13px 24px; border: 2px solid var(--black); border-radius: 100px;
  background: transparent; color: var(--black);
  font-family: var(--body); font-size: 17px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-2px); }
.button.is-solid { background: var(--black); color: var(--white); }
.button.is-inverse { background: var(--white); color: var(--black); border-color: var(--white); }
.button.is-on-dark { border-color: var(--white); color: var(--white); }
@media (max-width: 767px) { .button { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }

/* Header: static, name only, scrolls away */
.nav { display: flex; align-items: center; padding: 30px var(--edge) 0; background: var(--white); }
.nav-name { font-family: var(--display); font-weight: 500; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.015em; }

/* Hero */
.hero { padding-top: 52px; padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-opening { margin-bottom: 18px; }
.hero-hello { font-weight: 600; font-size: 15px; margin: 0; }
.hero-mini { display: none; }
.hero-portrait { border-radius: 14px; overflow: hidden; max-width: 360px; aspect-ratio: 3 / 4; justify-self: end; }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .quiet { font-size: 0.95rem; font-weight: 600; text-underline-offset: 4px; }

.hero-proof { border-top: 2px solid var(--black); margin-top: 52px; padding-top: 30px; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 56px; }
.proof-item strong { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; display: block; margin-bottom: 4px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.1; }
.proof-item.is-big strong { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.proof-item p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--muted); max-width: 40ch; }
.proof-breadth { margin: 30px 0 0; font-size: 1.02rem; max-width: 60ch; }

@media (max-width: 919px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-portrait { display: none; }
  .hero-opening { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
  .hero-mini { display: block; width: 84px; height: 84px; object-fit: cover; object-position: 50% 8%; border-radius: 12px; }
}
@media (max-width: 599px) { .proof-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Quote bands: pairs of endorsements */
.quote-band { padding-top: 64px; padding-bottom: 64px; background: var(--grey); }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pair-grid .endorsement { display: flex; flex-direction: column; height: 100%; }
.pair-grid .endorsement blockquote { flex: 1; }
@media (max-width: 919px) { .pair-grid { grid-template-columns: 1fr; gap: 44px; } .pair-grid .endorsement blockquote { flex: none; } }

/* Rows: situations list */
.rows { border-top: 2px solid var(--black); margin-top: 36px; }
.row { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 26px 4px; border-bottom: 1px solid var(--hairline); }
.row h3 { margin: 0; font-size: 1.3rem; }
.row p { margin: 0; color: var(--muted); max-width: 58ch; }
@media (max-width: 767px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* Two-column splits */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
@media (max-width: 919px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.ai-note { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.ai-note strong { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }

.speclist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.speclist li { display: flex; column-gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--hairline); font-size: 0.97rem; line-height: 1.55; }
.speclist li::before { content: "\2192"; flex: 0 0 auto; font-weight: 700; font-size: 0.95rem; line-height: inherit; }
.speclist-title { font-weight: 600; font-size: 15px; margin-bottom: 12px; }

/* Endorsements */
.endorsement blockquote { margin: 0 0 22px; font-style: italic; font-size: 1.05rem; line-height: 1.65; max-width: 54ch; }
.quote-person { display: flex; align-items: center; gap: 16px; }
.quote-photo { width: 72px; height: 92px; border-radius: 8px; overflow: hidden; background: var(--white); flex-shrink: 0; display: block; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-person .credit { font-size: 0.88rem; line-height: 1.45; color: var(--muted); margin: 0; }
.quote-person .credit strong { color: var(--black); font-weight: 700; }
.quote-person.is-on-dark { margin-top: 22px; }
.quote-person.is-on-dark .credit { color: var(--on-dark-muted); }
.quote-person.is-on-dark .credit strong { color: var(--white); }

/* Approach: list sits level with the body text, not the heading */
.offset-col { margin-top: 96px; }
@media (max-width: 919px) { .offset-col { margin-top: 0; } }

/* The session loop: a typographic device, not a diagram */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; border-top: 2px solid var(--black); margin-top: 56px; padding-top: 30px; }
.loop-label { display: block; font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.loop p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 40ch; }
@media (max-width: 767px) { .loop { grid-template-columns: 1fr; gap: 26px; } }

/* Worked vignette */
.vignette { background: var(--grey); border-radius: 8px; padding: 28px 32px; margin-top: 48px; max-width: 760px; }
.vignette-label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.vignette-situation { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
.vignette p:last-child { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.6; max-width: 62ch; }

/* Working together */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; margin-top: 36px; border-top: 2px solid var(--black); padding-top: 34px; max-width: 980px; }
.work-grid h3 { font-size: 1.2rem; margin-bottom: 8px; }
.work-grid p { margin: 0; color: var(--muted); max-width: 48ch; }
.steps-after { margin-top: 32px; max-width: 60ch; }
@media (max-width: 767px) { .work-grid { grid-template-columns: 1fr; gap: 26px; } }

/* About */
.about-split { align-items: center; }
.about-photo { margin: 0 0 30px; max-width: 440px; }
.about-photo + .pull-quote { margin-top: 8px; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.about-photo figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.about-split > div:first-child { max-width: 58ch; }
.pull-quote { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; max-width: 22ch; margin: 0; }
.about-affiliation { font-size: 0.85rem; color: var(--muted); margin-top: 26px; }
.about-affiliation img { height: 12px; vertical-align: -1px; margin: 0 2px; }

/* Investors */
.inv-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; margin-top: 8px; }
.investors p { color: var(--on-dark); max-width: 58ch; }
.investors-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.dark-quote { margin: 0; font-style: italic; font-size: 1.02rem; line-height: 1.6; color: var(--on-dark); max-width: 58ch; border-left: 2px solid var(--hairline-on-dark); padding-left: 22px; }
.dark-quote-credit { display: block; font-style: normal; font-size: 0.82rem; color: var(--on-dark-muted); margin-top: 12px; }
@media (max-width: 919px) { .inv-grid { grid-template-columns: 1fr; gap: 40px; } }

/* FAQ */
.faq-list { border-top: 2px solid var(--black); margin-top: 36px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.015em;
  padding: 24px 8px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { flex: 0 0 30px; width: 30px; height: 30px; border: 2px solid var(--black); border-radius: 50%; position: relative; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--black); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-plus::before { width: 12px; height: 2px; }
.faq-plus::after { width: 2px; height: 12px; transition: opacity 0.15s; }
.faq-item[open] .faq-plus::after { opacity: 0; }
.faq-answer { padding: 0 8px 30px; color: var(--muted); max-width: 64ch; font-size: 0.98rem; line-height: 1.6; }

/* Contact: near-white band, landscape form with underline fields */
.contact { background: var(--grey); }
.contact-email-note { margin-top: 20px; font-size: 0.95rem; }
.form-wide { margin-top: 48px; max-width: 980px; }
.form-row { display: grid; gap: 40px; }
.form-row.is-three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.is-two { grid-template-columns: 1fr 1fr; margin-top: 40px; }
.form-row > div { display: flex; flex-direction: column; }
.form-label { font-weight: 600; font-size: 15px; margin: 0 0 4px; flex: 1 0 auto; display: flex; align-items: flex-end; }
.form-label .optional { font-weight: 300; color: var(--muted); }
.form-input, .form-textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.4); border-radius: 0;
  padding: 10px 0; font-family: var(--body); font-weight: 300; font-size: 0.98rem;
  background: transparent; color: var(--black);
}
.form-textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.form-input:focus, .form-textarea:focus { outline: none; border-bottom-color: var(--black); box-shadow: 0 1px 0 var(--black); }
.form-end { display: flex; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; max-width: 46ch; }
.form-after { display: none; background: var(--white); border: 1px solid var(--hairline); border-radius: 8px; padding: 16px 18px; font-size: 0.9rem; line-height: 1.55; margin-top: 18px; max-width: 60ch; }
@media (max-width: 767px) {
  .form-row.is-three, .form-row.is-two { grid-template-columns: 1fr; gap: 24px; }
  .form-row.is-two { margin-top: 24px; }
}

/* Footer */
.footer { background: var(--black); color: var(--on-dark-muted); padding: 72px var(--edge) 48px; }
.footer-strap { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 44px; }
.footer-name { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--white); margin-bottom: 6px; }
.footer-role { font-size: 0.95rem; color: var(--on-dark); margin-bottom: 4px; }
.footer-tagline { font-size: 0.88rem; margin-bottom: 36px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--hairline-on-dark); }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); flex-wrap: wrap; }
.footer-bottom img { height: 14px; opacity: 0.85; vertical-align: -2px; margin-left: 4px; }
