/* ============================================================
   GLOBAL STYLES — black & white, academic
   ============================================================ */

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

body {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 18px;
  line-height: 1.75;
  color: #111;
  background: #fff;
  padding: 0 1rem;
}

/* ---- layout ---- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

/* ---- site header ---- */
.site-header {
  border-bottom: 2px solid #111;
  padding-bottom: 1.2rem;
  margin-bottom: 2.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.site-nav {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.site-nav a {
  color: #111;
  text-decoration: none;
  margin-right: 1.4rem;
  text-transform: uppercase;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* ---- page titles ---- */
h1 {
  font-size: 1.8rem;
  font-weight: normal;
  border-bottom: 1px solid #aaa;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

/* ---- body text ---- */
p { margin-bottom: 1.2rem; }

blockquote {
  border-left: 3px solid #111;
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  font-style: italic;
  color: #333;
}

/* ---- lists on index pages ---- */
.entry-list {
  list-style: none;
  margin-top: 1rem;
}

.entry-list li {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.entry-list li:last-child { border-bottom: none; }

.entry-list .entry-title {
  font-size: 1.1rem;
  font-weight: bold;
}

.entry-list .entry-title a {
  color: #111;
  text-decoration: none;
}

.entry-list .entry-title a:hover {
  text-decoration: underline;
}

.entry-list .entry-meta {
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-list li.has-thumb {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.entry-list .entry-text {
  flex: 1 1 auto;
}

.entry-list .entry-thumb {
  flex: 0 0 120px;
}

.entry-list .entry-thumb img {
  display: block;
  width: 120px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.entry-list .entry-abstract {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #333;
}

/* ---- paper actions (read / download) ---- */
.paper-actions {
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

.paper-actions a {
  display: inline-block;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  margin-right: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.paper-actions a:hover {
  background: #111;
  color: #fff;
}

/* ---- essay / paper full page ---- */
.post-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #aaa;
  padding-bottom: 1rem;
}

.post-title {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.post-meta {
  font-size: 0.82rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-body { font-size: 1rem; }
.post-body p { margin-bottom: 1.3rem; }

/* ---- post image ---- */
.post-image {
  margin: 0 0 2rem;
}

.post-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
}

.post-image figcaption {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.5rem;
}

/* ---- abstract box (papers) ---- */
.abstract {
  background: #f5f5f5;
  border-left: 4px solid #111;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.abstract strong {
  display: block;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ---- inline PDF viewer ---- */
.pdf-viewer {
  width: 100%;
  height: 80vh;
  border: 1px solid #aaa;
  margin-top: 1.5rem;
}

/* ---- footer ---- */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- footer social links ---- */
.site-footer .social-links {
  margin-top: 0.5rem;
}

.site-footer .social-links a {
  color: #888;
}

.site-footer .social-links a:hover {
  color: #111;
}
