/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
body {
  font-family: Georgia, "Times New Roman", serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

/* ── Layout wrapper ── */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Site nav ── */
nav {
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  padding: 0 1.6rem;
  height: 48px;
}
nav .site-name {
  font-family: Georgia, serif;
  font-size: 0.92rem;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: #111;
  padding: 0;
  padding-right: 1rem;
  margin-right: 0.6rem;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
nav a {
  font-size: 0.78rem;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  color: #666;
  padding: 0 0.9rem;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover { color: #111; }
nav a.active { color: #111; border-bottom-color: #111; }

/* ── Page header ── */
.page-header { margin-bottom: 3rem; }
.page-header h1 { font-size: 2rem; letter-spacing: 0.02em; }
.page-header p  { font-size: 0.95rem; color: #555; margin-top: 0.4rem; }

/* ── Section headings ── */
h2.section-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}
h2.section-label:first-of-type { margin-top: 0; }

/* ── Publication list ── */
.pub-list { list-style: none; }
.pub-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}
.pub-item:last-child { border-bottom: none; }
.pub-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}
.pub-year {
  font-size: 0.8rem;
  font-family: monospace;
  background: #f0f0f0;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-title { font-size: 1rem; font-weight: bold; }
.pub-title a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pub-title a:hover { color: #0057b8; }
.pub-authors { font-size: 0.88rem; color: #333; margin-bottom: 0.25rem; }
.pub-authors strong { font-weight: 700; color: #111; }
.pub-journal { font-size: 0.88rem; font-style: italic; color: #555; margin-bottom: 0.4rem; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── Design entity cards ── */
.entity-card {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #eee;
}
.entity-card:last-child { border-bottom: none; }
.entity-name { font-size: 1.4rem; font-weight: bold; margin-bottom: 0.2rem; }
.entity-type { font-size: 0.8rem; font-family: monospace; color: #777; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.entity-description { font-size: 0.95rem; color: #222; margin-bottom: 1rem; }
.entity-meta { font-size: 0.88rem; color: #444; margin-bottom: 0.5rem; }
.entity-meta span { font-weight: bold; color: #111; }
.entity-list { margin: 0.5rem 0 0.5rem 1.2rem; font-size: 0.88rem; color: #333; }
.entity-list li { margin-bottom: 0.2rem; }
.entity-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.entity-links a {
  font-size: 0.82rem;
  font-family: monospace;
  padding: 0.2rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
}
.entity-links a:hover { background: #f0f0f0; color: #111; }

/* ── Image placeholder grid ── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.image-slot {
  aspect-ratio: 4/3;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: monospace;
  color: #aaa;
}

/* ── Tags ── */
.tag {
  font-size: 0.75rem;
  font-family: monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.tag-free    { background: #d4edda; color: #155724; }
.tag-paywall { background: #fff3cd; color: #856404; }
.tag-first   { background: #cce5ff; color: #004085; }
.tag-arxiv   { background: #f8d7da; color: #721c24; }
.tag-field   { background: #f0f0f0; color: #444; }
.tag-craft   { background: #e8e0f7; color: #3d1f8a; }

/* ── Footer ── */
footer {
  border-top: 1px solid #ddd;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
}
