/* ------------------------------------------------------------
   Fonts — Newsreader (reading) + IBM Plex Mono (labels, meta)
   ------------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,400..600;1,6..72,400..600&display=swap");

/* ------------------------------------------------------------
   Tokens — change these and the whole site follows
   ------------------------------------------------------------ */
:root {
  --bg: #fcfcfc;
  --fg: #141414;      /* headings, links, active nav */
  --muted: #3f3f3f;   /* body text — darker than before; serifs need it */
  --faint: #8f8f8f;   /* nav, dates, secondary info */
  --rule: #e6e6e6;    /* list dividers */
  --underline: #c4c4c4;
  --measure: 620px;   /* column width */

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;            /* serifs read small; 18 ≈ Inter at 15 */
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 96px 24px 120px;
}

/* ------------------------------------------------------------
   Nav — mono, small caps-style labels
   ------------------------------------------------------------ */
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0 0 72px;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav a {
  color: var(--faint);
  text-decoration: none;
  transition: color .15s ease;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--fg); }

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */
h1 {
  margin: 0 0 24px;
  color: var(--fg);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Section labels in mono, like catalog headings */
h2 {
  margin: 64px 0 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p { margin: 0 0 20px; }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .15s ease;
}

a:hover { text-decoration-color: var(--fg); }

/* ------------------------------------------------------------
   Lists (books, records, buildings, works)
   ------------------------------------------------------------ */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.list li:first-child { border-top: 1px solid var(--rule); }

.list .title { color: var(--fg); }

.list .meta {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
  margin-top: 104px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   Small screens
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 56px 20px 88px; }
  nav ul { margin-bottom: 56px; }
  h1 { font-size: 26px; }
  .list li { flex-direction: column; gap: 2px; }
  .list .meta { white-space: normal; }
}
