:root {
  --background: #fbfaf7;
  --sidebar: #f2efe7;
  --text: #222222;
  --muted: #6c6a66;
  --link: #7c3f2a;
  --link-dark: #4e2419;
  --line: #ded8cb;
  --soft-line: #ebe6dc;
  --max-content: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--link-dark); }

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 3rem 2.25rem;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-title {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-subtitle {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.portrait {
  display: block;
  margin: 1.25rem 0 0;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.social {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

.social a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social a:hover { color: var(--link); }

.social-line {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social-icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.menu {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu a,
.sidebar-footer a {
  color: var(--text);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.menu a:hover,
.sidebar-footer a:hover { color: var(--link); }

.sidebar-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.content {
  width: 100%;
  max-width: var(--max-content);
  padding: 4.5rem 3rem 5rem;
}

.section {
  padding: 0 0 5rem;
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--soft-line);
}

.section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.intro { padding-top: 0.5rem; }
.kicker {
  margin: 0 0 1.5rem;
  color: var(--link);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.12;
  color: var(--text);
}

h1 {
  font-size: 1em;
  line-height: 1.65;
  letter-spacing: 0;
}

h2 {
  font-size: 1em;
  line-height: 1.65;
  letter-spacing: 0;
}

h3 {
  margin-top: 2.35rem;
  font-size: 1em;
}

.lead {
  margin-top: 0;
  color: var(--muted);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.45;
}

.hero-visual {
  margin: 2rem 0 2.25rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #f5f0e8;
  aspect-ratio: 16 / 7;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-credit {
  margin: -1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
}

.section-heading {
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  align-items: baseline;
}

.section-heading span,
.text-link {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.publication-list {
  margin: 1rem 0 2rem;
  border-top: 1px solid var(--soft-line);
}

.publication-list article {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--soft-line);
}

.publication-list p,
.two-column-list p {
  margin: 0;
}

.publication-list.compact article { padding: 0.85rem 0; }

.contact-section p { margin-bottom: 1rem; }
.mobile-footer { display: none; }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    min-height: auto;
    padding: 1.35rem 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .menu {
    margin: 1.5rem 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .sidebar-footer { display: none; }
  .content {
    max-width: none;
    padding: 3rem 1.25rem 4rem;
  }
  .section {
    padding-bottom: 3.5rem;
    margin-bottom: 3.5rem;
  }
  .two-column-list { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .mobile-footer {
    display: block;
    padding: 0 1.25rem 3rem;
    color: var(--muted);
  }
}
