:root {
  color-scheme: light dark;
  --ink: #122436;
  --muted: #52616f;
  --paper: #f7f4ec;
  --surface: #fffdf8;
  --line: #d8d2c4;
  --blue: #185f99;
  --blue-deep: #0b3558;
  --focus: #f0a33a;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--surface) 0, var(--paper) 26rem);
  font-size: 1rem;
  line-height: 1.7;
}

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.15em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.site-header,
main,
footer {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: var(--blue-deep);
  color: white;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.brand strong,
.brand small { display: block; }
.brand small { margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; }

nav { display: flex; gap: 1rem; }
nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }

.hero { padding-block: clamp(5rem, 12vw, 9rem); max-width: 52rem; }
.document { padding-block: 4rem 6rem; max-width: 48rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.18; }
h1 { max-width: 18ch; margin: 0 0 1.5rem; font-size: clamp(2.5rem, 7vw, 4.75rem); letter-spacing: -0.035em; }
.document h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { margin: 2.75rem 0 0.75rem; font-size: 1.5rem; }
p { margin: 0.75rem 0; }
.lead { max-width: 44rem; color: var(--muted); font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.updated { color: var(--muted); font-size: 0.9rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}
.button.primary { border-color: var(--blue-deep); background: var(--blue-deep); color: white; }

.contact-panel {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--blue);
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
}
.contact-panel h2 { margin-top: 0; }
.email { font-size: clamp(1rem, 4vw, 1.25rem); font-weight: 750; overflow-wrap: anywhere; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 34rem) {
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  nav { width: 100%; justify-content: space-between; }
  footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf2fa;
    --muted: #afc0cf;
    --paper: #091725;
    --surface: #0c1d2c;
    --line: #2c4358;
    --blue: #76baf0;
    --blue-deep: #154f7c;
    --focus: #ffc267;
  }
  body { background: linear-gradient(180deg, var(--surface), var(--paper) 26rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
