:root {
  --bg: #f5f0e6;
  --surface: #fbf8f2;
  --text: #2f2d2a;
  --text-secondary: #5f5a53;
  --accent: #b5562f;
  --border: #e4dccd;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1d1b;
    --surface: #2a2724;
    --text: #ede7dc;
    --text-secondary: #b8b0a3;
    --accent: #e08a62;
    --border: #3a3631;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

header.site a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

header.site img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

header.site .name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

header.site .name small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

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

h1 { font-size: 32px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }

p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

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

.lede {
  font-size: 19px;
  color: var(--text-secondary);
}

.meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0;
}

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

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.button.primary {
  background: var(--accent);
  color: var(--bg);
}

.path {
  font-weight: 500;
}

footer.site {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

footer.site a { color: var(--text-secondary); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 6px; }
