:root {
  --ink: #1f2933;
  --muted: #5f6c78;
  --nav: #222;
  --nav-hover: #fff;
  --surface: #f4f6f8;
  --card: #fff;
  --line: #d9e0e6;
  --accent: #2b6cb0;
  --accent-dark: #1f4f82;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-dark); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .75rem 1rem;
  color: #fff;
  background: #000;
}
.skip-link:focus { left: .75rem; top: .75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.nav-wrap {
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #d8d8d8;
  text-decoration: none;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand:hover, .brand:focus { color: #fff; }

.menu-toggle {
  display: none;
  border: 1px solid #666;
  border-radius: 4px;
  padding: .45rem .6rem;
  color: #eee;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
}
.nav-links a {
  min-height: 52px;
  padding: 0 1rem;
  color: #bbb;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: var(--nav-hover);
  background: #171717;
}

main {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  flex: 1;
}

.hero {
  margin: 2rem 0;
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: 7px;
  background: #eceff1;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.hero p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.page {
  max-width: 760px;
  padding: 2.25rem 0 3rem;
}
.page h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
}
.page h2 { margin-top: 2rem; }

.card {
  margin: 1.5rem 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

address {
  margin: 0;
  font-style: normal;
}
.contact-row + .contact-row { margin-top: .7rem; }
.contact-label { font-weight: 650; }

.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid #eee;
  color: var(--muted);
  font-size: .95rem;
}

.not-found {
  min-height: 55vh;
  display: grid;
  align-content: center;
  justify-items: start;
}
.button {
  display: inline-block;
  margin-top: .75rem;
  padding: .65rem 1rem;
  border-radius: 5px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
}
.button:hover, .button:focus { color: #fff; background: var(--accent-dark); }

@media (max-width: 680px) {
  .nav-wrap { flex-wrap: wrap; padding: .55rem 0; }
  .menu-toggle { display: block; }
  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    padding-bottom: .35rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 42px; padding: 0 .75rem; }
  .hero { margin-top: 1rem; }
}

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