/* Minimalist blog stylesheet — one file, no build step, no dependencies.
   Serif for reading (headings + body), sans for wayfinding (nav + meta) —
   the contrast between the two does the "designed" work, not decoration. */

:root {
  --text: #232220;
  --muted: #8a8478;
  --bg: #faf9f6;
  --bg-raised: #f2f0ea;
  --accent: #9a5b3f;
  --rule: #e6e2d9;
  --max-width: 38rem;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e7e3da;
    --muted: #8f897c;
    --bg: #17161a;
    --bg-raised: #201f24;
    --accent: #d78a63;
    --rule: #2b2a2f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.5rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 0 6rem;
}

/* Header + nav are set in the sans stack, small and quiet, so the serif
   body copy reads as the main event rather than competing with the chrome. */
header.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 3.5rem;
}

header.site-header h1 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.9rem;
}

header.site-header h1 a {
  color: var(--text);
  text-decoration: none;
}

nav.site-nav {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.5rem;
  transition: color 0.15s ease;
}

nav.site-nav a:hover,
nav.site-nav a:focus-visible {
  color: var(--accent);
}

h1, h2, h3 {
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--text);
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

article.post a,
.post-excerpt a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

p {
  margin: 0 0 1.4rem;
}

/* Post list on the home page */
ul.post-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

ul.post-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

ul.post-list li:first-child {
  padding-top: 0;
}

ul.post-list a.post-title {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

ul.post-list a.post-title:hover,
ul.post-list a.post-title:focus-visible {
  color: var(--accent);
}

.post-meta,
time {
  display: block;
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

ul.post-list .post-meta {
  margin-bottom: 0.4rem;
}

.post-excerpt {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* Single post page */
article.post header {
  margin-bottom: 2.5rem;
}

article.post h1 {
  font-size: 2rem;
  margin: 0.5rem 0 0;
}

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

article.post pre {
  background: var(--bg-raised);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border-radius: 3px;
  font-size: 0.9rem;
  line-height: 1.5;
}

article.post code {
  font-family: var(--font-mono);
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}
