/* Piper Sona — blog styles. Hand-tuned, no framework. */

:root {
  --bg: #faf6f0;
  --ink: #2b2118;
  --muted: #7a6a5a;
  --accent: #8a2f3a;
  --accent-soft: #f0e2df;
  --rule: #e5dcd2;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

/* --- Masthead --- */

.masthead {
  border-bottom: 3px double var(--ink);
  padding-bottom: 1.25rem;
  margin-bottom: 2.25rem;
}

.masthead h1 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
  font-variant: small-caps;
}

.masthead .tagline {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* --- Post list --- */

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

.post-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-item a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

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

.post-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

/* --- Posts --- */

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

body.post .meta {
  color: var(--muted);
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

body.post article p,
body.post article blockquote,
body.post article h2,
body.post article h3 {
  margin: 0 0 1.25rem;
}

body.post article h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

body.post article blockquote {
  border-left: 3px solid var(--accent);
  margin-left: 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: #55483c;
  font-style: italic;
}

.back {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

.back a {
  color: var(--accent);
  text-decoration: none;
}

.back a:hover { text-decoration: underline; }

/* --- About --- */

body.about .lede {
  font-size: 1.15rem;
  font-style: italic;
  color: #55483c;
}

/* --- Footer --- */

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 3px double var(--ink);
  color: var(--muted);
  font-size: 0.8rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

::selection { background: var(--accent-soft); }

@media (max-width: 480px) {
  html { font-size: 17px; }
  .masthead h1 { font-size: 1.9rem; }
}
