@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #eef1f5;
  --ink: #121c33;
  --head: #061a86;
  --muted: #4d5a6e;
  --rule: #c9d1dc;
  --accent: #0684f4;
  --hero-bg: #08103f;
  --hero-ink: #f2f5f7;
  --hero-muted: #aab5d4;
  --hero-accent: #06d3f4;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1838;
    --ink: #e4e9f2;
    --head: #9ccbff;
    --muted: #a3afc8;
    --rule: #2a3770;
    --accent: #06a5f4;
    --hero-bg: #050920;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--paper); color: var(--ink); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Page frame: footer stays at the bottom on short pages */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
main:focus { outline: none; }

/* Masthead and hero: the one loud element on the page */
.masthead, .hero-band {
  background: var(--hero-bg);
  color: var(--hero-ink);
  --accent: var(--hero-accent);
}
@media (prefers-color-scheme: dark) {
  .hero-band { border-bottom: 1px solid var(--rule); }
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; flex-wrap: wrap;
  padding-block: 0.75rem;
  font-family: var(--sans);
}
.wordmark { display: block; line-height: 0; padding-block: 0.5rem; }
.wordmark img { display: block; height: clamp(2.5rem, 5vw, 3.25rem); width: auto; }
.masthead nav ul { list-style: none; margin: 0 -0.5rem; padding: 0; display: flex; }
.masthead nav a {
  display: inline-block; padding: 0.75rem 0.5rem;
  text-decoration: none; font-size: 1rem; color: var(--hero-muted);
}
.masthead nav a:hover { color: var(--hero-ink); text-decoration: underline; text-decoration-color: var(--accent); }
.masthead nav a[aria-current="page"] {
  color: var(--hero-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.hero { padding-block: clamp(2.5rem, 9vw, 7rem) clamp(3rem, 8vw, 6rem); }
.hero h1 {
  font-family: var(--sans);
  font-weight: 780;
  font-size: clamp(2.125rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 21ch;
  margin: 0;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--hero-muted);
  max-width: 52ch;
  margin: 0.75rem 0 0;
}
.hero-page { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero-page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }

/* Body */
.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

h2 {
  color: var(--head);
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-label { margin-bottom: 1rem; }

.prose { max-width: 64ch; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 2.25rem 0 0.5rem; }

/* Home: service index */
.service-names { list-style: none; margin: 0; padding: 0; max-width: 64ch; font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.service-names li { border-top: 1px solid var(--rule); }
.service-names li:last-child { border-bottom: 1px solid var(--rule); }
.service-names a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 0.9rem;
  color: var(--head); text-decoration: none;
}
.service-names a::after { content: "\203A"; color: var(--accent); font-size: 1.4em; line-height: 0.8; }
.service-names a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* Services page */
.services { max-width: 64ch; }
.service { padding-block: 1.5rem; border-top: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.service p { margin: 0; }
.more { font-family: var(--sans); font-weight: 600; margin: 2rem 0 0; }
.prose .more { margin-top: 1.5rem; }

/* About page */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) {
  .about-grid { grid-template-columns: minmax(0, 64ch) minmax(14rem, 18rem); gap: 4rem; align-items: start; }
}
.facts { font-family: var(--sans); font-size: 1rem; line-height: 1.35; border-top: 3px solid var(--head); padding-top: 1rem; }
.facts h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li { padding-block: 0.6rem; border-bottom: 1px solid var(--rule); }
.facts a { font-weight: 600; }
.facts span { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 0.15rem; }

/* Contact */
.contact-list { list-style: none; margin: 0.75rem 0 0; padding: 0; font-family: var(--sans); font-weight: 600; }
.contact-list a { display: inline-block; padding-block: 0.6rem; }

/* Footer */
.footer {
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; }
.footer p { margin: 0; }
.footer ul { list-style: none; margin: 0 -0.5rem; padding: 0; display: flex; flex-wrap: wrap; }
.footer ul a { display: inline-block; padding: 0.6rem 0.5rem; color: var(--ink); }
.facts a, .more a { display: inline-block; padding-block: 0.4rem; }
.facts li { padding-block: 0.25rem; }
.contact-list li { padding-block: 0.6rem; }
.contact-list li a { padding-block: 0; }
.handle { font-weight: 600; }
.contact-list li:has(> a:only-child) a { padding-block: 0.6rem; }

/* Contact layout */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: minmax(0, 64ch) 14rem; gap: 4rem; align-items: start; }
}
.contact-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1rem; padding-block: 0.35rem; }
.contact-list .label { font-weight: 400; color: var(--muted); min-width: 5.5rem; }
.contact-list li a { padding-block: 0.4rem; }
.qr { margin: 0; font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }
.qr a { display: block; line-height: 0; }
.qr img { width: 100%; max-width: 14rem; height: auto; border-radius: 6px; border: 1px solid var(--rule); }
.qr figcaption { margin-top: 0.6rem; max-width: 14rem; }
@media (max-width: 51.99rem) { .qr { display: none; } }

/* Single-page sections */
.section { padding-block: clamp(2.75rem, 7vw, 5rem); scroll-margin-top: 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-title {
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.section-intro { margin: 0 0 2rem; color: var(--muted); max-width: 64ch; }
.section .about-grid, .section .contact-grid { margin-top: 1.5rem; }
h3 {
  color: var(--head);
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.008em;
  margin: 0 0 0.5rem;
}
.prose h3 { margin: 2.25rem 0 0.5rem; }
.facts h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.qr img { border: 0; border-radius: 0; }

/* Services grid */
.services { max-width: none; display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
.service, .service:first-child { padding: 1.25rem 0 1.75rem; border-top: 2px solid var(--rule); }
.service h3 { margin-bottom: 0.6rem; }
.service p { max-width: 62ch; }
@media (min-width: 52rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 3rem; }
}
