:root {
  --ink: #04202A; --signal: #1FDDEE; --deep: #00788A; --paper: #FFFFFF; --frost: #EAF6F8;
  --rule: #CFE3E8; --muted: #4A6670; --danger: #B3261E;
  --display: 'Saira', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cg fill='none' stroke='%2300788A' stroke-width='1.6'%3E%3Cpolyline points='1,1 5,5 1,9'/%3E%3Cpolyline points='7,1 11,5 7,9'/%3E%3Cpolyline points='13,1 17,5 13,9'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
main { min-height: 50vh; }
a { color: var(--deep); }
img { max-width: 100%; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
.hero :focus-visible, .site-footer :focus-visible, .apply-bar :focus-visible, .strip :focus-visible { box-shadow: none; }

h1, h2, h3 { font-family: var(--display); font-stretch: 118%; font-weight: 700; margin: 0; line-height: 1.15; }
h2 { font-size: 1.563rem; margin: 2rem 0 .6rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); height: 64px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 34px; width: auto; }
.mark { display: inline-block; flex: none; width: 54px; height: 34px; background: url('/public/logo-ink.png') no-repeat 0 0 / 54px auto; }
.mark-white { background-image: url('/public/logo-white.png'); }
.wordmark { font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.wordmark span { font-family: var(--body); font-stretch: 100%; font-weight: 400; color: var(--muted); font-size: 1rem; }
.nav-link { font-weight: 700; text-decoration: none; color: var(--ink); padding: 8px 4px; }
.nav-link:hover { color: var(--deep); text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; padding: 12px 20px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-primary:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #0a3140; }
.btn-sm { padding: 8px 14px; font-size: .95rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-inner { position: relative; padding-top: 48px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.01em; color: #fff; overflow-wrap: anywhere; }
.hero .lead { font-size: 1.25rem; max-width: 40ch; margin: 1rem 0 0; color: rgba(255,255,255,.85); }
.hero .back { display: inline-block; color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 1.2rem; }
.hero .back:hover { color: #fff; }
.hero-copy { max-width: 60%; }
.slab { position: absolute; top: 0; bottom: 0; right: -5%; width: min(38%, 460px); background: var(--signal); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.hero-slab { display: flex; align-items: center; justify-content: center; padding: 0 14% 0 12%; animation: slab-in 450ms ease-out both; }
.hero-slab .btn { font-size: 1.1rem; padding: 14px 22px; white-space: nowrap; }
@keyframes slab-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .hero-slab { animation: none; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 1.6rem 0 0; padding: 0; }
.facts dt { font-size: .8rem; opacity: .7; }
.facts dd { margin: 0; font-size: 1rem; }

/* Jobs list */
.count-line { margin: 28px 0 4px; font-weight: 700; }
.job-rows { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--rule); }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 12px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.job-row:hover { background: var(--frost); }
.job-row h2 { font-size: 1.25rem; margin: 0 0 2px; }
.job-row p { margin: 0; color: var(--muted); }
.job-row .where { text-align: right; color: var(--ink); }
.job-row .btn { flex: none; }
.job-row-end { display: flex; align-items: center; gap: 24px; }
.empty { margin: 32px 0 60px; font-size: 1.25rem; }

/* Job page */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.job-main { max-width: 68ch; }
.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.chev-list, .check-list, .plain-list { list-style: none; padding: 0; margin: 0; }
.chev-list li, .check-list li, .plain-list li { position: relative; padding-left: 34px; margin: .45rem 0; }
.chev-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 18px; height: 10px; background: var(--chevron) no-repeat center / contain; }
.check-list li::before { content: ''; position: absolute; left: 1px; top: .3em; width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 2px; }
.nice-list li { color: var(--muted); font-weight: 400; }
.plain-list li { padding-left: 22px; }
.plain-list li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; background: var(--muted); border-radius: 1px; }
.side-panel { position: sticky; top: 24px; border: 1px solid var(--rule); border-radius: 10px; padding: 20px; background: var(--paper); }
.side-panel h2, .role-card h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.side-facts { margin: 0 0 1rem; }
.side-facts dt { font-size: .8rem; color: var(--muted); margin-top: .7rem; }
.side-facts dd { margin: 0; font-weight: 500; }
.side-panel .btn { display: block; }
.apply-bar { display: none; }

/* Apply */
.strip { background: var(--ink); color: #fff; padding: 36px 0 40px; clip-path: polygon(0 0, 100% 0, calc(100% - 48px) 100%, 0 100%); }
.strip h1 { font-size: clamp(1.563rem, 4.5vw, 2.441rem); color: #fff; overflow-wrap: anywhere; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 640px) 300px; gap: 48px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.form fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.form legend { font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 1.25rem; padding: 0; margin-bottom: 10px; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #7C99A3; border-radius: 6px; padding: 11px 12px; }
textarea { resize: vertical; }
.has-error input[type=text], .has-error input[type=email], .has-error input[type=tel], .has-error textarea, .has-error .drop, .has-error .input-prefix { border-color: var(--danger); }
.err { color: var(--danger); font-weight: 500; margin: 4px 0 0; font-size: .95rem; }
.help { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid #7C99A3; border-radius: 6px; background: var(--paper); }
.input-prefix:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
.input-prefix .prefix { display: flex; align-items: center; padding: 0 12px; color: var(--deep); background: var(--frost); border-right: 1px solid var(--rule); border-radius: 5px 0 0 5px; }
.input-prefix input[type=text] { border: 0; box-shadow: none; outline: 0; background: transparent; }
.drop { display: block; position: relative; text-align: center; padding: 28px 16px; border: 2px dashed #7C99A3; border-radius: 10px; background: var(--paper); cursor: pointer; }
.drop:hover { background: var(--frost); }
.drop.dragover { background: var(--frost); border: 2px solid var(--signal); }
.drop:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop-title { display: block; font-weight: 700; }
.drop-note { display: block; color: var(--muted); font-size: .95rem; }
.drop-file { display: block; margin-top: 6px; font-weight: 700; color: var(--deep); overflow-wrap: anywhere; }
.error-summary { border: 2px solid var(--danger); border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; background: #fff; }
.error-summary h2 { font-size: 1.25rem; margin: 0 0 6px; color: var(--danger); }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--danger); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.role-card { position: sticky; top: 24px; background: var(--frost); border-radius: 10px; padding: 20px; }
.role-card p { margin: 0 0 .5rem; }
.role-card dl { margin: .8rem 0; }
.role-card dt { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.role-card dd { margin: 0; font-weight: 500; }

/* Thanks, error */
.narrow-page { max-width: 640px; padding-top: 56px; padding-bottom: 80px; }
.narrow-page h1 { font-size: clamp(1.953rem, 5vw, 3.052rem); margin-bottom: 1rem; }
.steps { padding-left: 1.4rem; margin: 1rem 0 1.6rem; }
.steps li { margin: .4rem 0; padding-left: 6px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 36px 0; }
.footer-inner { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.footer-inner p { margin: 0; max-width: 56ch; }
.footer-about { flex: 1 1 300px; }
.footer-copy { margin-top: 14px !important; font-size: .95rem; color: rgba(255,255,255,.7); }

@media (max-width: 819px) {
  .job-layout, .apply-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side-panel, .role-card { position: static; }
  .side-panel .btn { display: none; }
  .hero-copy { max-width: none; }
  .hero-inner { padding-top: 32px; padding-bottom: 44px; }
  .slab { top: auto; bottom: 0; height: 14px; width: 55%; right: -8%; }
  .hero-slab { padding: 0; }
  .hero-slab .btn { display: none; }
  .job-page .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .apply-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .apply-bar .btn { display: block; width: 100%; font-size: 1.1rem; }
}
@media (max-width: 600px) {
  .job-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 4px; }
  .job-row-end { width: 100%; justify-content: space-between; }
  .job-row .where { text-align: left; }
  .wordmark { font-size: 1rem; }
  .wordmark span { display: none; }
  .strip { clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%); }
}
