:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1c1a17;
  --muted: #5e5850;
  --border: #e4ded6;
  --accent: #a64b24;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1a18;
    --text: #f3efe9;
    --muted: #ada59b;
    --border: #3a352f;
    --accent: #e08a5f;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.65 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

header,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}

nav ul,
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.langs a[aria-current='true'] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  margin: 36px 0 8px;
}

.meta,
.muted {
  color: var(--muted);
  font-size: 15px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 20px 0;
}

.card h2 {
  margin-top: 0;
}

li + li {
  margin-top: 6px;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

footer nav ul {
  font-size: 14px;
  margin-bottom: 12px;
}
