:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --text: #111111;
  --muted: #5f5f5f;
  --link: #0f3e9a;
  --border: #dddddd;
  --accent: #f1f1f1;
  --shadow: none;
  --max-width: 860px;
  --body-font: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --display-font: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --nav-font: "Segoe UI", Tahoma, sans-serif;
  --section-pad: 0;
  --section-radius: 0;
  --section-border: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  font-family: var(--body-font);
  line-height: 1.62;
  color: var(--text);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

.site-header {
  border-bottom: none;
  margin-bottom: 1.6rem;
  padding-bottom: 0;
}

.site-title {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.02em;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--nav-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

section {
  margin: 0;
  padding: var(--section-pad);
  background: transparent;
  border: var(--section-border);
  border-radius: var(--section-radius);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

h1,
h2 {
  font-family: var(--display-font);
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

p {
  margin-top: 0;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.65rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-button {
  font: inherit;
  padding: 0.38rem 0.72rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  background: var(--accent);
  border-color: transparent;
}

.pub-type {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.08rem 0.34rem;
  border: 1px solid var(--border);
  border-radius: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
}

.pub-list li {
  margin-bottom: 0.6rem;
}

a {
  color: var(--link);
}

.site-main {
  gap: 2rem;
}

section:last-child {
  border-bottom: none;
}

@media (max-width: 700px) {
  .pub-type {
    white-space: normal;
  }
}
