:root {
  --bg: #faf6f2;
  --surface: #ffffff;
  --text: #2a1d1a;
  --muted: #6e5a52;
  --line: #e2d3c8;
  --brand: #4a1f3d;
  --accent: #b4553b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141011;
    --surface: #1c1617;
    --text: #f1e4da;
    --muted: #b9a69c;
    --line: #3a2f30;
    --brand: #e0b3cf;
    --accent: #e07e62;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 'DM Sans', system-ui, -apple-system, sans-serif;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

header a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #4a1f3d;
  color: #faf6f2;
  display: grid;
  place-items: center;
  font: italic 500 24px/1 'Fraunces', Georgia, serif;
}

.name {
  font: 500 20px/1 'Fraunces', Georgia, serif;
}

h1 {
  font: 500 36px/1.15 'Fraunces', Georgia, serif;
  margin: 0 0 8px;
  color: var(--brand);
}

h2 {
  font: 500 22px/1.3 'Fraunces', Georgia, serif;
  margin: 36px 0 8px;
  color: var(--brand);
}

.meta {
  color: var(--muted);
  margin: 0 0 24px;
}

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

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

.table {
  overflow-x: auto;
}

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

th,
td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cards a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
}

.cards strong {
  display: block;
  color: var(--brand);
  margin-bottom: 4px;
}

footer {
  margin-top: 56px;
  color: var(--muted);
  font-size: 14px;
}
