@import url(/fonts/fonts.css);

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #100b06;
  --muted: #5c554d;
  --rule: #e8e1d6;
  --accent: #e8471d;
  --accent-strong: #ff4d00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a08;
    --surface: #17130f;
    --ink: #f5f1ea;
    --muted: #b3aa9f;
    --rule: #2b241d;
    --accent: #ff7a45;
    --accent-strong: #ff6b3d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.site-header,
main,
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.wordmark {
  font-family: 'Archivo', 'Archivo Black', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
  text-decoration: none;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-left: 18px;
}

.site-header nav a:hover,
.site-footer a:hover { color: var(--ink); }

main { padding-top: 16px; padding-bottom: 56px; }

h1 {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
}

.lede {
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 32px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

p, ul, ol { margin: 0 0 16px; }

ul, ol { padding-left: 22px; }

li { margin-bottom: 8px; }

li::marker { color: var(--accent); }

strong { font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--rule);
  overflow-wrap: anywhere;
}

a { color: var(--accent); text-underline-offset: 2px; }

.caps { text-transform: uppercase; font-size: 15px; letter-spacing: 0.01em; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 24px;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a { margin-left: 0; margin-right: 18px; font-size: 14px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-header nav a { margin-left: 12px; font-size: 14px; }
  h2 { font-size: 20px; }
}
