:root {
  --ink: #171717;
  --muted: #60605c;
  --accent: #a4432d;
  --rule: #deded8;
  --paper: #fff;
  --soft: #f6f6f2;
  --danger: #952f27;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.005em;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a { color: inherit; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  height: 72px;
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-size: 24px; font-weight: 680; text-decoration: none; letter-spacing: -.055em; }
.wordmark-mark { color: var(--accent); }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .text-button:hover { color: var(--ink); }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; }

.hero { padding: 84px 0 52px; }
.hero h1, .role-hero h1, .account-shell h1 {
  margin: 0;
  max-width: 850px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero-foot { display: flex; justify-content: space-between; gap: 36px; margin-top: 28px; color: var(--muted); }
.hero-foot p { margin: 0; }
.count, .kicker { color: var(--muted); font-size: 12px; letter-spacing: .035em; }
.kicker { margin: 0 0 12px; text-transform: uppercase; }

.search-index { padding: 0 0 104px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.section-heading h2, .role-section h2, .activity h2 { margin: 0; font-size: 22px; font-weight: 570; line-height: 1.2; letter-spacing: -.025em; }
.filters { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.filter { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.filter[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.rows { border-bottom: 1px solid var(--rule); }
.job-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.job-row:last-child { border: 0; }
.job-meta { color: var(--muted); font-size: 13px; }
.job-row h3 { margin: 0 0 5px; font-size: 24px; font-weight: 560; line-height: 1.2; letter-spacing: -.025em; }
.job-row p { margin: 0; }
.row-action { border: 0; background: none; padding: 8px 0; cursor: pointer; font-size: 14px; }
.row-action span { color: var(--accent); margin-left: 8px; }

.site-footer { display: flex; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.site-footer span { color: var(--ink); margin-right: auto; }
.site-footer a { text-decoration: none; }

.role-view { width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 42px 0 100px; }
.back { border: 0; background: none; padding: 0 0 40px; cursor: pointer; color: var(--muted); }
.role-hero { padding-bottom: 42px; border-bottom: 1px solid var(--ink); }
.role-org { margin: 22px 0 5px; font-size: 21px; font-weight: 560; }
.role-meta { color: var(--muted); }
.role-layout { display: grid; grid-template-columns: minmax(0, 680px) 300px; gap: 76px; padding-top: 44px; }
.role-lede { margin: 0 0 40px; font-size: 21px; line-height: 1.5; letter-spacing: -.02em; }
.direct-note { margin: -22px 0 40px; color: var(--muted); font-size: 13px; }
.role-section { padding: 30px 0; border-top: 1px solid var(--rule); }
.role-section h2 { margin-bottom: 14px; }
.role-section p, .role-section li { color: var(--muted); }
.role-section ul { padding-left: 20px; }
.action-panel { position: sticky; top: 28px; align-self: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.action-panel strong { display: block; margin-bottom: 14px; font-size: 21px; font-weight: 570; letter-spacing: -.025em; }
.action-panel p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.action-panel button, .primary, .secondary { width: 100%; min-height: 44px; margin-top: 8px; padding: 10px 13px; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; text-align: left; }
.action-panel .primary, .primary { background: var(--ink); color: #fff; }

.dialog { width: min(620px, calc(100% - 32px)); max-height: 90vh; padding: 0; border: 1px solid var(--rule); background: var(--paper); box-shadow: none; }
.dialog::backdrop { background: rgba(23,23,23,.48); }
#dialogBody { padding: 34px; }
.dialog-close { float: right; border: 0; background: none; font-size: 24px; cursor: pointer; }
.dialog h2 { margin: 28px 0 8px; color: var(--ink); font-size: 30px; font-weight: 570; line-height: 1.12; letter-spacing: -.035em; }
.dialog .intro { color: var(--muted); margin: 0 0 24px; }
.form { display: grid; gap: 18px; }
.form-section { display: grid; gap: 16px; padding: 22px 0 4px; border-top: 1px solid var(--rule); }
.form-section:first-of-type { padding-top: 4px; border-top: 0; }
.form-section h3 { margin: 0; font-size: 15px; font-weight: 650; }
.form-section > p { margin: -10px 0 0; color: var(--muted); font-size: 13px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 520; }
.form input, .form textarea, .form select { width: 100%; padding: 11px 12px; border: 1px solid #bcbcb5; background: #fff; border-radius: 0; }
.form textarea { min-height: 96px; resize: vertical; }
.helper { margin: 0; color: var(--muted); font-size: 13px; }
.error { color: var(--danger); font-size: 13px; }
.success { padding: 26px 0; }
.success h2 { margin-top: 8px; }

.account-view { min-height: calc(100vh - 72px); width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 60px 0; }
.account-shell { max-width: 760px; }
.account-shell h1 { font-size: 44px; }
.account-shell > p { color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.choice { position: relative; border: 1px solid var(--rule); background: #fff; padding: 20px; text-align: left; cursor: pointer; }
.choice:hover { border-color: #9b9b94; }
.choice b { display: block; margin-bottom: 4px; font-weight: 620; }
.choice span { color: var(--muted); font-size: 13px; }
.choice-count { position: absolute; top: 17px; right: 17px; min-width: 24px; padding: 2px 7px; background: var(--soft); color: var(--ink) !important; text-align: center; font-size: 12px !important; }
.activity { margin-top: 46px; }
.activity section { padding: 22px 0; border-top: 1px solid var(--rule); }
.empty { color: var(--muted); }

@media (max-width: 720px) {
  .wrap, .site-header, .role-view, .account-view { width: min(100% - 32px, var(--max)); }
  .site-header { height: 66px; }
  .site-header nav a { display: none; }
  .hero { padding: 62px 0 44px; }
  .hero h1, .role-hero h1 { font-size: 43px; }
  .hero-foot, .role-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .section-heading { display: block; }
  .filters { justify-content: flex-start; margin-top: 18px; }
  .job-row { grid-template-columns: 1fr; gap: 10px; }
  .row-action { justify-self: start; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-footer span { margin: 0 0 8px; }
  .role-layout { padding-top: 32px; }
  .action-panel { position: static; }
  .choice-grid { grid-template-columns: 1fr; }
  #dialogBody { padding: 26px 22px; }
  .dialog h2 { font-size: 28px; }
}
