/* ---------------------------------------------------------
   Minimal static blog stylesheet
   No external requests: system fonts only, no webfonts/CDNs.
   Edit the tokens in :root to retheme the whole site.
--------------------------------------------------------- */

:root {
  --paper: #E6E3DF;        /* page background: unbleached paper */
  --ink: #201F1C;          /* primary text: carbon ink */
  --ink-muted: #6E6A61;    /* secondary text: faded ink */
  --rule: #D9D4C7;         /* hairline dividers */
  --accent: #4A5D6B;       /* links, marks: slate ink-blue */
  --accent-hover: #33424C;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: "SF Mono", "Consolas", "Menlo", "Liberation Mono", monospace;

  color-scheme: light dark; /* lets browsers theme scrollbars/form controls to match */
}

/* Dark palette: follows the visitor's OS/browser setting. 
   Dark paper, pale ink, lightened slate accent. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1A17;
    --ink: #E8E4DA;
    --ink-muted: #9A9588;
    --rule: #3A3832;
    --accent: #8FA7B8;
    --accent-hover: #B3C6D4;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* ---- Site header ---- */

.site-header { margin-bottom: 2.5rem; }

.site-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  font-style: italic;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.site-header .tagline {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
  margin-right: 1rem;
}
.site-nav a:hover, .site-nav a:focus { color: var(--accent); }

/* ---- The pilcrow mark: divider used instead of a generic <hr> ---- */

.mark {
  color: var(--rule);
  text-align: center;
  font-size: 1.1rem;
  margin: 2.5rem 0;
  user-select: none;
}

/* ---- Post list (index page) ---- */

ul.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.post-list li {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

ul.post-list time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

ul.post-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
ul.post-list a:hover, ul.post-list a:focus { color: var(--accent); text-decoration: underline; }

/* ---- Single post ---- */

article.post header { margin-bottom: 2rem; }

article.post .post-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.6rem;
}

article.post h1.post-title {
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

article.post p { margin: 0 0 1.3rem; }

article.post a { color: var(--accent); text-decoration: underline; }
article.post a:hover, article.post a:focus { color: var(--accent-hover); }

/* Blockquotes: prose quotations, stand out from body text.
   Left rule, marginal brackets scribes used to flag
   a passage. */
article.post blockquote {
  margin: 1.75rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
}
article.post blockquote p { margin: 0 0 0.75rem; }
article.post blockquote p:last-child { margin-bottom: 0; }
article.post blockquote footer {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--ink-muted);
}
article.post blockquote footer::before { content: "— "; }

/* Poems / verse: not italic, and line breaks
   preserved as typed — no manual <br> tags needed. */
article.post .poem {
  margin: 1.75rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  white-space: pre-line;
  line-height: 1.5;
}

/* On wide screens, post metadata is a margin note,
   sitting outside the text block like an annotation. */
@media (min-width: 900px) {
  .wrap { max-width: 780px; }
  article.post header { position: relative; }
  article.post .post-meta {
    position: absolute;
    left: -8.5em;
    top: 0.35em;
    width: 7em;
    text-align: right;
  }
}

/* ---- Footer ---- */

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ---- Accessibility floor ---- */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
