/* Pagekit — print-inspired base styles.
   System fonts only; no external resources. One file for the whole site. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #1f2428;
  --muted: #4d565f;
  --line: #d9d4c9;
  --accent: #0a5a8a;
  --accent-deep: #08476d;
  --band: #17242b;
  --band-ink: #f2f6f8;
}

.wrap { max-width: 45rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Links and focus ------------------------------------------------- */

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--card);
  color: var(--accent-deep);
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  z-index: 20;
}

.skip-link:focus { left: 0.5rem; }

/* ---- Header ----------------------------------------------------------- */

.site-header {
  background: var(--band);
  color: var(--band-ink);
  border-bottom: 3px solid var(--accent);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  color: var(--band-ink);
  text-decoration: none;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand:hover { color: #ffffff; }

.brand-tag {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9c6cd;
  margin-top: 0.1rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--band-ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: #ffffff; border-bottom-color: var(--accent); }

.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ---- Main ------------------------------------------------------------- */

main { padding: 2.5rem 0 3.5rem; }

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: 1.9rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; text-wrap: pretty; }

li { text-wrap: pretty; }

.lede { font-size: 1.1rem; color: var(--ink); }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* ---- Home -------------------------------------------------------------. */

.facts {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.facts li {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0.25rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.facts strong {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  white-space: nowrap;
  min-width: 11rem;
}

.steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.steps li { margin-bottom: 0.6rem; }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.25rem 0.75rem;
  margin: 2rem 0;
}

.callout-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

/* ---- Legal pages ------------------------------------------------------- */

.legal dt {
  font-weight: 700;
  margin-top: 1.4rem;
}

.legal dd { margin: 0.25rem 0 0; }

address { font-style: normal; }

/* ---- Contact form ------------------------------------------------------ */

.form-fields {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.form-fields label { display: block; font-weight: 600; margin-bottom: 0.3rem; }

.form-fields input,
.form-fields select,
.form-fields textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid #7d8791;
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
  width: 100%;
}

.form-fields textarea { min-height: 9rem; resize: vertical; }

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

button[type="submit"] {
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--accent-deep); }

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--band);
  color: var(--band-ink);
  border-top: 3px solid var(--accent);
  padding: 2rem 0 2.5rem;
  font-size: 0.92rem;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.site-footer a { color: #cfe0e9; }

.site-footer a:hover { color: #ffffff; }

.footer-line {
  border-top: 1px solid #31424b;
  padding-top: 1rem;
  margin-top: 1rem;
  color: #b9c6cd;
}

/* ---- 404 --------------------------------------------------------------- */

.code-404 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
  line-height: 1;
}

@media (max-width: 30rem) {
  .facts li { display: block; }
  .facts strong { min-width: 0; }
  h1 { font-size: 1.55rem; }
}
