:root {
  --navy: #00284e;
  --orange: #f15a24;
  --cream: #f7f0e5;
  --paper: #fffefa;
  --ink: #17304a;
  --muted: #607080;
  --line: #d8dfe4;
  color-scheme: light;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { background: var(--navy); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.68 Lato, Arial, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
h1, h2, p, blockquote { margin-top: 0; text-wrap: pretty; }
h1, h2 { color: var(--navy); font-family: Inter, Arial, sans-serif; letter-spacing: -.045em; line-height: 1.04; }
h1 { max-width: 12em; margin-bottom: .35em; font-size: clamp(3.4rem, 6.7vw, 7rem); }
h2 { margin-bottom: .8em; font-size: clamp(2.25rem, 4vw, 4rem); }
section[id] { scroll-margin-top: 1rem; }

.skip-link { position: fixed; z-index: 20; top: 1rem; left: 1rem; transform: translateY(-180%); background: #fff; padding: .7rem 1rem; }
.skip-link:focus { transform: none; }
.jobs-header { display: flex; width: min(100% - 3rem, 82rem); min-height: 6.5rem; margin: auto; align-items: center; justify-content: space-between; }
.jobs-header .brand { width: 9.5rem; min-width: 0; flex: 0 0 9.5rem; }
.jobs-header .brand img { width: 100%; height: auto; }
.header-cta { color: var(--navy); font: 800 .76rem Inter, Arial, sans-serif; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.header-cta span { margin-left: .5rem; color: var(--orange); }

.hero { width: min(100% - 3rem, 82rem); margin: auto; background: var(--cream); border: 1px solid var(--line); padding: clamp(4rem, 9vw, 8.5rem) clamp(2rem, 8vw, 8rem); }
.eyebrow { margin-bottom: 1rem; color: var(--orange); font: 800 .72rem Inter, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.job-summary { display: flex; max-width: 64rem; flex-wrap: wrap; gap: .2rem .7rem; margin: 0 0 2rem; color: var(--navy); font-size: clamp(.94rem, 1.6vw, 1.1rem); }
.job-summary span { color: var(--orange); }
.hero-lede { max-width: 38rem; margin-bottom: 2rem; font-size: 1.18rem; }
.button, .submit-button { display: inline-flex; align-items: center; gap: 1.2rem; border: 2px solid var(--navy); background: var(--navy); color: #fff; padding: 1rem 1.2rem; font: 800 .75rem Inter, Arial, sans-serif; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button:hover, .submit-button:hover { border-color: var(--orange); background: var(--orange); }
:is(a, button, input, textarea):focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.job-description { width: min(100% - 3rem, 68rem); margin: auto; }
.content-section { border-bottom: 1px solid var(--line); padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.content-section:last-child { border-bottom: 0; }
.content-section p { max-width: 52rem; }
.content-section > p + p { margin-top: 1.25rem; }
.content-section strong { color: var(--navy); }
.content-section > .section-lede { margin-top: 2.35rem; margin-bottom: .85rem; color: var(--navy); font: 700 clamp(1.25rem, 2vw, 1.65rem)/1.4 Georgia, "Times New Roman", serif; }
.content-section > h2 + .section-lede { margin-top: 0; }
.responsibilities { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 0 3.5rem; margin: .85rem 0 2rem; padding: 0; list-style: none; }
.responsibilities li { position: relative; display: flex; min-height: 4.5rem; align-items: flex-start; border-top: 1px solid var(--line); padding: 1rem 0 1rem 1.5rem; }
.responsibilities li::before { position: absolute; left: 0; color: var(--orange); content: '→'; font-weight: 800; }
.future { margin-block: 2rem; border: 1px solid #e6d9c8; background: var(--cream); padding: clamp(3.25rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); }
.future blockquote { max-width: 48rem; margin: 2rem 0; border-left: 4px solid var(--orange); padding-left: 1.5rem; color: var(--navy); font: 700 clamp(1.35rem, 2.2vw, 2rem)/1.35 Georgia, serif; }
.reality-check { margin-top: 1.75rem; border-top: 1px solid #d4c7b7; padding-top: 1.5rem; color: #576574; font-size: .92rem; }

.application { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 7vw, 7rem); margin-top: clamp(3rem, 6vw, 5rem); background: var(--navy); color: #fff; padding: clamp(4.5rem, 8vw, 8rem) max(1.5rem, calc((100vw - 82rem) / 2)); }
.application h2 { color: #fff; }
.application-intro { align-self: start; }
.application-intro > p { max-width: 30rem; font-size: 1.05rem; }
.direct-email { margin-top: 2rem; color: #aec1d1; font-size: .9rem; }
.direct-email a { color: #fff; font-weight: 700; }
.application-form { min-width: 0; background: #fff; color: var(--ink); padding: clamp(1.5rem, 4vw, 3.5rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.35rem; }
.field label { display: block; margin-bottom: .4rem; color: var(--navy); font: 800 .78rem Inter, Arial, sans-serif; }
.field input, .field textarea { width: 100%; border: 1px solid #aebbc5; border-radius: 0; background: #fff; padding: .8rem; color: var(--ink); }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.field-error { display: block; min-height: 1.15rem; margin-top: .2rem; color: #a21913; font-size: .76rem; }
.required-note { color: var(--muted); font-size: .76rem; }
.submit-button[disabled] { cursor: wait; opacity: .65; }
.form-status { margin-top: 1rem; border-left: 3px solid transparent; padding-left: 1rem; font-size: .9rem; }
.form-status.success { border-color: #1f7a4c; color: #175d3a; }
.form-status.error { border-color: #b3261e; color: #8c1d18; }
.honeypot, .honeypot[hidden] { display: none !important; }

@media (max-width: 60rem) {
  .application { grid-template-columns: 1fr; }
  .application-intro { max-width: 42rem; }
  .responsibilities { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .jobs-header { width: calc(100% - 2rem); min-height: 5rem; }
  .jobs-header .brand { width: 7.5rem; flex-basis: 7.5rem; }
  .header-cta { font-size: .66rem; }
  .hero { width: 100%; border-inline: 0; padding: 4rem 1.4rem; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.4rem); }
  .job-summary { display: block; line-height: 1.55; }
  .job-summary strong { display: inline; }
  .job-summary span { margin-inline: .3rem; }
  .job-description { width: 100%; }
  .content-section { padding: 4rem 1.4rem; }
  .future { margin-block: 1rem; border-inline: 0; padding-block: 3.25rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .application { padding: 4rem 1.4rem; }
  .application-form { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
