:root {
  --bg: #f6f0e3;
  --surface: #fffbf1;
  --border: #d9c9a6;
  --text: #1f2a44;
  --muted: #6b5e4a;
  --accent: #9a6b22;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1726;
    --surface: #15213a;
    --border: #2a3b5c;
    --text: #e6ecf5;
    --muted: #93a3bc;
    --accent: #f2c14e;
  }
}

* {
  box-sizing: border-box;
}

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 26px/1 Georgia, 'Times New Roman', serif;
}

.brand img {
  width: 24px;
  height: 36px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

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

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
}

h1 {
  font-size: 34px;
  margin: 32px 0 8px;
}

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

h3 {
  font-size: 19px;
  margin: 24px 0 4px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
}

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

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

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero img {
  width: 80px;
  height: 120px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
