/* One small stylesheet. Colors, radii and type follow the Preface brand guide (v1.0).
   No scripts, no third-party files. */
/* Manrope, the brand font (SIL Open Font License, static/fonts/OFL.txt). Self-hosted, Latin subset. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/static/fonts/manrope.woff2") format("woff2");
}
:root {
  --ink: #000422;          /* Primary 03 */
  --teal: #2b7d80;         /* Primary 04: text, links and buttons (4.8:1 on white) */
  --teal-light: #71c8cc;   /* Primary 01: accents only, never text */
  --paper: #fff;
  --panel: #f9faff;
  --cloud: #edeff7;        /* Grayscale 01 */
  --line: #d3d6e0;         /* Grayscale 02 */
  --steel: #bcbfcc;
  --graphite: #6e7180;     /* Grayscale 05: secondary text (4.9:1 on white) */
  --arsenic: #40424d;
  --danger: #a3262a;
  --radius: 1.25rem;
  --radius-field: 0.75rem;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.65 var(--font); -webkit-text-size-adjust: 100%;
}
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

.site-head { border-bottom: 1px solid var(--line); position: relative; }
.site-head::after {  /* the brand gradient, as a hairline */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}
.site-head .wrap { display: flex; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 2.25rem; width: auto; }
.section-name { color: var(--graphite); font-weight: 600; padding-left: 1rem; border-left: 1px solid var(--line); line-height: 1.6; }
main { padding: 2.5rem 0 4.5rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 0.6rem; }
h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; margin: 2rem 0 0.5rem; }
.lede { color: var(--arsenic); margin: 0; max-width: 46rem; font-size: 1.1rem; }

/* The list page opens with one bordered panel, as the brand guide does. */
.hero { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); margin: 0 0 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 1.75rem 0 0; }
.filters label { display: grid; gap: 0.3rem; font-size: 0.875rem; font-weight: 600; color: var(--arsenic); flex: 1 1 10rem; }
.filters a { align-self: center; font-size: 0.95rem; font-weight: 600; }

/* The list: the department sits in its own column, so the grouping is the layout. */
.board { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.group { display: grid; grid-template-columns: 13rem 1fr; gap: 0.5rem 2rem; padding: 1.5rem clamp(1.25rem, 3vw, 2rem); }
.group + .group { border-top: 1px solid var(--line); }
.group h2 { margin: 0; font-size: 1rem; color: var(--graphite); font-weight: 700; }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.jobs a.title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.jobs a.title:hover { color: var(--teal); text-decoration: underline; }
.meta { margin: 0.1rem 0 0; color: var(--graphite); font-size: 0.95rem; }
.empty { padding: 2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); max-width: 36rem; }

/* A job: facts on the left, the description or the form on the right. */
.back { display: inline-block; margin: 0 0 1.5rem; font-size: 0.95rem; font-weight: 600; }
.job { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem 3rem; margin-top: 2rem; }
.facts { margin: 0; align-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.facts dt { font-size: 0.85rem; color: var(--graphite); font-weight: 600; }
.facts dd { margin: 0 0 1rem; font-weight: 600; }
.facts dd:last-child { margin-bottom: 0; }
.tabs { display: flex; gap: 0.5rem; margin: 0 0 1.75rem; }
.tabs a { padding: 0.5rem 1.1rem; color: var(--arsenic); text-decoration: none; border-radius: 999px; font-weight: 600; border: 1px solid var(--line); }
.tabs a:hover { background: var(--cloud); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.prose { max-width: 40rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }

/* The form. */
form.apply { max-width: 34rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field > label { font-weight: 700; }
.field small { color: var(--graphite); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--paper);
  border: 1px solid var(--graphite); border-radius: var(--radius-field); padding: 0.7rem 0.9rem;
}
textarea { min-height: 7rem; resize: vertical; }
input[type="file"] {
  width: 100%; font: inherit; padding: 1.5rem 1rem; background: var(--panel);
  border: 2px dashed var(--steel); border-radius: var(--radius); cursor: pointer;
}
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; margin-right: 1rem; padding: 0.5rem 1.1rem;
  border: 1px solid var(--teal); border-radius: 999px; background: var(--paper); color: var(--teal); cursor: pointer;
}
.invalid input, .invalid textarea { border-color: var(--danger); }
.error { color: var(--danger); font-weight: 600; margin: 0; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius-field); border: 1px solid #e6b8ba; background: #fcf1f1; max-width: 34rem; }
button, .button {
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block;
  background: var(--teal); color: var(--paper); border: 0; border-radius: 999px; padding: 0.8rem 1.75rem;
}
button:hover, .button:hover { background: var(--ink); }
.fine { color: var(--graphite); font-size: 0.875rem; max-width: 34rem; margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-foot { background: var(--cloud); padding: 1.75rem 0 2.5rem; color: var(--arsenic); font-size: 0.9rem; }
.site-foot p { margin: 0; max-width: 46rem; }

@media (max-width: 44rem) {
  .group { grid-template-columns: 1fr; padding-block: 1.25rem; }
  .job { grid-template-columns: 1fr; gap: 1rem; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  main { padding-top: 1.75rem; }
  .brand img { height: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
