/* andrewzweibel.com archive — minimal styling */
:root {
  --bg: #fafaf7;
  --text: #1f2024;
  --muted: #6b6f76;
  --rule: #e4e2d9;
  --accent: #1f6feb;
  --accent-hover: #114a9c;
  --serif: ui-serif, Georgia, "Iowan Old Style", Charter, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#15161a; --text:#eaeae6; --muted:#8a8e95; --rule:#2c2e34; --accent:#79b8ff; --accent-hover:#a6cbff; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; }
figure { margin: 1.5rem 0; }
figure img { display: block; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0 1rem;
  margin-bottom: 2rem;
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.tagline {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: italic;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 1.5rem 0 2.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer p { margin: 0.4rem 0; }

/* Content */
h1, h2, h3, h4 {
  font-family: var(--sans);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h1 { font-size: 1.85rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; }

.intro h1 { font-size: 1.6rem; }
.intro p { color: var(--text); }

.post-header { margin-bottom: 1.5rem; }
.post-header .meta {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}
.cat { font-style: italic; }

.post-content p { margin: 1em 0; }
.post-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}
.post-content code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--rule); padding: 0.1em 0.35em; border-radius: 3px;
}
.post-content pre {
  font-family: var(--mono); background: var(--rule);
  padding: 0.75rem 1rem; border-radius: 4px;
  overflow-x: auto; font-size: 0.85em;
}

/* Lists of posts */
.post-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.post-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.post-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}
.see-more { font-family: var(--sans); margin-top: 1rem; }

/* Archive */
.archive .year { margin-top: 2.5rem; }
.archive .year h2 { display: flex; align-items: baseline; gap: 0.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem; }
.archive .count { color: var(--muted); font-size: 0.85rem; font-weight: normal; }

/* Comments */
.comments {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.comments h2 {
  font-size: 1rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 0;
}
.comment {
  border-left: 3px solid var(--rule);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: rgba(0,0,0,0.02);
  font-size: 0.95rem;
}
@media (prefers-color-scheme: dark) {
  .comment { background: rgba(255,255,255,0.03); }
}
.comment header {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex; gap: 0.75rem; align-items: baseline;
}
.comment header strong { color: var(--text); font-weight: 600; }
.comment-body p { margin: 0.5em 0; }

/* Mobile */
@media (max-width: 540px) {
  body { font-size: 17px; }
  .post-list li { grid-template-columns: 5.5rem 1fr; }
  .site-nav { width: 100%; margin: 0.5rem 0 0; }
}
