:root {
  --bg: #f7f4ef;
  --fg: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #6f4d2a;
  --accent-hover: #563a1f;
  --border: #e5dfd5;
  --code-bg: #f1ece2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

p, ul, ol, table {
  margin: 1rem 0;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin: 0.4rem 0;
}

code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.92em;
}

pre {
  background: var(--code-bg);
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

th {
  background: var(--code-bg);
  font-weight: 600;
}

table.quickref th {
  width: 35%;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.next {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}

.checklist {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.checklist > li {
  counter-increment: step;
  padding: 1.5rem 0 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.checklist > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  display: block;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--fg);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
