* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #1f2937;
  background: #fcfcfb;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #1f4d7a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(252, 252, 251, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 20;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.brand-title {
  font-size: 0.95rem;
  color: #4b5563;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #374151;
  font-size: 0.95rem;
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0;
  color: #111827;
}

.hero-title {
  font-size: 1.35rem;
  color: #374151;
  margin: 16px 0 0;
}

.hero-text {
  font-size: 1.08rem;
  color: #4b5563;
  margin-top: 24px;
  max-width: 720px;
}

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

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: white;
  color: #1f2937;
  font-size: 0.96rem;
  transition: 0.2s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.button-primary {
  background: #16283b;
  color: white;
  border-color: #16283b;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
}

.section {
  padding: 72px 0;
  border-top: 1px solid #e5e7eb;
}

.section-alt {
  background: #f7f8fa;
}

.section-head {
  margin-bottom: 28px;
}

h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  color: #111827;
}

h3 {
  margin-top: 0;
  color: #111827;
  font-size: 1.15rem;
}

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

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.pub-item,
.cv-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pub-list {
  display: grid;
  gap: 16px;
}

.section-link {
  margin-top: 20px;
}

.cv-box {
  background: #f7f8fa;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 22px 0 40px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #6b7280;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container, .narrow {
    width: min(100% - 32px, 1100px);
  }

  .hero {
    padding-top: 48px;
  }

  .button-row {
    align-items: stretch;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .footer-wrap {
    flex-direction: column;
  }
}
