:root {
  color-scheme: light;
  --ink: #142338;
  --muted: #526277;
  --line: #d9e0e8;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --accent: #265f85;
  --accent-dark: #17445f;
  --warning-bg: #fff7dd;
  --warning-border: #c79000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
  color: var(--ink);
  line-height: 1.65;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #eef4f8 0, var(--paper) 18rem);
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

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

a:focus-visible {
  outline: 3px solid #e7a928;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}

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

.site-header,
.site-footer {
  border-color: var(--line);
  border-style: solid;
  border-width: 0;
  background: rgba(255, 255, 255, 0.94);
}

.site-header {
  border-bottom-width: 1px;
}

.site-footer {
  border-top-width: 1px;
  margin-top: 4rem;
}

.shell {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
}

.nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 1rem;
}

.brand {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
  margin-right: auto;
}

.brand span {
  color: var(--accent);
  font-weight: 450;
}

main {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.content {
  max-width: 48rem;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0.25rem 0 1.25rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin-top: 2.75rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 48rem;
}

.notice,
.review-note {
  border-left: 4px solid var(--accent);
  background: #edf6fb;
  margin-block: 1.5rem;
  padding: 1rem 1.2rem;
}

.review-note {
  border-left-color: var(--warning-border);
  background: var(--warning-bg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-block: 2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
  padding: 1.25rem;
}

.card h2,
.card h3 {
  margin-top: 0;
}

code {
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-nav {
  font-size: 0.95rem;
}

@media (max-width: 38rem) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    margin-right: 0;
  }
}

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