/* publications page — readable, graphics-community style */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #fbfaf7;
}

body {
  font-family: "Charter", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a1a;
  background: #fbfaf7;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 28px 96px 28px;
}

a {
  color: #1a4fa0;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 79, 160, 0.3);
}

a:hover {
  color: #0b2d66;
  border-bottom-color: #0b2d66;
}

/* ============ Header ============ */

.back {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: #666;
  border-bottom: none;
  margin-bottom: 28px;
}

.back:hover {
  color: #1a1a1a;
}

.page-header {
  border-bottom: 1px solid #d8d3c5;
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.page-header h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-header .intro {
  font-size: 15px;
  color: #444;
  max-width: 62ch;
}

.legend {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: #555;
}

.legend span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.legend b {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  background: #1a1a1a;
  color: #fbfaf7;
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* ============ Year sections ============ */

.year {
  margin-bottom: 40px;
}

.year > h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  padding-bottom: 6px;
  border-bottom: 1px dashed #d8d3c5;
  margin-bottom: 20px;
}

.pub-list {
  list-style: none;
}

/* ============ Individual entry ============ */

.pub {
  padding: 18px 0;
  border-bottom: 1px solid #eee7d8;
}

.pub:last-child {
  border-bottom: none;
}

.pub-body {
  min-width: 0;
}

.pub-id {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #fbfaf7;
  background: #1a1a1a;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: 2px;
  letter-spacing: 0.04em;
}

.pub-id.cf {
  background: #8a4a1f;
}

.pub-id.w {
  background: #4a6a4a;
}

.pub-id.t {
  background: #5a2a6a;
}

.pub-id.b {
  background: #8a6a1a;
}

.pub-id.p {
  background: #999;
}

.pub-title {
  display: inline;
  font-family: "Charter", "Iowan Old Style", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.pub-authors {
  font-size: 14px;
  color: #444;
  margin-top: 4px;
}

.pub-venue {
  font-size: 14px;
  font-style: italic;
  color: #666;
  margin-top: 2px;
}

.pub-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-links a {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  background: #fff;
  border: 1px solid #c9c1a8;
  color: #444;
  border-radius: 3px;
}

.pub-links a:hover {
  background: #1a1a1a;
  color: #fbfaf7;
  border-color: #1a1a1a;
}

/* ============ Footer ============ */

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid #d8d3c5;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

footer a {
  border-bottom: none;
  color: #666;
}

footer a:hover {
  color: #1a1a1a;
}

/* ============ Responsive ============ */

@media (max-width: 640px) {
  body {
    padding: 24px 16px 64px 16px;
  }
  .page-header h1 {
    font-size: 30px;
  }
  .pub-title {
    font-size: 16px;
  }
}
