:root {
  --bg: #f8f7f4;
  --panel: #ffffff;
  --ink: #25221d;
  --muted: #6b665d;
  --line: #d9d2c5;
  --accent: #b54f6d;
  --accent-dark: #843b50;
  --green: #526d5b;
  --blue: #315b7a;
  --shadow: 0 18px 40px rgba(38, 34, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

.site {
  min-height: 100vh;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 244, 0.95);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 28px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: inset 10px 0 0 rgba(255, 255, 255, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  border-radius: 6px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #eee8dd;
  color: var(--ink);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 28px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: center;
  padding: 18px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 7vw, 70px);
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

h3 {
  margin: 30px 0 14px;
  color: var(--green);
  font-size: 21px;
}

.subtitle {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.portrait {
  width: 230px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.contact-card {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 0 0 12px;
}

.contact-card .label {
  margin-bottom: 8px;
  color: var(--green);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote {
  margin: 34px 0 0;
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 20px;
  color: #3d3831;
  font-size: 22px;
  font-style: italic;
}

.page-title {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 54px);
}

.page-intro {
  max-width: 740px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 19px;
}

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

.section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.paper-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper {
  border-left: 3px solid var(--line);
  padding-left: 18px;
}

.paper-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.meta,
.keywords,
.note {
  margin: 6px 0 0;
  color: var(--muted);
}

.keywords {
  font-size: 15px;
  font-style: italic;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #d9c0c9;
  border-radius: 6px;
  background: #fbf5f7;
  color: var(--accent-dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 9px;
  text-decoration: none;
}

.pill:hover {
  border-color: #a6bacb;
  background: #f0f5f8;
  color: var(--blue);
}

.teaching-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teaching-list li {
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  font-size: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 28px;
}

@media (max-width: 740px) {
  .masthead-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px 18px;
  }

  .nav {
    justify-content: flex-start;
  }

  .wrap {
    padding: 34px 20px 54px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portrait {
    width: 156px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .subtitle,
  .quote {
    font-size: 19px;
  }
}
