/* lightningscar.net: one stylesheet for every public page. Fonts are self-hosted (/fonts). */
:root {
  --navy: #1B4D6E; --steel: #4A7BA7; --light: #EAF1F7; --warm: #F8F6F3;
  --text: #2D2D2D; --muted: #6B7280; --border: #D1D5DB; --hair: #E5E7EB; --white: #fff;
  --ok: #1F7A4D; --ok-bg: #E7F4EC; --bad: #A33A2B;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', system-ui, sans-serif; color: var(--text); background: var(--warm); line-height: 1.65; font-size: 17px; }
a { color: var(--steel); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }

h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; color: var(--navy); line-height: 1.2; }
h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 14px; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p + p { margin-top: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--steel); font-weight: 600; }
.lede { font-size: 1.12rem; max-width: 62ch; }
.muted { color: var(--muted); }

/* ---- shared header and footer ---- */
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 20px 0; font-size: .95rem; }
.site-nav .brand { color: var(--navy); font-weight: 700; text-decoration: none; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; }
.site-nav .links { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.site-nav .links a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav .links a:hover { color: var(--navy); text-decoration: underline; }
.site-nav .links a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.langs { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--white); }
.site-nav .langs a { padding: 2px 11px; color: var(--muted); font-weight: 600; font-size: .82rem; text-decoration: none; }
.site-nav .langs a[aria-current] { background: var(--navy); color: var(--white); }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0 48px; color: var(--muted); font-size: .9rem; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-footer a { color: var(--steel); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---- page header and sections ---- */
.page-head { padding: 32px 0 40px; border-bottom: 2px solid var(--navy); }
.page-head h1 { margin: 10px 0 14px; max-width: 22ch; }
section { padding: 44px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }
.section-intro { color: var(--muted); margin-bottom: 22px; max-width: 62ch; }

.btn { display: inline-block; border-radius: 8px; padding: 11px 20px; border: 1px solid var(--navy); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover { background: #163f5b; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.small { padding: 7px 14px; font-size: .92rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.note { background: var(--light); border-radius: 8px; padding: 12px 16px; font-size: .95rem; }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---- front page ---- */
.intro { padding: 40px 0 44px; border-bottom: 2px solid var(--navy); }
.intro h1 { font-size: 2.6rem; }
.intro .lede { margin-top: 12px; font-size: 1.2rem; }
.intro .contact { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.now { display: grid; gap: 12px; }
.now a.card { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.now a.card:hover { border-color: var(--steel); box-shadow: 0 2px 10px rgba(27, 77, 110, .08); }
.now .what { font-weight: 600; color: var(--navy); }
.now .desc { color: var(--muted); font-size: .95rem; }
.now .go { color: var(--steel); font-size: .9rem; white-space: nowrap; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.door:hover { border-color: var(--steel); box-shadow: 0 2px 10px rgba(27, 77, 110, .08); }
.door p { color: var(--text); font-size: .97rem; }
.door .meta { color: var(--muted); font-size: .88rem; }
.door .go { margin-top: auto; padding-top: 6px; color: var(--steel); font-weight: 600; font-size: .95rem; }

/* ---- CV ---- */
.cv-head { padding: 28px 0 36px; border-bottom: 2px solid var(--navy); }
.cv-head .tagline { font-size: 1.15rem; color: var(--steel); font-weight: 500; margin: 6px 0 14px; }
.cv-head .contact { font-size: .92rem; color: var(--muted); }
.cv-head .contact a { color: var(--steel); text-decoration: none; }
.proof-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.proof-item:last-child { border-bottom: none; }
.proof-label { flex: 0 0 170px; font-weight: 600; color: var(--navy); font-size: .92rem; }
.proof-desc { flex: 1; font-size: .95rem; line-height: 1.6; }
.role { margin-bottom: 26px; }
.role:last-child { margin-bottom: 0; }
.role-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.role-title { font-weight: 600; color: var(--navy); }
.role-dates { font-size: .88rem; color: var(--muted); font-style: italic; }
.role-context { font-size: .93rem; color: var(--muted); }
.available { background: var(--light); border-left: 4px solid var(--steel); padding: 18px 22px; margin-top: 22px; font-size: .95rem; }
.available strong { color: var(--navy); }

/* ---- fractional ---- */
.mandates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mandates .card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.mandates .card p { font-size: .95rem; color: var(--muted); }

/* ---- assessments page ---- */
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.test { display: flex; flex-direction: column; gap: 8px; }
.test .facts { color: var(--steel); font-weight: 600; font-size: .92rem; }
.test .sub { margin-top: -.35rem; font-size: .9rem; font-style: italic; }
.test .for { color: var(--muted); font-size: .94rem; margin-top: auto; }
.test-foundation { border-color: var(--steel); box-shadow: inset 0 3px 0 var(--steel); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; margin: 18px 0; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--light); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps strong { color: var(--navy); }
.author { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.tiers.two { grid-template-columns: repeat(2, 1fr); }
.tier { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.tier.featured { border-color: var(--navy); box-shadow: 0 4px 18px rgba(27, 77, 110, .10); }
.tier-sub { color: var(--muted); font-size: .92rem; margin-top: -8px; }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid #ECEEF1; }
.price-list dt { font-weight: 600; }
.price-list dt span { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.price-list dd { font-family: 'Source Serif 4', Georgia, serif; color: var(--navy); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.price-list dd span { display: block; font-family: 'Source Sans 3', system-ui, sans-serif; font-size: .75rem; color: var(--muted); font-weight: 400; }
.tier ul { font-size: .94rem; }
.quote { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.4rem; color: var(--navy); font-weight: 600; }
.fine { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.contact-form { display: grid; gap: 16px; max-width: 640px; }
.contact-form label { display: block; font-weight: 600; color: var(--navy); font-size: .92rem; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--white); font: inherit; color: var(--text); font-weight: 400; }
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: var(--bad); }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-error { color: var(--bad); font-size: .9rem; margin-top: 4px; }
.form-privacy { color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { background: var(--ok-bg); border: 1px solid #b9dfc8; border-radius: 10px; padding: 18px 20px; max-width: 640px; }

/* ---- privacy ---- */
.prose h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose ul { margin: 8px 0 0 20px; }
.prose li + li { margin-top: 4px; }

@media (max-width: 820px) {
  .doors, .tiers, .tiers.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1, .intro h1 { font-size: 1.9rem; }
  h2 { font-size: 1.35rem; }
  .tests, .mandates, .row.two { grid-template-columns: 1fr; }
  .intro, .page-head, .cv-head { padding: 18px 0 30px; }
  section { padding: 34px 0; }
  .now a.card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .proof-item { flex-direction: column; gap: 4px; }
  .proof-label { flex: none; }
  .role-header { flex-direction: column; }
}
.da-note { margin-top: 16px; font-size: .92rem; }
.u-mt { margin-top: 14px; font-size: .92rem; }
.tests.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tests.three { grid-template-columns: 1fr; } }
