:root {
  --accent: #1f4e79;
  --text: #1c2430;
  --muted: #5a6472;
  --bg: #faf9f6;
  --tint: #eef2f6;
  --border: #d9dee5;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
.brand {
  font-family: Georgia, "Times New Roman", serif;
}

.shell {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 40rem) {
  .shell {
    padding-inline: 2rem;
  }
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 0.5rem;
  z-index: 20;
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
}

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

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease-in-out;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  text-decoration-color: currentColor;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration-color: currentColor;
}

main > section {
  margin-top: 4.5rem;
  scroll-margin-top: 4.5rem;
}

main > section.hero {
  margin-top: 0;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

main > section.page-head {
  margin-top: 0;
  padding-top: 4rem;
}

.measure {
  max-width: 44rem;
  margin-inline: auto;
}

h1 {
  max-width: 22ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.4rem + 2.8vw, 2.75rem);
  line-height: 1.15;
}

.lede {
  max-width: 58ch;
  margin: 0;
  font-size: 1.25rem;
  color: var(--muted);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 2rem;
  }
}

.card {
  padding: 1.5rem;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.card h2 {
  margin: 0 0 0.25rem;
  color: var(--accent);
}

.card .tag {
  margin: 0 0 1rem;
  color: var(--muted);
  font-style: italic;
}

.card p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--accent);
  color: #ffffff;
}

tbody th {
  font-weight: 600;
}

tbody td,
tbody th {
  border-bottom: 1px solid var(--border);
}

.map {
  margin: 0;
}

.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.map figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-form {
  margin-bottom: 2rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  filter: brightness(0.92);
}

.contact-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-after {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  color: var(--muted);
  text-align: center;
}
