:root {
  --cyan: #1fa9e1;
  --magenta: #e5157a;
  --yellow: #ffe500;
  --ink: #111;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --muted: #555;
  --border: 3px solid var(--ink);
  --shadow: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

img { display: block; max-width: 100%; }

/* Hero */

.hero {
  text-align: center;
  padding: 64px 16px 40px;
}

.logo {
  width: 120px;
  height: auto;
  margin: 0 auto 16px;
  mix-blend-mode: multiply;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 12px 0 0;
  font-size: 1.25rem;
  color: var(--muted);
}

/* Layout */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

h2 {
  display: inline-block;
  margin: 48px 0 24px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
}

.about p {
  margin: 0;
  font-size: 1.2rem;
  max-width: 60ch;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: var(--border);
}

.era {
  position: relative;
  padding-bottom: 40px;
}

.era:last-child { padding-bottom: 0; }

.era::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: var(--card);
  border: var(--border);
  transform: rotate(45deg);
}

.year {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card {
  display: grid;
  grid-template-columns: 220px 1fr;
  margin-bottom: 20px;
  background: var(--card);
  border: var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow) var(--shadow) 0 var(--accent);
}

.card:last-child { margin-bottom: 0; }

.c-cyan { --accent: var(--cyan); }
.c-magenta { --accent: var(--magenta); }
.c-yellow { --accent: var(--yellow); }

.thumb {
  border-right: var(--border);
  background: var(--accent);
  min-height: 160px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

a.thumb:hover img { transform: scale(1.04); }

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 3.5rem;
}

.face { font-size: 2.4rem; }

.body { padding: 20px 22px; }

.body h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.body h3 a { text-decoration: none; }

.body h3 a::after { content: " ↗"; font-size: 0.8em; }

.body h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

.body p { margin: 0; }

/* Mobile titles card */

.card.wide { display: block; }

.trio {
  list-style: none;
  margin: 0;
  padding: 0 22px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trio a {
  display: block;
  text-decoration: none;
  font-weight: 700;
}

.trio img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border: var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
}

.trio a:hover span { text-decoration: underline; }

/* Person page */

.crumb {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 0;
  font-weight: 500;
}

.crumb a { text-decoration: none; }

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

.about.prose p + p { margin-top: 1em; }

.reads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.reads li {
  padding: 14px 18px;
  background: var(--card);
  border: var(--border);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--accent);
}

.reads cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 1.15rem;
}

.reads span { color: var(--muted); }

.card.mini { display: block; }

.card.mini .body { padding: 14px 22px; }

.card.mini h3 { margin: 0; font-size: 1.2rem; }

.card.mini p { margin-top: 2px; }

.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  font-weight: 500;
}

.links a { text-decoration-thickness: 2px; }

.epigraph {
  margin: 0 0 1em;
  font-size: 1.35rem;
  font-weight: 700;
}

.plain { margin: 0 0 1em; padding-left: 1.2em; }

.plain li + li { margin-top: 6px; }

.about .skills { color: var(--muted); }

/* Footer */

footer {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  body { font-size: 17px; }

  .timeline { padding-left: 20px; }

  .era::before { left: -32px; }

  .card { grid-template-columns: 1fr; }

  .thumb {
    border-right: 0;
    border-bottom: var(--border);
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .trio { grid-template-columns: 1fr; }

  .reads { grid-template-columns: 1fr; }
}
