/* Minimal one-page layout — Libertinus Serif, grayscale, no theme chrome */

@font-face {
  font-family: "Libertinus Serif";
  src: url("/assets/fonts/LibertinusSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libertinus Serif";
  src: url("/assets/fonts/LibertinusSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libertinus Serif";
  src: url("/assets/fonts/LibertinusSerif-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libertinus Serif";
  src: url("/assets/fonts/LibertinusSerif-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 3rem 1.5rem 4rem;
  font-family: "Libertinus Serif", "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.55;
  color: #1a1a1a;
  background: #fff;
}

.error-page {
  max-width: 500px;
  margin: 4rem auto;
  text-align: center;
}
.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

a {
  color: #1a1a1a;
  text-decoration-color: #999;
  text-underline-offset: 2px;
}
a:hover {
  color: #000;
  text-decoration-color: #1a1a1a;
}

/* Header (left column) */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  position: sticky;
  top: 3rem;
  min-width: 0;
}

.header-text {
  min-width: 0;
}

.portrait {
  width: 160px;
  height: 200px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-text h1 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.header-text .subtitle {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #333;
}

.header-text .contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.95rem;
}

.header-text .contact-links .static-email {
  color: #1a1a1a;
}

/* Section headings */
section {
  margin-top: 2.5rem;
}
.main-content > section:first-child {
  margin-top: 0;
}

section > h2 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.35rem;
  margin: 0 0 1.25rem;
}

.about p {
  margin: 0 0 1rem;
}

/* Publication / working-paper entries */
.entry {
  margin-bottom: 1.6rem;
}
.entry:last-child {
  margin-bottom: 0;
}

.entry-title {
  margin: 0 0 0.2rem;
  font-weight: 700;
}

.entry-meta {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #333;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.entry-actions details {
  order: 1;
}
.entry-actions details[open] {
  flex-basis: 100%;
  order: 2;
}

.entry-actions summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  font-size: 0.82rem;
  padding: 0.18rem 0.75rem;
  border: 1px solid #999;
  border-radius: 999px;
  color: #444;
  user-select: none;
}
.entry-actions summary::-webkit-details-marker,
.entry-actions summary::marker {
  display: none;
  content: "";
}
.entry-actions summary:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}
.entry-actions details[open] > summary {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.entry-actions details p {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b6b6b;
}

/* Responsive */
@media (max-width: 760px) {
  .page {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-header {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  .main-content > section:first-child {
    margin-top: 2.5rem;
  }
}

@media (max-width: 560px) {
  body {
    padding: 2.25rem 1.25rem 3rem;
    font-size: 17px;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .portrait {
    width: 120px;
    height: 150px;
  }
}
