/* Faith and Psyche – Plumb Line (draft)
   Palette: Graphite #20252A · Verdigris #6FA39A (dark grounds only) · Deep Verdigris #2E6B64 (light grounds)
            Mist #C4D3D0 · Steel #8A949A · Chalk #EDF0EF
   Type: Jost Light 300 (headlines), Jost Regular 400 (body), IBM Plex Mono (tiny labels only). */

@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/PlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #20252A;
  --verdigris: #6FA39A;
  --deep-verdigris: #2E6B64;
  --mist: #C4D3D0;
  --steel: #8A949A;
  --chalk: #EDF0EF;

  --ink: var(--graphite);
  --ground: var(--chalk);
  --accent: var(--deep-verdigris);
  --hairline: rgba(32, 37, 42, 0.18);

  --font-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: 1.25rem;
  --measure: 40rem;
  --wide: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--deep-verdigris);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--graphite);
  color: var(--chalk);
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: clamp(160px, 38vw, 200px); height: auto; }

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 0.25rem 1.5rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  min-height: 44px;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 300;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--deep-verdigris); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--deep-verdigris); color: var(--deep-verdigris); }

/* ---------- Layout ---------- */
main { flex: 1 0 auto; }
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.measure { max-width: var(--measure); }

h1, h2, h3 {
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1rem; }

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-verdigris);
  margin: 0 0 1rem;
}

/* Decorative hairline plumb (CSS only) */
.plumb {
  position: relative;
  width: 12px;
  height: 96px;
  margin: 0 auto;
}
.plumb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: calc(100% - 14px);
  background: var(--deep-verdigris);
  transform: translateX(-50%);
}
.plumb::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 8px;
  height: 8px;
  background: var(--deep-verdigris);
  transform: translateX(-50%) rotate(45deg);
}
.plumb--lg { height: 128px; }
.plumb--lg::before { height: calc(100% - 18px); }
.plumb--lg::after { width: 10px; height: 10px; }

/* ---------- Home hero (dark ground) ---------- */
.hero {
  background: var(--graphite);
  color: var(--chalk);
  text-align: center;
}
.hero__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.hero .plumb::before, .hero .plumb::after { background: var(--verdigris); }
.hero h1 {
  color: var(--chalk);
  font-weight: 300;
  max-width: 20ch;
  margin: 1.75rem auto 0;
  text-wrap: balance;
}

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--graphite); color: var(--chalk); }
.section--dark a { color: var(--verdigris); }
.section--dark .label { color: var(--verdigris); }

.page-head { padding: clamp(2.25rem, 6vw, 4rem) 0 0; }
.page-head h1 { margin-bottom: 0; }
.page-head .plumb { margin: 0 0 1.5rem; height: 72px; }

.lede { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.45rem); font-weight: 300; line-height: 1.5; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 400;
}

/* Two-column feature rows on wider screens */
.split {
  display: grid;
  gap: 1.5rem 3rem;
}
@media (min-width: 48rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .split > .label { margin-top: 0.5rem; }
}

/* ---------- Status markers (staging only) ---------- */
.pending-ok,
.draft-banner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px dashed currentColor;
  border-radius: 2px;
  margin: 0 0 1.25rem;
}
.pending-ok { color: var(--graphite); background: var(--mist); border-color: var(--deep-verdigris); }
.draft-banner {
  display: block;
  color: var(--chalk);
  background: var(--graphite);
  border-color: var(--verdigris);
  padding: 0.8rem 1rem;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.draft-banner strong { color: var(--verdigris); font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Group door ---------- */
.door {
  border-left: 1px solid var(--deep-verdigris);
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-size: 1.0625rem;
}
@media (min-width: 48rem) {
  .door { padding-left: 2rem; }
}

.facts {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1rem;
}
.facts li { border-top: 1px solid var(--hairline); padding-top: 0.75rem; }
.facts .label { margin-bottom: 0.25rem; }

/* ---------- Offer list (mentoring draft) ---------- */
.offer { width: 100%; border-collapse: collapse; }
.offer th, .offer td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 0.75rem 0.9rem 0;
  border-top: 1px solid var(--hairline);
}
.offer th { font-weight: 400; width: 34%; }
@media (max-width: 36rem) {
  .offer, .offer tbody, .offer tr, .offer th, .offer td { display: block; width: 100%; }
  .offer td { border-top: 0; padding-top: 0; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 400; }
.field .hint { font-size: 0.9375rem; color: #4a5359; margin: 0; }
.field input, .field textarea {
  font: inherit;
  color: var(--graphite);
  background: #fff;
  border: 1px solid #6b767c;
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }

.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.button {
  display: inline-block;
  justify-self: start;
  font: inherit;
  font-weight: 400;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  background: var(--graphite);
  color: var(--chalk);
  border: 1px solid var(--graphite);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { background: #2f373d; }
.button--ghost { background: transparent; color: var(--graphite); }
.button--ghost:hover { background: rgba(32, 37, 42, 0.06); }

.notice {
  border-left: 3px solid var(--deep-verdigris);
  background: rgba(196, 211, 208, 0.45);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
}
.notice--error { border-left-color: #8a3b2a; }

.contact-email {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 300;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: var(--chalk);
  margin-top: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.site-footer a { color: var(--chalk); }
.site-footer a:hover { color: var(--verdigris); }
.site-footer :focus-visible { outline-color: var(--verdigris); }
.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2rem;
  display: grid;
  gap: 1.75rem 3rem;
}
@media (min-width: 48rem) {
  .site-footer__inner { grid-template-columns: 1.2fr 1.6fr; }
}
.site-footer p { margin: 0 0 0.6rem; }
.site-footer .label { color: var(--verdigris); }
.crisis-list {
  list-style: none;
  margin: 0 0 0.9rem; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.crisis-list a { display: inline-block; padding: 0.35rem 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 0.35rem 0; }
.footer-brand img { display: block; width: 170px; height: auto; margin-bottom: 0.9rem; }
.footer-bottom {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.75rem;
  border-top: 1px solid rgba(237, 240, 239, 0.16);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Additions ---------- */
.door__lead { font-weight: 300; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); line-height: 1.35; }
.door p { margin-bottom: 1rem; }
.door p:last-child { margin-bottom: 0; }
.door__sites { font-size: 0.9375rem; }
.privacy-note {
  margin-top: 1.75rem;
  padding: 0.9rem 1rem;
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.6;
}
.privacy-note .pending-ok__marker { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem; }
.draft-banner-wrap { padding-top: 1.25rem; }
.mentoring-lockup { display: block; width: clamp(150px, 40vw, 200px); height: auto; margin: 0 auto; }
.page-head:has(.mentoring-lockup) { text-align: center; }
.offer-notes { margin-top: 1.25rem; }
