:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --teal: #266b8c;
  --ink: #1a1a1a;
  --muted: #555;
  --line: #e6eef2;
  --role: #2a6f92;
  --nav-h: 72px;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.brand span {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #111;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  padding: 12px 4px;
}

.site-footer {
  flex-shrink: 0;
  background: var(--teal);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

@media (max-width: 991px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }
}
