:root {
  color-scheme: light;
  --ink: #17233d;
  --muted: #5b6475;
  --paper: #fffdf8;
  --surface: #ffffff;
  --brand: #1e3a8a;
  --brand-dark: #152b68;
  --accent: #f4b942;
  --focus: #9f1239;
  --line: #dce1ea;
  --success: #166534;
  --closed: #9f1239;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: var(--brand); text-underline-offset: 0.16em; }
a:hover { color: var(--brand-dark); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1rem, calc((100vw - 72rem) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header a { font-size: 1.25rem; font-weight: 800; text-decoration: none; color: var(--ink); }
.site-header span { padding: .25rem .65rem; border-radius: 2rem; background: #fef3c7; font-size: .8rem; font-weight: 700; }
main { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.hero { padding: clamp(2rem, 7vw, 5rem) 0 3rem; max-width: 52rem; }
h1, h2 { line-height: 1.15; letter-spacing: -.025em; }
h1 { margin: .25rem 0 1rem; font-size: clamp(2.35rem, 7vw, 4.8rem); }
h2 { font-size: 1.35rem; }
.eyebrow { margin: 0 0 .35rem; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero > p:not(.eyebrow), .lede { color: var(--muted); font-size: 1.15rem; }
form { margin-top: 2rem; }
label { display: block; margin-bottom: .45rem; font-weight: 750; }
.search-row { display: flex; gap: .6rem; }
input, button { min-height: 3rem; border-radius: .55rem; font: inherit; }
input { min-width: 0; flex: 1; padding: .7rem .9rem; border: 1px solid #9aa3b4; background: white; color: var(--ink); }
button, .apply-button { border: 0; background: var(--brand); color: white; font-weight: 750; }
button { padding: .7rem 1.25rem; cursor: pointer; }
button:hover, .apply-button:hover { background: var(--brand-dark); color: white; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); }
.results-heading p { color: var(--muted); }
.award-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.award-card { display: flex; flex-direction: column; padding: 1.35rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); box-shadow: 0 .35rem 1rem rgb(23 35 61 / .05); }
.award-card h2 { margin: .15rem 0 .75rem; }
.award-card > p:not(.eyebrow) { color: var(--muted); }
dl { margin: auto 0 0; }
.award-card dl, .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
dd { margin: .1rem 0 0; font-weight: 700; }
.award-detail { max-width: 48rem; margin: 1rem auto; }
.award-detail h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.award-detail section { margin-top: 2.5rem; }
.back-link { display: inline-block; margin-bottom: 2rem; }
.status { display: inline-block; margin: 0 0 1.25rem; padding: .3rem .7rem; border-radius: 2rem; font-weight: 800; }
.status.open { background: #dcfce7; color: var(--success); }
.status.closed { background: #ffe4e6; color: var(--closed); }
.facts { margin: 2rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; }
.apply-button { display: inline-block; margin-top: 2rem; padding: .85rem 1.2rem; border-radius: .55rem; text-decoration: none; }
.closed-note { margin-top: 2rem; padding: 1rem; border-left: .3rem solid var(--closed); background: #fff1f2; }
.checked { margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }
.empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--muted); }
footer { padding: 1.5rem max(1rem, calc((100vw - 72rem) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 42rem) {
  .award-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .search-row button { width: 100%; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 0; }
  .award-card dl, .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .award-card { transition: transform 150ms ease, box-shadow 150ms ease; }
  .award-card:hover { transform: translateY(-2px); box-shadow: 0 .7rem 1.4rem rgb(23 35 61 / .09); }
}
