:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #565d6e;
  --accent: #2d5be3;
  --accent-text: #ffffff;
  --border: #dcd8cf;
  --banner-bg: #fff3cd;
  --banner-text: #5c4400;
  --banner-border: #e6c76a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161c;
    --surface: #1d2029;
    --text: #eceef3;
    --muted: #a8aebd;
    --accent: #8fa8ff;
    --accent-text: #10131a;
    --border: #353a48;
    --banner-bg: #3a3014;
    --banner-text: #f3dc9a;
    --banner-border: #6b5a22;
  }
}

* {
  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;
}

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

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

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

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

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

nav a {
  margin-right: 16px;
  color: var(--text);
}

nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 32px 0 48px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.3rem;
  margin: 32px 0 8px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0;
}

.draft {
  background: var(--banner-bg);
  color: var(--banner-text);
  border: 1px solid var(--banner-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 24px;
}

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

.card h2,
.card h3 {
  margin-top: 0;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.placeholder {
  background: var(--banner-bg);
  color: var(--banner-text);
  padding: 0 4px;
  border-radius: 4px;
}

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .wrap {
  padding-top: 20px;
  padding-bottom: 28px;
}

footer.site a {
  margin-right: 16px;
  white-space: nowrap;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}

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