:root {
  color-scheme: light;
  --bg: #f7f1e5;
  --paper: #fffdf8;
  --ink: #171714;
  --muted: #625f57;
  --line: #d8cebd;
  --green: #0d5e3c;
  --green-dark: #083f2b;
  --green-soft: #dceadf;
  --red: #bb2f23;
  --amber: #ad6b16;
  --blue: #145ea8;
  --shadow: 0 18px 42px rgba(49, 37, 15, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 9% 0%, rgba(13, 94, 60, .11), transparent 30rem),
    linear-gradient(180deg, #fffaf0 0, var(--bg) 36rem);
  color: var(--ink);
  font: 16px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body { max-width: 100%; overflow-x: hidden; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid #0876d1;
  outline-offset: 2px;
}
.site-header, main, footer { width: min(1500px, calc(100% - 36px)); margin-inline: auto; }
.site-header { padding: 28px 0 20px; }
.brand-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.brand { color: var(--green-dark); font-size: .86rem; font-weight: 900; letter-spacing: .16em; text-decoration: none; }
.updated { margin: 0; color: var(--muted); font: 750 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.hero { padding: clamp(46px, 8vw, 112px) 0 clamp(36px, 6vw, 82px); max-width: 1200px; }
.eyebrow, .kicker { margin: 0 0 10px; color: var(--green-dark); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { text-wrap: balance; }
h1 { margin: 0; max-width: 1150px; font-size: clamp(3.3rem, 8.5vw, 8.8rem); line-height: .82; letter-spacing: -.075em; }
.lede { margin: 28px 0 0; max-width: 760px; color: #3f3c36; font-size: clamp(1.05rem, 1.7vw, 1.38rem); }

.profile-strip { display: grid; grid-template-columns: minmax(260px, 1.2fr) 2fr; gap: 30px; align-items: center; padding: 24px; border: 1px solid var(--green); border-radius: 18px; background: var(--green-dark); color: #f7f2e6; box-shadow: var(--shadow); }
.profile-strip > * { min-width: 0; }
.profile-strip .kicker { display: block; color: #bcd9c4; }
.profile-strip strong { display: block; max-width: 520px; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.08; letter-spacing: -.03em; }
.profile-strip dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.profile-strip dl div { padding: 12px 16px; border-left: 1px solid rgba(255,255,255,.22); }
.profile-strip dt { color: #bcd9c4; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-strip dd { margin: 3px 0 0; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 850; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat { min-height: 118px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,248,.88); }
.stat span, .stat small { display: block; color: var(--muted); }
.stat span { font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.stat strong { display: block; margin: 8px 0 6px; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat small { font-size: .76rem; }

.board { margin: 40px 0 26px; }
.board-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 4.3rem); line-height: .92; letter-spacing: -.055em; }
.board-heading > p { margin: 0; max-width: 430px; color: var(--muted); }
.filters { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(5, minmax(145px, .8fr)) auto; gap: 9px; align-items: end; padding: 16px 0; }
.filters label span { display: block; margin: 0 0 5px; color: var(--muted); font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.filters input, .filters select, .filters button { width: 100%; height: 43px; border: 1px solid #c9bfaf; border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.filters input, .filters select { padding: 0 11px; }
.filters button { padding: 0 14px; color: var(--green-dark); font-weight: 850; cursor: pointer; }
.filters button:hover { background: var(--green-soft); }
.result-line { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 4px 0 10px; }
.result-line p { margin: 0; font-weight: 850; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: .77rem; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.strong { background: var(--green); }
.dot.adjacent { background: var(--amber); }
.dot.stretch { background: var(--red); }

.table-wrap { max-height: 76vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; min-width: 1180px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
th, td { padding: 13px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; z-index: 3; background: #efe5d4; color: #2d2a24; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 1px 0 #c8bcaa; }
th:nth-child(1) { width: 31%; }
th:nth-child(2) { width: 15%; }
th:nth-child(3) { width: 12%; }
th:nth-child(4) { width: 18%; }
th:nth-child(5) { width: 15%; }
th:nth-child(6) { width: 9%; }
tbody tr:nth-child(even) td { background: #fbf6eb; }
tbody tr:hover td { background: #f2ead8; }
.role-link { color: #084f96; font-size: 1rem; font-weight: 900; text-decoration-thickness: .09em; text-underline-offset: .16em; }
.org { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
.salary { font-size: 1.05rem; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.salary-note, .cell-note { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.pill { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e9dfcd; color: #3b372f; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.pill.remote { background: var(--green-soft); color: var(--green-dark); }
.pill.travel { background: #f7e8c9; color: #704409; }
.pill.hybrid { background: #e3e9f4; color: #2a466c; }
.fit { display: flex; align-items: center; gap: 7px; font-weight: 850; }
.fit small { color: var(--muted); font-weight: 650; }
.empty { padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: center; }
.empty strong, .empty span { display: block; }
.empty strong { font-size: 1.35rem; }
.empty span { margin-top: 5px; color: var(--muted); }

.method { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; margin: 80px 0 48px; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.76); }
.method ul { margin: 0; padding-left: 20px; }
.method li + li { margin-top: 12px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer strong { color: var(--green-dark); letter-spacing: .12em; }

@media (max-width: 1180px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 22px, 1500px); }
  .brand-row { padding-bottom: 18px; }
  .updated { max-width: 52%; text-align: right; overflow-wrap: anywhere; }
  h1 { font-size: clamp(3rem, 14vw, 4.2rem); overflow-wrap: anywhere; }
  .lede, .profile-strip strong { overflow-wrap: anywhere; }
  .profile-strip { grid-template-columns: 1fr; padding: 19px; }
  .profile-strip dl { grid-template-columns: 1fr; }
  .profile-strip dl div { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 9px 0 0; }
  .board-heading, .result-line, footer { display: block; }
  .board-heading > p { margin-top: 12px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .legend { margin-top: 8px; }
  .method { grid-template-columns: 1fr; gap: 24px; margin-top: 55px; padding: 24px; }
  footer span { display: block; margin-top: 8px; }
}

@media (max-width: 470px) {
  .stats, .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .stat { min-height: 96px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
