/* crofty default theme — static, no-JS, no trackers. Restrained by design. */

:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #fdfdfc;
  --link: #1a1a1a;
  --measure: 38rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-header,
.content,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.site-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.site-header nav a { margin-left: 1rem; color: var(--muted); }

.content { padding-top: 1rem; padding-bottom: 4rem; }

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

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 1.9rem; margin: 1.5rem 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }

p, ul, ol, blockquote { margin: 0 0 1.1rem; }

blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  background: #f4f4f2;
  border-radius: 6px;
}

time { color: var(--muted); font-size: 0.85rem; }

.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.post-header time { display: block; margin-top: 0.25rem; }

.recent { margin-top: 3rem; }

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
