/* ---------------------------------------------------
   Theme variables — "Neutral paper"
   Swap this block for the "Warm archive" theme to preview:
   see the comment at the bottom of this file.
--------------------------------------------------- */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #767676;
  --border: #e6e6e6;
  --accent: #1a1a1a;

  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 640px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

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

/* Site header */

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

.home-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: none;
}

.site-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.site-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
}

/* Post list */

.list-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.post-list {
  list-style: none;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list-main {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.post-list a {
  border-bottom: 1px solid var(--border);
}

.post-list a:hover {
  opacity: 0.6;
}

.post-list-date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.5em;
}

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

/* Footer */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Individual post pages */

.post-back {
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.post-back a {
  color: var(--muted);
  border-bottom: none;
}

.post-back a:hover {
  color: var(--text);
}

.post-tags {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.post-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.post-meta .meta-sep {
  display: inline-block;
  margin: 0 0.5em;
}

.post-body {
  font-size: 1rem;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre {
  margin-bottom: 1.25rem;
}

.post-body h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
}

.post-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.post-body img {
  max-width: 100%;
  border-radius: 2px;
}

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

.post-body pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--border);
  border-radius: 4px;
}

.post-body pre code {
  background: none;
  padding: 0;
}

/* Figures & captions */

.post-body figure {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.post-body figure img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.post-body figure.full-width img {
  max-width: 100%;
}

.post-body figure.small img {
  max-width: 300px;
}

.post-body figure.wide img {
  max-width: 470px;
}

.post-body figcaption {
  max-width: 420px;
  margin: 0.6rem auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.post-body figure.full-width figcaption {
  max-width: 100%;
}

.post-body figure.small figcaption {
  max-width: 300px;
}

.post-body figcaption .source-line {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.post-body .image-pair {
  display: flex;
  gap: 1rem;
  max-width: 420px;
  margin: 2rem auto 0;
}

.post-body .image-pair.full-width {
  max-width: 100%;
}

.post-body .image-pair figure {
  flex: 1;
  margin: 0;
}

.post-body .figcaption-standalone {
  max-width: 420px;
  margin: 0.6rem auto 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-body .figcaption-standalone.full-width {
  max-width: 100%;
}

.post-body .image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 0.6rem;
  max-width: 460px;
  margin: 2.4rem auto 2rem;
}

.post-body .image-grid figure {
  margin: 0;
}

.post-body .image-grid figure img {
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.post-body .image-grid figcaption {
  max-width: 100%;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .post-body .image-pair {
    flex-direction: column;
  }
}

.post-body sup {
  font-size: 0.7em;
}

.post-body sup a {
  border-bottom: none;
}

.post-body sup[id],
.post-body .source-line a[id] {
  scroll-margin-top: 1.5rem;
}

.post-body blockquote p {
  margin-bottom: 0;
}

.post-body blockquote footer {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-style: normal;
}

/* Sources / bibliography */

.post-body .sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-body .sources h2 {
  margin-top: 0;
}

.post-body .sources ol {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-body .sources li {
  margin-bottom: 0.6rem;
  padding-left: 1.25rem;
  text-indent: -1.25rem;
}

.post-body .sources a {
  color: var(--muted);
}

.post-body .sources a:hover {
  color: var(--text);
}

.post-body .sources .src-num {
  display: inline;
  text-decoration: none;
  border-bottom: none;
  font-variant-numeric: tabular-nums;
}

.post-body .sources .src-num:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------
   "Warm archive" theme — to preview, replace the :root
   block at the top of this file with the block below.

:root {
  --bg: #f6f1e7;
  --text: #2a2521;
  --muted: #8a8175;
  --border: #e2d9c6;
  --accent: #2a2521;

  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 640px;
}

--------------------------------------------------- */
