:root {
  --bg: #0a0a0a;
  --fg: #e8e6e1;
  --muted: #888;
  --accent: #c9a87a;
  --rule: #1f1f1f;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; }

.meta, nav, header.site-header, footer.site-footer {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.meta a, nav a, header.site-header a, footer.site-footer a {
  color: var(--muted);
  border-bottom: none;
}
.meta a:hover, nav a:hover, footer.site-footer a:hover { color: var(--accent); }

/* ---------- header / footer ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.75rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--fg);
  border-bottom: none;
  letter-spacing: 0.01em;
}
.site-header nav a { margin-left: 1.5rem; text-transform: lowercase; }

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 4rem 2rem 3rem;
  max-width: var(--max);
  margin: 6rem auto 0;
  border-top: 1px solid var(--rule);
}

main { display: block; }

/* ---------- hero ---------- */
.hero {
  margin: 2rem 0 4rem;
}
.hero img {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
}
.hero-link { display: block; border-bottom: none; }
.hero-link:hover .hero-text h1 { color: var(--accent); }
.hero-text {
  max-width: 65ch;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}
.hero-text h1 {
  font-size: 3rem;
  transition: color 120ms ease;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--fg);
}

/* ---------- asymmetric grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6rem 2.5rem;
  max-width: var(--max);
  margin: 6rem auto;
  padding: 0 2rem;
}

.card {
  display: block;
  grid-column: span 12;
}
.card-link { display: block; border-bottom: none; }
.card-link:hover .card-title { color: var(--accent); }
.card img {
  width: 100%;
  margin-bottom: 1.25rem;
}
.card-title {
  font-size: 1.6rem;
  transition: color 120ms ease;
}
.card .meta { margin-top: 0.5rem; }

@media (min-width: 720px) {
  .card:nth-child(4n+1) { grid-column: 1 / span 8; }
  .card:nth-child(4n+2) { grid-column: 8 / span 5; margin-top: 6rem; }
  .card:nth-child(4n+3) { grid-column: 3 / span 7; }
  .card:nth-child(4n+4) { grid-column: 1 / span 6; margin-top: 4rem; }
}

/* ---------- essay ---------- */
.essay {
  max-width: 65ch;
  margin: 4rem auto 6rem;
  padding: 0 1.5rem;
}
.essay-header { margin-bottom: 2.5rem; }
.essay-header h1 { font-size: 2.5rem; }
.essay-body { font-size: 1.05rem; }
.essay-body p { margin-bottom: 1.4em; }
.essay-body img { margin: 2rem 0; }

.exif {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.exif .sep { margin: 0 0.4em; }

/* ---------- pager (prev/next in series) ---------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.pager a {
  display: block;
  flex: 1;
  border-bottom: none;
  font-family: var(--sans);
}
.pager-next { text-align: right; }
.pager-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--fg);
  margin-top: 0.25rem;
}
.pager a:hover .pager-title { color: var(--accent); }

/* ---------- plain lists (archive, list pages) ---------- */
.plain-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}
.plain-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
}
.plain-list li a {
  font-family: var(--serif);
  font-size: 1.2rem;
  border-bottom: none;
}

.section-heading {
  margin-top: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

/* ---------- series index ---------- */
.series-index {
  max-width: var(--max);
  margin: 4rem auto 6rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
}
@media (min-width: 720px) {
  .series-index { grid-template-columns: 1fr 1fr; gap: 5rem 3rem; }
}
.series-card a { display: block; border-bottom: none; }
.series-card a:hover h2 { color: var(--accent); }
.series-card img { margin-bottom: 1.25rem; }
.series-card h2 { font-size: 1.8rem; transition: color 120ms ease; }
.series-blurb {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--fg);
  margin-top: 0.75rem;
}

/* ---------- mobile niceties ---------- */
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero-text h1 { font-size: 2rem; }
  .essay-header h1 { font-size: 2rem; }
  .site-header { padding: 1.25rem 1.25rem; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .site-header nav a { margin-left: 0; margin-right: 1.25rem; }
  .plain-list li { flex-direction: column; gap: 0.25rem; }
}
