:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #22201c;
  --muted: #6b665e;
  --line: #e4e0d8;
  --accent: #9a5b2e;
  --accent-soft: #f3e9e0;
  --radius: 10px;
  --maxw: 72ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Georgia, "Times New Roman", serif;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

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

nav.site a {
  margin-left: 18px;
  font-size: 15px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  color: var(--muted);
}

nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--text); }

nav.site a:first-child { margin-left: 0; }

main { padding: 40px 0 56px; }

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 21px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

h3 { font-size: 17px; margin: 24px 0 8px; }

p { margin: 0 0 16px; }

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}

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

.card h3 { margin-top: 0; }

.card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

.card a {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}

.tag {
  display: inline-block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

table.pairs {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}

table.pairs th,
table.pairs td {
  text-align: left;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.pairs th {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

table.pairs td:first-child { width: 42%; font-weight: 600; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
  margin: 0 0 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note p:last-child { margin-bottom: 0; }

.scroller { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--muted);
}

footer.site p { margin: 0 0 6px; }

@media (max-width: 520px) {
  h1 { font-size: 25px; }
  .bar { padding: 15px 20px; }
  nav.site a { margin-left: 0; margin-right: 16px; }
}
