:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f2f1ed;
  --ink: #15171c;
  --ink-2: #4a4f59;
  --ink-3: #80858f;
  --line: #e4e2dc;
  --line-2: #d3d0c8;
  --accent: #1e3a8a;
  --accent-ink: #ffffff;
  --accent-soft: #e8ecf7;
  --danger: #a32020;
  --ok: #1d6b45;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(20 20 30 / 0.04), 0 2px 8px rgb(20 20 30 / 0.04);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --surface: #17191d;
    --surface-2: #1e2026;
    --ink: #ecebe8;
    --ink-2: #b3b5bb;
    --ink-3: #7f838c;
    --line: #2a2d34;
    --line-2: #393d46;
    --accent: #8fa8f0;
    --accent-ink: #0e1430;
    --accent-soft: #1d2540;
    --danger: #f07a7a;
    --ok: #6fcf9d;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 14.5px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: 500 13.5px var(--sans); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.danger { color: var(--danger); }

.field, .field > label { display: grid; gap: 6px; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--ink-3); }
input, select, textarea {
  width: 100%; font: 14px/1.45 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-side {
  background: #12151c; color: #e9e8e4; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side h1 { font-size: 40px; line-height: 1.12; max-width: 14ch; margin: 64px 0 18px; color: #fff; }
.auth-side .lede { color: #a8acb6; max-width: 40ch; font-size: 15.5px; }
.principles { display: grid; gap: 20px; margin-top: 44px; max-width: 44ch; }
.principles div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.principles b { display: block; color: #fff; font-weight: 500; }
.principles span { color: #9196a1; font-size: 13.5px; }
.principles i { font-style: normal; font-family: var(--serif); color: #8fa8f0; font-size: 15px; }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 56px 32px; overflow-y: auto; }
.auth-card { width: 100%; max-width: 520px; }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-card form { display: grid; gap: 16px; margin-top: 28px; }
.auth-switch { margin-top: 22px; color: var(--ink-3); font-size: 13.5px; }
.auth-switch a { color: var(--accent); font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; }
legend { font: 600 11.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; padding-top: 10px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 18px var(--serif); letter-spacing: -0.01em; }
.brand svg { width: 24px; height: 24px; }

/* ---------- shell ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1160px; margin: 0 auto; height: 58px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { position: relative; white-space: nowrap; padding: 7px 12px; border-radius: 7px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--surface-2); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.me-link { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-weight: 500; }
.me-link:hover { text-decoration: none; color: var(--ink); }

main { max-width: 1160px; margin: 0 auto; padding: 28px 24px 80px; }
.layout-3 { display: grid; grid-template-columns: 260px minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 82px; display: grid; gap: 16px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head p { color: var(--ink-3); margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { font: 600 13px var(--sans); }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- avatar ---------- */
.av { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font: 600 13px var(--sans); letter-spacing: .02em; }
.av.lg { width: 72px; height: 72px; font-size: 24px; }
.av.md { width: 48px; height: 48px; font-size: 16px; }
.av.xs { width: 26px; height: 26px; font-size: 10.5px; }
.av-0 { background: #1e3a8a; } .av-1 { background: #2f5d50; } .av-2 { background: #7a3e2b; } .av-3 { background: #4b3f72; }
.av-4 { background: #8a6a1e; } .av-5 { background: #3b5568; } .av-6 { background: #6b2f4a; } .av-7 { background: #44523a; }

/* ---------- chips & tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--line-2); color: var(--ink); text-decoration: none; }
.chip.on, .chip.match { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip .n { color: var(--ink-3); font-weight: 400; }
.stage { display: inline-block; padding: 1px 8px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.kind { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kind-Milestone { color: var(--ok); } .kind-Hiring { color: #8a5a00; } .kind-Ask { color: var(--accent); } .kind-Insight { color: #6b3fa0; }
@media (prefers-color-scheme: dark) { .kind-Hiring { color: #e3b35c; } .kind-Insight { color: #c2a3ec; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-3); font-weight: 500; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 8px; gap: 2px; }
.seg a { padding: 4px 10px; border-radius: 6px; font: 500 12.5px var(--sans); color: var(--ink-3); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; font: 500 12.5px var(--sans); color: var(--ink-3); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- feed ---------- */
.composer textarea { border: 0; padding: 0; min-height: 72px; box-shadow: none !important; font-size: 15px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 10px; flex-wrap: wrap; }
.post { padding: 18px; }
.post + .post { border-top: 1px solid var(--line); }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; font-size: 15px; line-height: 1.6; }
.meta-line { color: var(--ink-3); font-size: 13px; }
.who b { font-weight: 600; }
.empty { padding: 44px 24px; text-align: center; color: var(--ink-3); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- discover ---------- */
.search { position: relative; }
.search input { height: 44px; padding-left: 40px; font-size: 15px; }
.search svg { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; color: var(--ink-3); }
.founders { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.founder { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.founder .headline { color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.founder .actions { margin-top: auto; display: flex; gap: 8px; }

/* ---------- profile ---------- */
.profile-head { padding: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; }
.profile-head h1 { font-size: 26px; }
.profile-head .headline { color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--ink-3); font-size: 13px; }
.facts a { color: var(--accent); }
.section { padding: 22px 28px; border-top: 1px solid var(--line); }
.section h3 { font: 600 11.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.bio { white-space: pre-wrap; font-size: 15px; line-height: 1.65; max-width: 68ch; }

/* ---------- network ---------- */
.person-row { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.person-row + .person-row { border-top: 1px solid var(--line); }
.note { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--line-2); background: var(--surface-2); border-radius: 0 6px 6px 0; color: var(--ink-2); font-size: 13.5px; }

/* ---------- messages ---------- */
.inbox { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 58px - 56px - 80px); min-height: 480px; overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; }
.thread { display: flex; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.thread:hover { background: var(--surface-2); text-decoration: none; }
.thread.on { background: var(--accent-soft); }
.thread .preview { color: var(--ink-3); font-size: 13px; }
.thread.unread .preview { color: var(--ink); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.convo { display: flex; flex-direction: column; min-width: 0; }
.convo-head { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.convo-head .back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 12px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.msg-time { font-size: 11.5px; color: var(--ink-3); margin: 8px 0 2px; text-align: center; }
.reply { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: flex-end; }
.reply textarea { min-height: 40px; max-height: 160px; resize: none; }

/* ---------- modal & toast ---------- */
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / .2); }
dialog::backdrop { background: rgb(15 17 22 / .45); }
dialog form { padding: 22px; display: grid; gap: 14px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 500; transition: .2s; z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--danger); color: #fff; }
.form-error { color: var(--danger); font-size: 13.5px; min-height: 1em; }

/* ---------- matching, verification ---------- */
.label { font: 600 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.reason { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.reason span { color: var(--ink-3); }
.vf { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; flex: none; }
.vf circle { fill: var(--accent); }
.vf path { fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vf-text { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 500; }
.vf-text .vf { margin: 0 2px 0 0; }
.banner { background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.banner-in { max-width: 1160px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.banner input { width: 130px; height: 28px; padding: 4px 10px; letter-spacing: .15em; }

/* ---------- replies, asks, activity ---------- */
.post-actions { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 -10px; flex-wrap: wrap; }
.tags-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.replies { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.reply-row { display: flex; gap: 10px; padding: 10px 0; }
.reply-row + .reply-row { border-top: 1px dashed var(--line); }
.reply-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin-top: 2px; }
.reply-form { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; }
.reply-form textarea { min-height: 36px; padding: 7px 10px; resize: none; }
.ask-tags { margin-top: 10px; }
.ask-ref { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.ask-ref a { color: var(--ink-2); }
.bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--ink-2); }
.bell:hover, .bell.on { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.bell svg { width: 19px; height: 19px; }
.bell .badge { position: absolute; top: 1px; right: -3px; margin: 0; }
.notif { display: flex; gap: 12px; padding: 14px 18px; align-items: flex-start; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.notif p span { color: var(--ink-2); }
.notif .snippet { color: var(--ink-3); font-size: 13px; margin-top: 2px; }

/* ---------- builders & teams ---------- */
.team-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 500; }
.kind-Team { color: #0f766e; }
@media (prefers-color-scheme: dark) { .kind-Team { color: #5eead4; } }
.pf { display: grid; gap: 16px; }
.pf fieldset[disabled] { display: none; }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-card { position: relative; display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; background: var(--surface); }
.type-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.type-card b { font-weight: 600; }
.type-card span { color: var(--ink-3); font-size: 13px; }

/* ---------- rich profiles ---------- */
img.av { object-fit: cover; background: var(--surface-2); }
.company-mark { border-radius: 14px; font-family: var(--serif); font-size: 30px; }
.traction { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.focus { font-size: 13px; color: var(--ink-2); padding: 7px 10px; background: var(--surface-2); border-radius: 6px; }
.focus > span:first-child { font-weight: 600; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.focus-form input { height: 30px; padding: 4px 9px; font-size: 13px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stats span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; background: var(--surface-2); }
.invite p { margin: 0; }
a.person-row:hover { background: var(--surface-2); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .layout-3 { grid-template-columns: minmax(0, 1fr) 280px; }
  .layout-3 > .left { display: none; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 24px; }
  .auth-side h1 { margin-top: 32px; font-size: 32px; }
  .principles { display: none; }
  .layout-3, .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .layout-3 > .right, .layout-2 > aside { display: none; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.has-thread .threads { display: none; }
  .inbox:not(.has-thread) .convo { display: none; }
  .convo-head .back { display: inline-flex; }
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-head .actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar-in { padding: 0 16px; gap: 10px; }
  .topbar .brand span, .me-link span { display: none; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 7px 7px; font-size: 13.5px; }
  .badge { margin-left: 3px; }
  main { padding: 20px 16px 64px; }
  .banner-in { padding: 10px 16px; }
  .grid-2, .grid-3, .type-pick { grid-template-columns: 1fr; }
  .auth-main { padding: 32px 16px; }
  .founders { grid-template-columns: 1fr; }
  .section, .profile-head { padding-left: 18px; padding-right: 18px; }
}

/* onboarding */
[hidden] { display: none !important; }
.steps { list-style: none; display: flex; gap: 8px; margin: 22px 0 0; padding: 0; counter-reset: s; }
.steps li { flex: 1; display: grid; gap: 6px; font-size: 12px; color: var(--ink-3); }
.steps li::before { content: ''; height: 3px; border-radius: 2px; background: var(--line); }
.steps li.on::before, .steps li.done::before { background: var(--accent); }
.steps li.on { color: var(--ink); font-weight: 600; }
.chips.pick { margin-top: 8px; }
.chips.pick .chip { font-family: inherit; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.gaps { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.gaps a { color: var(--accent); }
.welcome-step { padding: 20px; }
.welcome-step h3 { font: 600 15px var(--sans); }
.step-dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); font: 600 13px var(--sans); color: var(--ink-3); }
.welcome-step.done .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.card.flat { box-shadow: none; }
@media (max-width: 520px) { .steps span { display: none; } .steps li.on span { display: inline; } }

/* ---------- landing (signed-out home): warm dark; the hero shows a real match ---------- */
.lp {
  --lp-bg: #161513; --lp-deep: #12110f; --lp-card: #1c1a18; --lp-raised: #262421;
  --lp-line: rgba(239, 233, 222, .08); --lp-line-2: rgba(239, 233, 222, .14);
  --lp-ink: #efe9de; --lp-ink-2: #aaa398; --lp-ink-3: #8a847a;
  --lp-fit: #f5a524; /* the logo's amber block: marks a skill that fits, and nothing else */
  --lp-ease: cubic-bezier(.22, 1, .36, 1);
  min-height: 100vh; background: var(--lp-bg); color: var(--lp-ink); font-family: var(--sans);
}
.lp a { color: inherit; text-decoration: none; }
.lp :focus-visible { outline: 2px solid var(--lp-ink); outline-offset: 2px; border-radius: 6px; }
.lp-sec:focus, #lp-main:focus { outline: none; } /* jump targets, not controls */
.lp-skip { position: absolute; left: 16px; top: -48px; z-index: 10; background: var(--lp-ink); color: var(--lp-bg) !important; padding: 8px 16px; border-radius: 8px; }
.lp-skip:focus { top: 12px; }
.lp-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 32px;
  background: var(--lp-bg); border-bottom: 1px solid var(--lp-line); }
.lp-brand { display: flex; align-items: center; font: 600 16px var(--serif); }
.lp-logo svg { display: block; height: 28px; width: auto; }
.lp-logo text { fill: var(--lp-ink); }
.lp-nav { display: flex; gap: 4px; margin: 0 auto; }
.lp-nav a { padding: 8px 12px; border-radius: 8px; color: var(--lp-ink-2); font: 500 14px var(--sans);
  transition: color .15s var(--lp-ease), background-color .15s var(--lp-ease); }
.lp-nav a:hover, .lp-nav a[aria-current] { color: var(--lp-ink); background: var(--lp-raised); }
.lp-head-cta { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.lp-link { font: 500 14px var(--sans); color: var(--lp-ink-2) !important; transition: color .15s var(--lp-ease); }
.lp-link:hover { color: var(--lp-ink) !important; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 10px; font: 500 15px var(--sans);
  transition: background-color .15s var(--lp-ease), transform .15s var(--lp-ease); }
.lp-btn:active { transform: scale(.98); }
.lp-btn.sm { height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; }
.lp-btn.primary { background: var(--lp-ink); color: var(--lp-bg) !important; }
.lp-btn.primary:hover { background: #fff; }
.lp-btn.ghost { border: 1px solid var(--lp-line-2); background: var(--lp-card); }
.lp-btn.ghost:hover { background: var(--lp-raised); }

.lp-wrap { max-width: 1200px; margin: 0 auto; }
.lp-sec { padding: 128px 32px; border-top: 1px solid var(--lp-line); scroll-margin-top: 64px; }
.lp-kicker { font: 400 14px var(--sans); color: var(--lp-ink-3); margin: 0 0 16px; }
.lp h1, .lp-h2 { font-family: var(--serif); font-weight: 500; margin: 0; }
.lp h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; }
.lp-h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; }
.lp-sub { color: var(--lp-ink-2); font-size: 18px; line-height: 28px; max-width: 36rem; margin: 24px 0 0; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp h3 { font: 500 16px/24px var(--sans); margin: 0; }
.lp-d { color: var(--lp-ink-2); font-size: 15px; line-height: 24px; margin: 4px 0 0; }

.lp-hero { border-top: 0; min-height: calc(100vh - 64px); display: grid; align-items: center; padding: 64px 32px; }
.lp-hero .lp-wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

/* hero visual: one example match */
.lp-preview { margin: 0; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 16px; padding: 24px; }
.lp-pv-label { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--lp-ink-3); margin-bottom: 16px; }
.lp-pv-person { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--lp-line); }
.lp-pv-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #4a3b2e; font: 500 14px var(--sans); }
.lp-pv-person b { display: block; font: 500 15px/20px var(--sans); }
.lp-pv-person small { color: var(--lp-ink-2); font-size: 13px; line-height: 20px; }
.lp-pv-badge { margin-left: auto; padding: 2px 8px; border: 1px solid var(--lp-line-2); border-radius: 6px; color: var(--lp-ink-2); font-size: 12px; line-height: 16px; white-space: nowrap; }
.lp-pv-grid { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: center; row-gap: 8px; padding: 20px 0; }
.lp-pv-head { font-size: 12px; line-height: 16px; color: var(--lp-ink-3); padding-bottom: 4px; }
.lp-pv-skill { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--lp-line); border-radius: 8px;
  background: var(--lp-deep); color: var(--lp-ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-pv-skill.fit { background: var(--lp-raised); color: var(--lp-ink); }
.lp-pv-skill.fit::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--lp-fit); }
.lp-pv-link { height: 1px; background: var(--lp-line-2); }
.lp-pv-note { padding: 12px; border: 1px solid var(--lp-line); border-radius: 8px; background: var(--lp-deep); color: var(--lp-ink-2); font-size: 14px; line-height: 20px; }
.lp-pv-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.lp-pv-count { font: 400 12px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--lp-ink-3); font-variant-numeric: tabular-nums; }
.lp-pv-btn { display: grid; place-items: center; height: 36px; padding: 0 16px; border-radius: 8px; background: var(--lp-ink); color: var(--lp-bg); font: 500 14px var(--sans); }

.lp-split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.lp-steps { list-style: none; margin: 0; padding: 0; }
.lp-steps li { display: grid; grid-template-columns: 48px 1fr; padding: 24px 0; border-top: 1px solid var(--lp-line); }
.lp-steps li:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-num { font: 400 13px/24px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--lp-ink-3); }
.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.lp-aud { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 16px; padding: 32px; }
.lp .lp-aud h3 { font: 500 24px/32px var(--serif); margin-bottom: 20px; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-checks li { display: flex; gap: 12px; color: var(--lp-ink-2); font-size: 15px; line-height: 24px; }
.lp-checks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--lp-ink-3); }
.lp-rows { list-style: none; margin: 48px 0 0; padding: 0; }
.lp-rows li { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding: 20px 0; border-top: 1px solid var(--lp-line); }
.lp-rows li:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-rows .lp-d { margin: 0; }
.lp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.lp-cols > div { padding-top: 20px; border-top: 1px solid var(--lp-line-2); }
.lp-cta { text-align: center; }
.lp-cta .lp-h2 { margin: 0 auto; max-width: 16ch; font-size: clamp(36px, 4.4vw, 56px); }
.lp-cta .lp-sub { margin: 16px auto 0; }
.lp-cta .lp-ctas { justify-content: center; }
.lp-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 32px; border-top: 1px solid var(--lp-line); color: var(--lp-ink-3); font-size: 13px; }
.lp-foot-links { display: flex; gap: 20px; }
.lp-foot a { transition: color .15s var(--lp-ease); }
.lp-foot a:hover { color: var(--lp-ink); }

@media (prefers-reduced-motion: no-preference) {
  .lp-hero .lp-wrap > * { animation: lp-rise .45s var(--lp-ease) both; }
  .lp-hero .lp-wrap > :nth-child(2) { animation-delay: .06s; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .lp-nav { display: none; }
  .lp-head-cta { margin-left: auto; }
  .lp-hero .lp-wrap, .lp-split { grid-template-columns: 1fr; gap: 48px; }
  .lp-rows li { grid-template-columns: 1fr; gap: 4px; }
  .lp-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lp-head { padding: 0 16px; }
  .lp-sec { padding: 80px 16px; }
  .lp-hero { min-height: auto; padding: 48px 16px 80px; }
  .lp-grid-2 { grid-template-columns: 1fr; }
  .lp-aud { padding: 24px; }
  .lp-ctas .lp-btn { flex: 1 1 100%; }
  .lp-preview { padding: 16px; }
  .lp-pv-grid { grid-template-columns: 1fr 12px 1fr; }
  .lp-pv-skill { padding: 0 8px; font-size: 13px; }
  .lp-foot { padding: 24px 16px; }
}

/* sign in with Google / GitHub */
.oauth { display: grid; gap: 10px; }
.oauth-btn { gap: 10px; height: 42px; font-weight: 500; }
.oauth-btn svg { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--ink-3); font-size: 12.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.linklike { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; }
