:root {
  --bg: #f4efe4;
  --ink: #2a241c;
  --muted: #6b6256;
  --card: #fbf8f1;
  --line: #d9d0c0;
  --accent: #2f6a56;
  --accent-ink: #f7f4ea;
  --copper: #8a5a32;
  --mono: "Geist Mono", ui-monospace, monospace;
  --sans: "Source Sans 3", ui-sans-serif, sans-serif;
  --serif: Fraunces, ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

body { min-height: 100vh; }

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

header, main, footer {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
}

header a { color: inherit; text-decoration: none; }

nav { display: flex; gap: 1rem; font-size: 0.95rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.4rem; margin: 1.5rem 0 0.75rem; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 2.5rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

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

article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

article h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }

article p { margin: 0; color: var(--muted); }

pre, code { font-family: var(--mono); font-size: 0.86rem; }

pre {
  background: #231e18;
  color: #f4efe4;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
}

footer {
  padding: 3rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.note { color: var(--copper); }
