:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6678;
  --line: #dfe4ec;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --accent: #2858d8;
  --accent-dark: #1d3f9c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

body {
  margin: 0;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

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

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.page,
.site-footer-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.94rem;
}

.page {
  margin-top: 40px;
  margin-bottom: 56px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 14px 40px rgb(30 49 87 / 7%);
}

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

h1,
h2,
h3 {
  line-height: 1.22;
}

h1 {
  margin: 0.2em 0 0.45em;
  font-size: clamp(2rem, 5vw, 3.35rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 2em;
  font-size: 1.35rem;
}

h3 {
  margin-top: 1.5em;
  font-size: 1.05rem;
}

p,
li {
  max-width: 76ch;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
}

.notice,
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--wash);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

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

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

code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: #edf1f8;
  font-size: 0.9em;
}

.site-footer {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer-inner {
  padding: 0 0 42px;
}

@media (max-width: 640px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    width: min(100% - 24px, 920px);
    margin-top: 20px;
  }
}
