:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #171717;
  --muted: #676767;
  --line: #deded9;
  --accent: #8c1515;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.62;
}

a { color: inherit; }

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
  font-size: 1.04rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 92px 0 74px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.7rem);
  margin-bottom: 18px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 22px;
}

h3 {
  font-size: 1.13rem;
  margin-bottom: 9px;
}

.subtitle {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 690px;
  margin: 0 0 24px;
}

.intro {
  font-size: 1.08rem;
  max-width: 735px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid var(--text);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 680;
}

.button.primary {
  background: var(--text);
  color: white;
}

.button.secondary:hover { background: #f0f0ed; }

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  width: min(100%, 340px);
  justify-self: end;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, #efefeb, #dcdcd6);
  display: grid;
  place-items: center;
  color: #777;
  text-align: center;
  padding: 28px;
  font-size: 0.95rem;
}
.portrait {
  aspect-ratio: 4 / 5;
  width: min(100%, 340px);
  justify-self: end;
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
  object-position: center 20%;
}

.section {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-lede {
  color: var(--muted);
  max-width: 760px;
  margin-top: -10px;
  margin-bottom: 42px;
}

.paper {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 28px;
}

.paper:first-of-type { border-top: none; }

.paper-label {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.paper-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.paper-title-long {
  white-space: nowrap;
  font-size: 1.35rem;
}

.paper p {
  margin: 8px 0 0;
  color: #383838;
  max-width: 830px;
}

.paper-links {
  margin-top: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.paper-links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Expandable paper abstracts */

.paper-abstract {
  margin-top: 12px;
}

.paper-abstract summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper-abstract summary::-webkit-details-marker {
  display: none;
}

.paper-abstract summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 6px;
  font-size: 0.65rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.paper-abstract[open] summary::before {
  transform: rotate(90deg);
}

.abstract-text {
  max-width: 820px;
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.abstract-text p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
}

.card p:last-child { margin-bottom: 0; }

.small { color: var(--muted); font-size: 0.92rem; }

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 52px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-head {
  padding: 86px 0 52px;
}

.page-head h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.notice {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: #f3f0ee;
  color: #4c4c4c;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    padding: 18px 0;
    flex-direction: column;
    gap: 12px;
  }
  .nav-links { gap: 16px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 64px;
  }
  .portrait-placeholder,
.portrait {
  justify-self: start;
  width: 240px;
}
  .paper { grid-template-columns: 1fr; gap: 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .paper-title-long {
  white-space: normal;
  font-size: 1.2rem;
}
}
