:root {
  color-scheme: light dark;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --border: #dfe3e0;
  --text: #1f2a24;
  --muted: #55605a;
  --brand: #2f6f5e;
  --brand-ink: #ffffff;
  --note-bg: #eef5f2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #131815;
    --surface: #1b221e;
    --border: #2c3630;
    --text: #e8eee9;
    --muted: #a3afa8;
    --brand: #6fbfa8;
    --brand-ink: #0f1f19;
    --note-bg: #1a2b25;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

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

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

header,
main,
footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  display: inline-block;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
}

nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
}

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

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

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

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.note {
  background: var(--note-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 24px 0;
}

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

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

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

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

tr:last-child td {
  border-bottom: 0;
}

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

footer a {
  margin-right: 14px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  th,
  td {
    padding: 8px 8px;
  }
}
