:root {
  --page: #ffffff;
  --text: #111111;
  --muted: #5e5e5e;
  --rule: #dddddd;
  --max: 54rem;
  --rail: 12.75rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: 5.5rem 2rem 4rem;
}

header,
.hero-plate,
article {
  max-width: var(--max);
}

header {
  margin-bottom: 2.4rem;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.meta {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.meta div {
  display: block;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--max)) minmax(11rem, var(--rail));
  gap: 3.25rem;
  align-items: start;
}

article {
  width: 100%;
  min-width: 0;
}

.rail {
  align-self: start;
  position: sticky;
  top: 2rem;
  padding-top: 0.2rem;
}

.rail-nav {
  border-left: 1px solid var(--rule);
  padding-left: 0.95rem;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-item {
  margin: 0;
  padding: 0;
}

.rail-link {
  display: block;
  padding: 0.22rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.rail-link:hover,
.rail-link:focus {
  color: var(--text);
}

.section-heading {
  margin: 3.2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  scroll-margin-top: 1.5rem;
}

h3 {
  margin: 1.75rem 0 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.2rem;
}

.keywords {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.keywords-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.35rem;
}

.figure-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.figure-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.figure-note {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
}

.ref {
  margin: 0 0 0.75rem;
  padding-left: 1.8rem;
  text-indent: -1.8rem;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
}

.hero-plate {
  margin: 0 0 3rem;
}

.hero-figure {
  margin: 0;
}

.hero-media {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  background: #f7f7f7;
}

.hero-caption {
  margin-top: 0.85rem;
}

.pubs-intro {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.3rem;
}

.pubs-subheading {
  margin-top: 1.8rem;
}

.pubs-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.pub-item {
  margin: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.99rem;
  line-height: 1.72;
}

.pub-note {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .page {
    width: min(100%, calc(var(--max) + 4rem));
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rail {
    display: none;
  }

  header,
  .hero-plate,
  article {
    max-width: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .page {
    padding: 3.25rem 1.2rem 2.75rem;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4.1rem);
  }

  h3 {
    font-size: 1.7rem;
  }

  .section-heading {
    margin-top: 2.6rem;
  }
}

@media print {
  .page {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .rail {
    display: none;
  }

  a {
    text-decoration: none;
  }
}
