/* Reset the essentials */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:root {
  --ink: #1a1a1a;
  --paper: #fafaf7;
  --muted: #6b6b66;
  --rule: #e6e4dd;
  --accent: #a8391c;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e6e0;
    --paper: #16150f;
    --muted: #8a8880;
    --rule: #2a281f;
    --accent: #e78463;
  }
}

html { font-size: 18px; }

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main, header {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

header a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

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

main {
  padding-bottom: 5rem;
}

.posts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.posts a {
  color: var(--ink);
  text-decoration: none;
}

.posts a:hover { color: var(--accent); }

.posts time {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}

/* Post */
article h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

article .meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

article p {
  margin-bottom: 1.1rem;
}

article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

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

article em { font-style: italic; }
article strong { font-weight: 600; }

article blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 1.1rem;
}

article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--rule);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
