@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3efe6;
  --ink: #14130f;
  --muted: #5e574c;
  --line: #ddd6c8;
  --accent: #c24d16;
  --card: #fffdf8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 18px/1.55 "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}
a { color: inherit; }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}
pre {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  overflow: auto;
  border-radius: 8px;
}

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 52rem; }

header.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 0;
}
header.site .wordmark {
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-size: 1.15rem;
}
header.site nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}
header.site nav a { text-decoration: none; color: var(--muted); }
header.site nav a:hover { color: var(--ink); }
header.site nav a[aria-current="page"] { color: var(--ink); }

main.page { padding: 2.5rem 0 5rem; }
main.page > .wrap > h1:first-child { margin-top: 0; }

h1, h2, h3 {
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-weight: 650;
}
h1 { font-size: clamp(2.15rem, 6vw, 3.15rem); margin: 0 0 0.85rem; }
h2 { font-size: 1.35rem; margin: 2.75rem 0 0.7rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
p { margin: 0 0 1rem; }
p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.75rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 3rem; }
a.btn, .btn {
  display: inline-block;
  padding: 0.72rem 1.05rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
a.btn-primary { background: var(--ink); color: var(--paper); }
a.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
a.btn-primary:hover { background: #000; }
a.btn-ghost:hover { border-color: var(--ink); }

.grid {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 0;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
.card h3 { margin: 0 0 0.35rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card p strong { color: var(--ink); font-weight: 600; }

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
ol.steps li:last-child { border-bottom: 0; }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
ol.steps li strong { color: var(--ink); font-weight: 600; }

.pull {
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 2.5rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--accent);
}

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-top: 1px solid var(--line); padding: 1rem 0; }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { text-decoration: none; font-weight: 600; letter-spacing: -0.03em; font-size: 1.15rem; }
.post-list a:hover { color: var(--accent); }
.post-list time, .meta { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; font-weight: 400; }

article.post p { font-size: 1.05rem; }
article.post h2 { font-size: 1.25rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.95em; margin: 1rem 0; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.65rem 1.1rem; }
footer.site a { color: inherit; text-decoration: none; }
footer.site a:hover { color: var(--ink); }

.back { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.back:hover { color: var(--ink); }
