:root {
  color-scheme: light;
  --paper: #f5f1e7;
  --paper-light: #fffdf7;
  --ink: #18364b;
  --ink-muted: #52636e;
  --rule: #c9bda7;
  --accent: #b74434;
  font-family: Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(rgba(24, 54, 75, 0.035) 1px, transparent 1px), var(--paper);
  background-size: 100% 2rem;
  color: var(--ink);
  line-height: 1.65;
}

main,
header,
footer {
  width: min(48rem, calc(100% - 2rem));
  margin-inline: auto;
}

header {
  padding: 3rem 0 1.5rem;
  border-bottom: 2px solid var(--ink);
}

main {
  padding: 2rem 0 4rem;
}

footer {
  padding: 1rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.45rem;
}

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

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.eyebrow,
.updated {
  color: var(--ink-muted);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px dashed var(--rule);
}

.card {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--paper-light) 88%, transparent);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
}

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