/* ===========================================================================
   Household Economic Framework
   Shared stylesheet for the HEF section (deployed at /hef/)

   All paths in this directory are RELATIVE, so the folder can be renamed or
   remounted at any depth or domain without edits. Do not reintroduce
   root-absolute paths.

   Extends the myfrienddan.com design language (Montserrat + Open Sans,
   slate base, squared corners) with an HEF-specific warm accent so these
   pages are never mistaken for the real estate practice.

   One stylesheet rather than per-page inline CSS: the palette lives in one
   place, and the whole directory lifts to another domain as a unit.
   =========================================================================== */

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

:root {
  /* Base, shared with the main site */
  --slate: #333F48;
  --slate-deep: #2a333b;
  --ink: #232a30;

  /* HEF accent. Warm against slate; deliberately not the real estate teal. */
  --ochre: #d9b53d;
  --ochre-dim: rgba(217,181,61,0.55);
  --parchment: #e8e3d9;

  --white: #ffffff;
  --body: rgba(255,255,255,0.78);
  --muted: rgba(255,255,255,0.55);
  --rule: rgba(217,181,61,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  background: var(--slate);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Shared type ---------- */

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--white); }

h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 22px;
}
h2 em { color: var(--ochre); font-style: normal; }

h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 10px;
}

p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(18px, 2.2vw, 21px); font-weight: 300; line-height: 1.6; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--ochre);
  text-transform: uppercase;
  margin-bottom: 18px;
}

a { color: var(--ochre); }

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

.btn {
  display: inline-block;
  background: var(--ochre);
  color: var(--ink);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 10px;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--ochre); }

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 28px;
  background: var(--slate-deep);
  border-bottom: 1px solid var(--rule);
}

.nav .wordmark {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  line-height: 1.4;
}
.nav .wordmark span { display: block; color: var(--ochre); font-size: 9px; letter-spacing: 0.28em; font-weight: 700; }

.nav .nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.nav .nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav .nav-links a:hover { color: var(--ochre); }

/* Current-page highlight. The nav markup is shared across all three HEF pages via
   _includes/nav.html, so the active item is selected here from data-page on <body>
   rather than from a hardcoded class. Adding a page means adding its pair below. */
body[data-page="overview"]  .nav .nav-links a[data-nav="overview"],
body[data-page="framework"] .nav .nav-links a[data-nav="framework"],
body[data-page="reader"]    .nav .nav-links a[data-nav="reader"] { color: var(--ochre); }
.nav .nav-links a.offsite { color: rgba(255,255,255,0.32); }
.nav .nav-links a.offsite:hover { color: rgba(255,255,255,0.6); }

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

section { padding: 84px 24px; }
.wrap { max-width: 760px; margin: 0 auto; }
.wrap-wide { max-width: 1020px; margin: 0 auto; }

.band-deep { background: var(--slate-deep); }
.band-light { background: var(--parchment); color: var(--ink); }
.band-light h2, .band-light h3 { color: var(--ink); }
.band-light h4 { color: #8a6d10; }
.band-light .eyebrow { color: #8a6d10; }
.band-light a { color: #8a6d10; }

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

.hero {
  padding: 104px 24px 88px;
  text-align: center;
  background: linear-gradient(160deg, #2a333b 0%, #333F48 55%, #3b4750 100%);
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.14;
  max-width: 780px;
  margin: 0 auto 22px;
}
.hero h1 em { color: var(--ochre); font-style: normal; }
.hero .sub { max-width: 640px; margin: 0 auto 34px; font-size: clamp(16px, 2vw, 19px); font-weight: 300; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* Interior page hero, shorter */
.hero.hero-sub { padding: 76px 24px 60px; text-align: left; }
.hero.hero-sub .wrap { text-align: left; }
.hero.hero-sub h1 { margin-left: 0; font-size: clamp(28px, 4.2vw, 42px); }
.hero.hero-sub .sub { margin-left: 0; }

/* ---------- Callout: the German terms ---------- */

.callout {
  border: 1px solid var(--ochre-dim);
  border-left: 4px solid var(--ochre);
  background: rgba(217,181,61,0.06);
  padding: 28px 30px;
  margin: 36px 0;
}
.callout .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 14px;
  display: block;
}
.callout .term { color: var(--white); font-weight: 600; font-style: italic; }
.callout p:last-child { margin-bottom: 0; }
.callout .src { font-size: 14px; color: var(--muted); }

/* ---------- Pull quote ---------- */

.pull {
  border-left: 3px solid var(--ochre);
  padding: 6px 0 6px 26px;
  margin: 34px 0;
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--white);
}

/* ---------- Note block (editorial aside) ---------- */

.note {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 26px 28px;
  margin: 32px 0;
  font-size: 16px;
}
.band-light .note { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--ochre);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover { background: rgba(0,0,0,0.32); border-color: var(--ochre-dim); border-top-color: var(--ochre); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 18px; }
.card .go {
  margin-top: auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}

/* ---------- Data panels: squared corners, no radius anywhere ---------- */

.panels { display: grid; gap: 16px; margin: 30px 0; }
.panels-2 { grid-template-columns: repeat(2, 1fr); }
.panels-4 { grid-template-columns: repeat(4, 1fr); }

.panel {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 2px solid var(--ochre);
  padding: 24px 22px;
}
.panel h4 { margin-bottom: 8px; }
.panel p { font-size: 15px; line-height: 1.6; }

/* Named thinkers under a job description */
.who-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ochre);
}
.band-light .who-list { border-top-color: rgba(0,0,0,0.14); color: #8a6d10; }

.band-light .panel { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.14); border-top-color: #8a6d10; }

/* ---------- Definition lists ---------- */

.deflist { margin: 26px 0; }
.deflist .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.deflist .row:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.deflist .term {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ochre);
  letter-spacing: 0.02em;
}
.deflist .desc { font-size: 15px; line-height: 1.6; }
.band-light .deflist .row { border-color: rgba(0,0,0,0.12); }
.band-light .deflist .row:first-child { border-top-color: rgba(0,0,0,0.12); }
.band-light .deflist .term { color: #8a6d10; }

/* ---------- Two-column list (virtues) ---------- */

.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; }

ul.plain { list-style: none; }
ul.plain li {
  padding: 9px 0 9px 20px;
  position: relative;
  font-size: 16px;
  line-height: 1.55;
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 2px;
  background: var(--ochre);
}
ul.plain li b, ul.plain li strong { color: var(--white); font-weight: 600; }
.band-light ul.plain li b, .band-light ul.plain li strong { color: var(--ink); }
.band-light ul.plain li::before { background: #8a6d10; }

/* ---------- Contrast table: what it opposes / what it proposes ---------- */

.oppose { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; }
.oppose > div {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  padding: 26px 24px;
}
.oppose .not { border-top: 2px solid rgba(255,255,255,0.28); }
.oppose .yes { border-top: 2px solid var(--ochre); }
.oppose h4 { color: rgba(255,255,255,0.55); }
.oppose .yes h4 { color: var(--ochre); }

/* ---------- Roster ---------- */

.roster-group { margin-bottom: 44px; }
.roster-group > h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.roster-group .count { color: var(--muted); font-weight: 400; letter-spacing: 0.06em; text-transform: none; }

.roster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.roster .who { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.roster .who .name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.roster .who .what { font-size: 13.5px; line-height: 1.5; color: var(--muted); display: block; }

/* ---------- Capture ---------- */

.capture { border-top: 1px solid var(--rule); }
.capture .box {
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--ochre);
  padding: 40px 36px;
}
.capture h2 { margin-bottom: 14px; }

/* ---------- Kit embed ----------
   Kit injects its own <style> into <head> at runtime, scoped to
   .formkit-form[data-uid="..."]. That stylesheet lands after this file, so ties
   in specificity go to Kit. !important is deliberate here: it is the only
   reliable way to override a third-party stylesheet we do not control.
   The "powered by Kit" badge is left visible; it is a free-plan requirement. */

.kit-embed { margin: 26px 0 6px; }

.kit-embed .formkit-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  font-family: 'Open Sans', sans-serif !important;
}

.kit-embed .formkit-fields {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
}

.kit-embed .formkit-field { flex: 1 1 240px !important; min-width: 0 !important; margin: 0 !important; }

.kit-embed .formkit-input {
  width: 100% !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 0 !important;
  background: rgba(0,0,0,0.3) !important;
  color: var(--white) !important;
}
.kit-embed .formkit-input::placeholder { color: rgba(255,255,255,0.4) !important; }
.kit-embed .formkit-input:focus { outline: 2px solid var(--ochre) !important; outline-offset: 0 !important; }

.kit-embed .formkit-submit {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 14px 30px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--ochre) !important;
  color: var(--ink) !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
}
.kit-embed .formkit-submit > span { color: var(--ink) !important; }
.kit-embed .formkit-submit:hover { opacity: 0.85 !important; }

.kit-embed .formkit-alert {
  font-size: 14px !important;
  border-radius: 0 !important;
  margin: 0 0 12px !important;
}

.kit-embed .formkit-powered-by-convertkit-container { margin: 12px 0 0 !important; }
.kit-embed .formkit-powered-by-convertkit {
  color: rgba(255,255,255,0.3) !important;
  font-size: 11px !important;
  background: none !important;
}
.kit-embed .formkit-powered-by-convertkit:hover { color: rgba(255,255,255,0.5) !important; }

.kit-embed .fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- In development list ---------- */

.pipeline { margin-top: 34px; }
.pipeline .items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pipeline .items span {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 13px;
}

/* ---------- Next / prev page link ---------- */

.next {
  border-top: 1px solid var(--rule);
  padding: 60px 24px 72px;
}
.next .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.next .label { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.next h3 { margin-bottom: 0; }

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

footer {
  background: var(--slate-deep);
  border-top: 1px solid var(--rule);
  padding: 40px 24px;
  text-align: center;
}
footer p { font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,0.42); margin: 0; }
footer a { color: var(--ochre-dim); text-decoration: none; }
footer a:hover { color: var(--ochre); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .panels-4 { grid-template-columns: repeat(2, 1fr); }
  .roster { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 60px 20px; }
  .hero { padding: 72px 20px 60px; }
  .hero.hero-sub { padding: 56px 20px 46px; }
  .nav { padding: 16px 20px; }
  .nav .nav-links { gap: 16px; }
  .panels-2, .panels-4, .oppose { grid-template-columns: 1fr; }
  .cols-2 { columns: 1; }
  .deflist .row { grid-template-columns: 1fr; gap: 6px; }
  .capture .box { padding: 30px 22px; }
  .callout { padding: 22px 20px; }
  .pull { padding-left: 18px; }
}
