:root {
  --burgundy: #6B1F2E;
  --ink: #1F1613;
  --mute: #6F6461;
  --cream: #FAF3EE;
  --outline: #E6DCD2;
  --peach: #E6A77B;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header {
  border-bottom: 1px solid var(--outline);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy), var(--peach));
}

.brand-name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
  color: var(--burgundy);
}

.updated {
  color: var(--mute);
  font-size: 14px;
  margin: 0;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: var(--ink);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--ink);
}

p, li {
  color: var(--ink);
  margin: 8px 0;
}

ul, ol {
  padding-left: 24px;
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
}

code {
  background: var(--outline);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--outline);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--burgundy);
  background: rgba(107, 31, 46, 0.04);
}

.callout {
  background: rgba(230, 167, 123, 0.12);
  border-left: 3px solid var(--peach);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  color: var(--mute);
  font-size: 13px;
}

footer a {
  color: var(--mute);
}

nav.toc {
  background: white;
  border: 1px solid var(--outline);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 32px;
}

nav.toc ol {
  margin: 0;
  padding-left: 20px;
}

nav.toc li {
  margin: 4px 0;
  font-size: 14px;
}

@media (max-width: 560px) {
  .container {
    padding: 32px 20px 64px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 19px;
  }
}

@media print {
  body {
    background: white;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  nav.toc {
    display: none;
  }
}
