:root {
  /* Accessibility utility */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

  --bg: #f4f2ea;
  --surface: #fffef8;
  --ink: #1d1f24;
  --muted: #44505c;
  --brand: #0b5fff;
  --brand-strong: #0647be;
  --accent: #116149;
  --focus: #ff8a00;
  --card-shadow: 0 14px 36px rgba(14, 30, 50, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -200px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

a {
  color: var(--brand-strong);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid rgba(29, 31, 36, 0.12);
  background: var(--surface);
}

.header-inner,
.main,
.site-footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.wordmark {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  font-weight: 700;
}

.main {
  padding: 2rem 0 3rem;
}

.hero {
  background: #f9f7f0;
  border: 1px solid rgba(17, 97, 73, 0.24);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

.hero h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.2;
  font-family: "Lora", Georgia, serif;
}

.hero p {
  max-width: 70ch;
}

.action-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-strong);
}

.btn.secondary {
  border-color: var(--brand);
  color: var(--brand-strong);
  background: #f5f9ff;
}

.grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid rgba(29, 31, 36, 0.14);
  border-radius: var(--radius);
  padding: 1rem;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin-bottom: 0.6rem;
}

.card a {
  font-weight: 700;
}

.panel {
  margin-top: 1.2rem;
  background: #fefcf7;
  border: 1px solid rgba(29, 31, 36, 0.14);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.panel h2 {
  margin-top: 0;
  font-family: "Lora", Georgia, serif;
}

.path-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid rgba(29, 31, 36, 0.16);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid h2 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--ink);
}

.footer-grid ul {
  margin: 0;
  padding-left: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
