/* Match the personal homepage: simple typography, warm paper, brown links. */
:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #292824;
  background: #faf9f6;
  font-synthesis: none;
  --accent: #87502d;
  --muted: #706c64;
  --line: #dedbd3;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.7; }
main { max-width: 1440px; margin: 0 auto; padding: 32px 32px 80px; }
h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -1.2px; }
h2 { margin: 0 0 16px; font-size: 17px; line-height: 1.5; }
p { margin: 0 0 22px; }
a, .text-button { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, .text-button:hover { color: #492912; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }
.text-button { display: inline; padding: 0; border: 0; background: none; text-align: left; }
.links { margin: 12px 0 30px; font-size: 15px; color: #aaa498; }
.links a, .links button { white-space: nowrap; margin: 0 3px; }
.links a:first-child { margin-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -100px; background: #faf9f6; padding: 8px; z-index: 9; }
.skip:focus { top: 12px; }
.board { margin-top: 30px; }
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 36px; border-block: 1px solid var(--line); }
.audience { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 22px 26px; }
.audience + .audience { border-left: 1px solid var(--line); }
.audience-employer { background: #f2ede5; }
.audience h2 { margin: 0 0 6px; font-size: 16px; }
.audience p { flex: 1; margin: 0 0 16px; max-width: 30ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
.audience .audience-action { display: inline-flex; align-items: center; gap: 18px; min-height: 39px; font-size: 14px; }
.audience-action span { text-decoration: none; }
.modal-bonus { color: var(--accent); font-size: 14px; font-weight: 650; margin: 0 25px 10px 0; line-height: 1.4; }
.bonus-terms { margin: 0; font-size: 12px; }
.bonus-terms summary { color: var(--muted); cursor: pointer; }
.bonus-terms p { white-space: pre-wrap; font-size: 12px; margin: 8px 0; }
.selected-role { font-size: 13px; color: var(--muted); margin: -8px 0 16px; }
.board-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.board-heading h2 { margin: 0; }
#result-count { font-size: 12px; color: var(--muted); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.filters label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; color: var(--muted); }
.filters select { width: 100%; min-height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 3px; padding: 8px 7px; font-size: 13px; color: #292824; cursor: pointer; }
.multi-filter { min-width: 0; color: var(--muted); font-size: 12px; }
.multi-filter > span { display: block; margin-bottom: 5px; }
.filter-menu { position: relative; color: #292824; }
.filter-menu summary { min-height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; cursor: pointer; }
.filter-menu fieldset { position: absolute; z-index: 3; top: calc(100% + 5px); left: 0; min-width: 100%; width: max-content; max-width: min(290px,calc(100vw - 32px)); margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: #faf9f6; box-shadow: 0 8px 20px #29282412; }
.filter-menu .field-hint { margin: 0 0 8px; }
.filters .check-option { flex-direction: row; align-items: center; gap: 8px; min-height: 32px; color: #292824; font-size: 13px; cursor: pointer; }
.check-option input { width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--accent); }
.jobs { margin-inline-start: 26px; }
.job { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 16px 0; text-align: left; }
.job:last-child { border-bottom: 1px solid var(--line); }
.job:hover h3 { color: var(--accent); }
.job h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.5; font-weight: 700; }
.meta { display: block; font-size: 12px; color: var(--muted); line-height: 1.65; }
.compensation { display: grid; grid-template-columns: minmax(120px,1fr) minmax(160px,1.3fr); gap: 24px; flex: 0 1 420px; }
.pay { text-align: left; min-width: 0; overflow-wrap: anywhere; }
.pay strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.7; }
.pay small { display: block; font-size: 11px; color: var(--muted); line-height: 1.65; }
.pay-bonus strong { color: var(--accent); }
.open-intro { font-size: 15px; margin: 20px 0 8px; }
.board-note { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.empty { color: var(--muted); font-size: 15px; padding: 20px 0; }
.faq { margin-top: 34px; }
.faq details { margin-inline-start: 26px; border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--accent); cursor: pointer; font-size: 15px; line-height: 1.5; }
.faq details p { font-size: 14px; margin: 10px 0 0; max-width: 900px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #faf9f6; color: #292824; overscroll-behavior: contain; }
dialog::backdrop { background: #29282488; }
.modal-inner { padding: 30px; position: relative; }
.close { position: absolute; top: 9px; right: 12px; padding: 3px 8px; border: 0; background: none; font-size: 27px; line-height: 1; color: var(--muted); }
.modal-kicker { color: var(--muted); font-size: 12px; margin: 0 30px 10px 0; }
dialog h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.5px; font-weight: 500; margin: 0 22px 18px 0; }
dialog p, dialog li { font-size: 15px; line-height: 1.7; }
dialog ul { padding-left: 21px; margin: 0 0 20px; }
dialog li { margin: 5px 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 20px; }
.pill { color: var(--muted); font-size: 12px; }
.pill + .pill::before { content: '·'; margin: 0 10px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.primary, .secondary { display: inline-block; border: 1px solid var(--accent); border-radius: 3px; padding: 8px 13px; font-size: 14px; line-height: 1.5; text-decoration: none; background: var(--accent); color: #fff; }
.primary:hover { background: #663c21; color: #fff; }
.secondary { border-color: var(--line); color: var(--accent); background: none; }
.secondary:hover { color: #492912; border-color: #b6a48f; }
.small-note { font-size: 12px !important; color: var(--muted); margin-bottom: 0; }
.steps { padding-left: 23px; }
.steps li { margin-bottom: 14px; }
.steps strong { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { min-width: 0; width: 100%; border: 1px solid #c9c3b8; border-radius: 3px; background: #fffdf9; padding: 9px; font-size: 15px; }
.form-grid select, .filters select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23706c64' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; cursor: pointer; }
.form-grid textarea { resize: vertical; min-height: 90px; }
.referral-heading { margin-bottom: 12px; }
.referral-heading h2 { margin-bottom: 4px; font-size: 22px; line-height: 1.3; }
.referral-heading .modal-bonus { margin-bottom: 5px; font-size: 13px; line-height: 1.4; }
.referral-heading .selected-role { margin: 0; font-size: 12px; line-height: 1.5; }
#referral-form .form-grid { gap: 10px 12px; }
#referral-form .contact-fields { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
#referral-form .contact-group { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 0 0; }
#referral-form .contact-group legend { padding-left: 0; padding-right: 8px; font-size: 12px; }
#referral-form .contact-group legend span { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--muted); }
#referral-form label { min-width: 0; gap: 3px; font-size: 12px; line-height: 1.5; }
#referral-form input:not([type="checkbox"]), #referral-form select, #referral-form textarea { padding: 7px 8px; line-height: 1.4; }
#referral-form select { padding-right: 38px; }
#referral-form textarea { min-height: 60px; }
#referral-form .optional-profile { font-size: 12px; }
#referral-form .optional-profile summary { color: var(--accent); cursor: pointer; }
#referral-form .optional-profile summary span { color: var(--muted); }
#referral-form .optional-profile input { margin-top: 6px; }
.referral-submit { display: flex; align-items: center; gap: 14px; }
.referral-submit .text-button { font-size: 12px; }
#referral-form .form-status { margin: 0; }
#referral-form .form-status:empty { display: none; }
.form-grid label em { font-style: normal; color: var(--muted); }
.posting-contact { margin-bottom: 22px; }
.posting-role { border: 1px solid var(--line); border-radius: 3px; margin: 12px 0; }
.posting-role summary { cursor: pointer; padding: 14px 16px; font-size: 14px; background: #f2ede5; overflow-wrap: anywhere; }
.posting-role-title { font-weight: 600; }
.posting-role-meta { display: block; font-size: 11px; color: var(--muted); margin: 3px 0 0 17px; line-height: 1.6; }
.posting-role-body { padding: 18px 16px; }
.remove-opportunity { margin-top: 16px; font-size: 12px; }
.add-role-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 16px 0 24px; }
.field-hint { font-size: 11px; color: var(--muted); }
.choice-group, .contact-group { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 3px; }
.choice-group legend, .contact-group legend { padding: 0 5px; font-size: 13px; font-weight: 600; }
.choice-group .field-hint, .contact-group .field-hint { margin: 0 0 10px; font-size: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; }
.form-grid .check-option { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; }
.form-grid .check-option input { width: 15px; height: 15px; padding: 0; margin: 3px 0 0; }
.posting-confirmation { border-top: 1px solid var(--line); padding-top: 18px; }
.form-grid .checkbox { flex-direction: row; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.7; }
.checkbox input { width: 15px; flex-shrink: 0; margin: 3px 0 0; }
.honeypot { position: absolute; left: -10000px; }
.form-status { font-size: 13px; margin: 12px 0; white-space: pre-wrap; }
.form-status.error { color: #a0462b; }
.success .check { color: var(--accent); font-size: 30px; margin-bottom: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 10px 16px; background: #292824; color: white; font-size: 13px; border-radius: 3px; z-index: 5; max-width: calc(100% - 32px); }
button:disabled { cursor: wait; opacity: .6; }
@media (max-width: 1000px) {
  .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .audience { padding-inline: 20px; }
}
@media (max-width: 700px) {
  .job { flex-direction: column; gap: 12px; }
  .compensation { flex: auto; width: 100%; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
  .audiences { grid-template-columns: minmax(0,1fr); margin: 24px 0 30px; }
  .audience { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 16px; padding: 18px; align-items: center; }
  .audience + .audience { border-left: 0; border-top: 1px solid var(--line); }
  .audience h2 { grid-column: 1; margin: 0; }
  .audience p { grid-column: 1; margin: 0; max-width: none; }
  .audience .audience-action { grid-column: 2; grid-row: 1 / 3; gap: 8px; white-space: nowrap; }
  .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  main { padding: 16px 16px 56px; }
  .links { margin-bottom: 26px; font-size: 14px; }
  .filters { gap: 10px; }
  .board-heading { flex-wrap: wrap; gap: 10px 14px; }
  .filters select { font-size: 13px; }
  .jobs, .faq details { margin-inline-start: 16px; }
  .audience { display: flex; padding: 16px; gap: 0; align-items: flex-start; }
  .audience p { margin: 4px 0 9px; font-size: 13px; }
  .job { gap: 8px; padding: 13px 0; flex-direction: column; }
  .pay { text-align: left; }
  .job h3 { font-size: 15px; }
  .pay strong { font-size: 13px; }
  .pay small { font-size: 10px; }
  .meta, .board-note { font-size: 11px; }
  .faq summary, .open-intro { font-size: 14px; }
  .modal-inner { padding: 28px 20px; }
  dialog h2 { font-size: 23px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }
  #referral-form .contact-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #referral-form .contact-name { grid-column: 1 / -1; }
  .posting-role-body { padding: 16px 12px; }
  .posting-role summary { padding: 12px; }
  .choice-grid { grid-template-columns: minmax(0,1fr); }
  .contact-group, .choice-group { padding: 12px; }
  .filter-menu fieldset { position: static; width: auto; margin-top: 5px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .form-grid select, .filters select { appearance: auto; -webkit-appearance: auto; background-image: none; }
}
