:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --text: #1c2523;
  --muted: #4c5c58;
  --border: #d5ddd8;
  --accent: #0d5c53;
  --accent-soft: #e6f2ef;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, #ebf2ee 0%, transparent 45%),
    linear-gradient(180deg, #f7faf7 0%, var(--bg) 100%);
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus {
  text-decoration-thickness: 0.12em;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  z-index: 999;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding: 0.75rem 0;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.95rem;
  padding: 0.25rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: var(--accent);
}

.page-content {
  padding: 2.5rem 0 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  border-top: 1px solid var(--border);
  padding-top: 0.95rem;
}

.lead {
  margin-top: -0.35rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(210px, 280px) 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}

.profile-photo {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f0f4f2;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-links li {
  background: var(--accent-soft);
  border: 1px solid #c7ddd7;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.quick-links {
  margin-top: 1rem;
}

.button-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

.button-link:hover,
.button-link:focus {
  background: #0a4b44;
}

.page-note {
  margin-top: 1rem;
}

.pub-list {
  list-style: none;
  margin: 0.6rem 0 1rem;
  padding: 0;
}

.pub-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 0 0.8rem;
  padding: 0.85rem 1rem;
}

.pub-item p {
  margin: 0.25rem 0;
}

.pub-links a {
  white-space: nowrap;
}

.conference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.conference-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.conference-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0f4f2;
}

.conference-card figcaption {
  padding: 0.75rem;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f8faf8;
}

.footer-inner {
  padding: 1rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner p {
  margin: 0.2rem 0;
}

@media (max-width: 780px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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