:root {
  --background: #fff;
  --surface: #f7f7f7;
  --border: #d7d7d7;
  --text: #111;
  --text-soft: #333;
  --link: #0047b3;
  --link-hover: #00378a;
  --focus: #ffbf47;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

p,
ul {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
  z-index: 10;
}

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

.site-shell {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-header,
.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-role {
  margin-top: 0.3rem;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
}

.hero {
  padding: 3rem 0 2rem;
}

.not-found {
  max-width: 42rem;
  padding: 3rem 0 2rem;
}

.eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero h1,
.section h2,
.panel h3 {
  margin: 0;
  line-height: 1.2;
}

.hero h1 {
  max-width: 16ch;
  margin-top: 0.75rem;
  font-size: clamp(2.3rem, 6vw, 4.25rem);
}

.intro {
  max-width: 44rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-soft);
}

.back-link {
  margin-top: 1.25rem;
  font-weight: 600;
}

.section {
  padding: 2rem 0;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel h3 {
  font-size: 1.2rem;
}

.panel p + p {
  margin-top: 0.9rem;
}

.panel-wide {
  grid-column: 1 / -1;
}

.link-list {
  padding-left: 1.25rem;
}

.link-list li + li {
  margin-top: 0.6rem;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

@media (width <= 700px) {
  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }
}

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