:root {
  --navy: oklch(19% 0.035 270);
  --navy-soft: oklch(26% 0.035 270);
  --paper: oklch(98% 0.006 270);
  --off-white: oklch(95% 0.008 270);
  --ink: var(--navy);
  --muted: oklch(43% 0.025 270);
  --line: oklch(84% 0.015 270);
  --success: oklch(39% 0.09 155);
  --danger: oklch(46% 0.16 25);
  --warning: oklch(46% 0.11 75);
  --display: "Reckless Neue", Georgia, serif;
  --body: "Maison Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --radius: 2px;
  --shadow: 0 16px 45px oklch(19% 0.035 270 / 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--body); }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, .button { min-height: 44px; cursor: pointer; }
a, button, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--navy-soft); }
button:disabled { cursor: wait; opacity: .58; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 12px 18px; background: var(--navy); color: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; padding: 12px clamp(20px,4vw,64px); border-bottom: 1px solid var(--line); background: oklch(98% 0.006 270 / .96); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 15px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: 12px; }
.pill-nav { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 100px; }
.pill-nav a { min-height: 44px; padding: 8px 18px; border-radius: 100px; text-decoration: none; font: 13px/24px var(--mono); transition: background 180ms ease-out, color 180ms ease-out; }
.pill-nav a:hover, .pill-nav a.active { background: var(--navy); color: var(--paper); }
.session-link { display: inline-flex; align-items: center; justify-self: end; min-height: 44px; font: 600 13px var(--mono); }
a.micro { display: inline-flex; align-items: center; min-height: 44px; }
main { min-height: calc(100dvh - 220px); }
.hero { padding: clamp(64px,9vw,132px) clamp(20px,6vw,96px) clamp(48px,6vw,88px); background: var(--navy); color: var(--paper); overflow: hidden; }
.hero-kicker, .micro { font: 11px/1.5 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 1100px; margin: 24px 0; font: clamp(62px,10vw,152px)/.83 var(--display); letter-spacing: -.055em; }
.hero h1 span { display: block; margin-left: clamp(20px,12vw,190px); }
.hero p { max-width: 62ch; margin: 32px 0 0 auto; color: var(--paper); font-size: 18px; }
.catalog { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 4fr); gap: clamp(28px,5vw,72px); padding: 56px clamp(20px,5vw,80px) 88px; }
.filters { align-self: start; position: sticky; top: 104px; }
.filters h2, .section-heading { margin: 0 0 24px; font: 32px/1.1 var(--display); letter-spacing: -.025em; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.catalog-head h2 { margin: 0; font: 36px/1.1 var(--display); }
.count { font: 12px var(--mono); color: var(--muted); }
.job-list { border-top: 1px solid var(--ink); }
.job-card { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; padding: 28px 4px; border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: background 180ms ease-out; }
.job-card:hover { background: var(--off-white); }
.job-card h3 { margin: 4px 0 10px; font: 28px/1.15 var(--display); letter-spacing: -.02em; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 9px; font: 11px/1.4 var(--mono); transition: transform 220ms ease-out; }
.job-card:hover .tag { transform: translateX(-4px); }
.arrow { align-self: center; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; font-size: 22px; transform: rotate(-45deg) translateX(8px); opacity: .55; transition: transform 220ms ease-out, opacity 220ms ease-out; }
.job-card:hover .arrow { transform: rotate(0) translateX(0); opacity: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--navy); border-radius: 100px; background: var(--navy); color: var(--paper); text-decoration: none; font: 600 13px var(--mono); transition: transform 160ms ease-out, background 160ms ease-out; }
.button:hover { transform: translateY(-2px); background: var(--navy-soft); }
.button.secondary { background: transparent; color: var(--navy); }
.button.danger { border-color: var(--danger); background: var(--danger); }
.button.small { min-height: 44px; padding: 8px 14px; font-size: 11px; }
.button-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.page { max-width: 1180px; margin: 0 auto; padding: 56px 24px 88px; }
.page.narrow { max-width: 780px; }
.page-title { margin: 8px 0 16px; font: clamp(42px,6vw,72px)/.98 var(--display); letter-spacing: -.04em; }
.lead { max-width: 70ch; color: var(--muted); font-size: 18px; }
.detail-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 28px 0; }
.detail-grid div { border-top: 1px solid var(--ink); padding-top: 10px; }
.detail-grid strong { display: block; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.rich { max-width: 75ch; line-height: 1.75; }
.rich h2, .rich h3, .rich h4 { font-family: var(--display); line-height: 1.2; }
.rich table { width: 100%; border-collapse: collapse; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.content-section { margin: 40px 0; }
.content-section h2 { font: 32px var(--display); }
.panel { margin-top: 32px; padding: clamp(20px,4vw,36px); border: 1px solid var(--line); background: var(--off-white); box-shadow: var(--shadow); }
.panel h2, .panel h3 { margin-top: 0; font-family: var(--display); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 20px; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1/-1; }
.field label, .field-label { font: 11px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
input, textarea, select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.challenge { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-message { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--navy); background: var(--off-white); }
.form-message.error { border-color: var(--danger); color: var(--danger); }
.form-message.success { border-color: var(--success); color: var(--success); }
.auth-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; }
.account-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 36px; }
.account-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; font: 12px var(--mono); }
.account-nav a.active { background: var(--navy); color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat { padding: 24px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 44px var(--display); }
.stat span { font: 11px var(--mono); text-transform: uppercase; }
.record { padding: 22px 0; border-bottom: 1px solid var(--line); }
.record-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.record h3 { margin: 0 0 8px; font: 24px/1.2 var(--display); }
.record p { margin: 6px 0; }
.status { display: inline-block; padding: 3px 9px; border-radius: 9px; background: var(--off-white); border: 1px solid var(--line); font: 11px var(--mono); text-transform: capitalize; }
.status.employed, .status.approved, .status.active { color: var(--success); border-color: var(--success); }
.status.rejected, .status.disapproved, .status.withdrawn { color: var(--danger); border-color: var(--danger); }
details { margin: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
summary { min-height: 48px; padding: 12px 0; cursor: pointer; font: 600 13px/24px var(--mono); }
details .record-form { padding: 4px 0 24px; }
.empty { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.initial-loader { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 60dvh; font: 13px var(--mono); }
.initial-loader span { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 15; max-width: min(420px,calc(100% - 40px)); padding: 14px 18px; background: var(--navy); color: var(--paper); box-shadow: var(--shadow); transform: translateY(140%); opacity: 0; transition: transform 220ms ease-out, opacity 220ms ease-out; }
.toast.show { transform: translateY(0); opacity: 1; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 40px clamp(20px,5vw,80px); background: var(--navy); color: var(--paper); }
footer p { margin: 4px 0 0; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
.noscript { padding: 24px; background: var(--danger); color: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; }
  .pill-nav { grid-row: 2; grid-column: 1/-1; justify-self: stretch; overflow-x: auto; }
  .pill-nav a { flex: 1; text-align: center; padding-inline: 10px; white-space: nowrap; }
  .brand-mark { width: 40px; height: 40px; }
  .catalog { grid-template-columns: 1fr; padding: 36px 20px 64px; }
  .filters { position: static; }
  .detail-grid, .form-grid.three { grid-template-columns: 1fr 1fr; }
  .hero h1 span { margin-left: 8vw; }
}
@media (max-width: 520px) {
  .form-grid, .form-grid.three, .detail-grid, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .page { padding: 40px 18px 64px; }
  .hero { padding-inline: 20px; }
  .hero h1 { font-size: 58px; }
  .hero p { font-size: 16px; }
  .job-card { grid-template-columns: minmax(0,1fr) 36px; }
  .job-card h3 { font-size: 24px; }
  .arrow { width: 36px; height: 36px; }
  .record-head { flex-direction: column; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
