:root {
  --blue: #394ac8;
  --cream: #fbf7ed;
  --orange: #ff916b;
  --lilac: #d6cff5;
  --ink: #292b35;
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 14px/1.5 Arial, Helvetica, sans-serif;
}

.site {
  max-width: 1440px;
  margin-inline: auto;
}

h1, h2, h3, p {
  margin: 0;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }

.skip-link {
  position: absolute;
  top: 10px;
  left: 18px;
  z-index: 5;
  padding: 12px 18px;
  background: var(--cream);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.top {
  padding: 14px 38px;
  display: flex;
  justify-content: flex-end;
}

.top nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 26px;
}

.top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-underline-offset: 7px;
}

.top a:hover, .top a[aria-current="page"] { text-decoration: underline; }
.top a[aria-current="page"] { color: var(--blue); text-decoration-thickness: 2px; }

.footer {
  padding: 18px 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  font-size: 11px;
}

.footer a { display: inline-flex; align-items: center; min-height: 44px; }

.not-found {
  padding: 60px 30px;
  background: var(--lilac);
  min-height: 70vh;
}

.not-found h1 {
  margin: 30px 0;
  font: 400 clamp(36px, 7vw, 76px)/1.05 Georgia, serif;
  letter-spacing: -2px;
}

.not-found a { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 760px) {
  .top, .footer { padding-inline: 25px; }
}

@media (max-width: 520px) {
  .top { padding: 8px 18px; justify-content: flex-start; }
  .top nav { gap: 0 20px; }
  .footer { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
