:root {
  --paper: #ECECE3;
  --ink: #15140F;
  --accent: #2B6E6E;
  --muted: #7C7A6E;
  --line: #D4D2C4;
  --max: 68rem;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 2rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-color: var(--accent); color: var(--accent); }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  border: none;
  margin-right: auto;
}

.site-nav a { border: none; font-size: 0.85rem; letter-spacing: 0.02em; }
.site-nav a.is-current { color: var(--accent); }
.site-nav .sep { color: var(--muted); margin: 0 0.4rem; }

.site-main { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* Homepage gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.gallery-item { margin: 0; background: var(--paper); }
.gallery-item img { display: block; width: 100%; height: auto; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* Section (zines/comics) intro */
.section-intro { margin-bottom: 2rem; }
.section-intro h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 0.25rem;
}
.section-note { color: var(--muted); max-width: 42ch; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .series-grid { grid-template-columns: repeat(3, 1fr); }
}
.series-card {
  display: flex;
  flex-direction: column;
  border: none;
  gap: 0.5rem;
}
.series-card img, .no-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--line);
}
.no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}
.series-title { font-size: 0.85rem; }

/* Reader (comic / zine pages) */
.reader h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.reader-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--line);
}
.reader-page { margin: 0; max-width: 42rem; width: 100%; background: var(--paper); }
.reader-page img { display: block; width: 100%; height: auto; }
.page-count { margin-top: 1rem; color: var(--muted); font-size: 0.8rem; }

/* Blog */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.post-date { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0.3rem 0; }
.contact .sep { margin: 0 0.4rem; }

.empty-note { color: var(--muted); grid-column: 1 / -1; padding: 2rem 0; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s ease, border-color 0.15s ease; }
}
