/* Quiet Rituals — minimal editorial theme */
:root {
  --bg: #fbf8f3;
  --ink: #2c2a26;
  --muted: #6b6660;
  --accent: #8a6f47;
  --rule: #e8e2d6;
  --card: #ffffff;
  --max: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Hoefler Text", "Baskerville", "Libre Caslon Text", Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 111, 71, 0.45);
}
a:hover {
  text-decoration-color: var(--accent);
}
img, svg { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wide { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  background: var(--bg);
}
.site-header .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-family: "Iowan Old Style", "Hoefler Text", Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); font-style: italic; font-weight: 400; }
.site-header nav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}

/* Article list */
.list {
  padding: 40px 0 60px;
}
.list h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 24px;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.card:last-child { border-bottom: none; }
.card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.card h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 6px;
}
.card h3 a { color: var(--ink); }
.card .meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 8px;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(44, 42, 38, 0.3); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 560px) {
  .card { grid-template-columns: 88px 1fr; gap: 14px; }
  .card h3 { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  .hero p.lede { font-size: 18px; }
}

/* Article */
article.post { padding: 50px 0 60px; }
article.post .meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 12px;
}
article.post h1 {
  font-size: 40px;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
article.post .subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 30px;
  font-style: italic;
}
article.post .feature {
  margin: 24px 0 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--card);
}
article.post h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  line-height: 1.3;
}
article.post h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}
article.post p { margin: 0 0 18px; }
article.post blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--muted);
}
article.post ul, article.post ol { padding-left: 22px; margin: 0 0 18px; }
article.post li { margin-bottom: 8px; }
article.post figure { margin: 24px 0; text-align: center; }
article.post figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Page (static pages like about, privacy) */
.page { padding: 56px 0 72px; }
.page h1 {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.012em;
}
.page .meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 36px;
}
.page h2 {
  font-size: 20px;
  margin: 40px 0 6px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.page h3 {
  font-size: 17px;
  margin: 28px 0 4px;
  line-height: 1.35;
}
.page p { margin: 0 0 20px; }
.page p + p { text-indent: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 48px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.site-footer .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer a {
  color: var(--muted);
  margin-left: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.site-footer a:hover { color: var(--ink); text-decoration: none; }

/* Prev/Next */
.pager {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}
.pager a { color: var(--muted); text-decoration: none; }
.pager a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* SVG illustration scale */
.feature svg { width: 100%; height: auto; display: block; }
.thumb svg { width: 100%; height: 100%; display: block; }
