﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f6f2ea;
  --bg-deep: #e8efe8;
  --paper: #fffdf9;
  --ink: #182026;
  --muted: #4d5c62;
  --line: #d4ddd9;
  --brand: #0e6462;
  --brand-dark: #084948;
  --brand-soft: #dbefea;
  --accent: #af3e2b;
  --shadow: 0 14px 30px rgba(16, 31, 43, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -8%, #ecf4ef 0, transparent 42%),
    radial-gradient(circle at 96% 0%, #f2ece2 0, transparent 48%),
    var(--bg);
  line-height: 1.55;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  width: min(1100px, 94vw);
  margin: 0 auto 4rem;
}

.section-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
}

.section-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.72rem);
  letter-spacing: 0.02em;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 0.35rem;
  font-size: 1rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246, 242, 234, 0.92);
  border-bottom: 1px solid #d4d8cc;
}

.nav-inner {
  width: min(1100px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #124f4d, #5b807f);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid #bbc7c4;
  background: #fff;
  color: #22303a;
  border-radius: 9px;
  padding: 0.42rem 0.62rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #2b3940;
  padding: 0.35rem 0.58rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
}

.nav-links a:hover {
  background: #e9f2ee;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #cfd7d4;
  box-shadow: 0 16px 24px rgba(18, 27, 34, 0.12);
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.14;
}

.hero .title-line {
  margin-top: 0.32rem;
  color: #2e3c43;
  font-size: 1.06rem;
}

.hero .summary {
  margin-top: 0.68rem;
  color: #334149;
  max-width: 70ch;
}

.hero-buttons {
  display: flex;
  gap: 0.56rem;
  flex-wrap: wrap;
  margin-top: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1;
  padding: 0.55rem 0.86rem;
}

.btn-primary {
  background: linear-gradient(145deg, var(--brand), #1a8681);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(145deg, #0c5755, #176f6a);
  text-decoration: none;
}

.btn-soft {
  border-color: #c6d8d4;
  background: #f8fffd;
  color: #18303d;
}

.btn-soft:hover {
  background: #ebf4f2;
  text-decoration: none;
}

.quick-metrics {
  margin-top: 0.88rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 0.55rem;
}

.metric {
  border: 1px solid #d5dfda;
  border-radius: 11px;
  background: #fff;
  padding: 0.55rem 0.6rem;
}

.metric strong {
  display: block;
  font-size: 1.1rem;
  font-family: "Fraunces", Georgia, serif;
}

.metric span {
  color: #53636a;
  font-size: 0.86rem;
}

.affiliations {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.62rem;
  margin-top: 0.86rem;
}

.affiliation-chip {
  border: 1px solid #d6ddd6;
  border-radius: 12px;
  background: #fff;
  padding: 0.6rem 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 3rem;
}

.affiliation-chip:hover {
  background: #f3faf8;
  text-decoration: none;
}

.mono-badge {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.63rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #406675, #0f5965);
  flex-shrink: 0;
}

.affiliation-chip .meta {
  display: block;
  font-size: 0.74rem;
  color: #617177;
}

.pub-grid,
.commentary-grid,
.media-grid,
.blog-grid,
.code-grid {
  display: grid;
  gap: 0.74rem;
}

.pub-grid,
.commentary-grid,
.media-grid,
.code-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.blog-grid {
  grid-template-columns: repeat(2, minmax(250px, 1fr));
}

.card {
  border: 1px solid #d7e0db;
  border-radius: 14px;
  background: #fff;
  padding: 0.82rem 0.88rem;
}

.card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

.card p {
  margin: 0.42rem 0 0;
  color: #3d4d57;
}

.card .meta {
  margin-top: 0.35rem;
  color: #596970;
  font-size: 0.88rem;
}

.card .actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tag-row {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  margin-top: 0.46rem;
}

.tag {
  border: 1px solid #c9d8d4;
  background: #f4fbf9;
  color: #244143;
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 0.23rem 0.48rem;
  font-weight: 600;
}

.highlight-band {
  margin-top: 0.85rem;
  border: 1px solid #bfd6d2;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--brand-soft), #ffffff 72%);
  padding: 0.82rem 0.9rem;
}

.highlight-band p {
  margin: 0;
  color: #204145;
}

.footer {
  width: min(1100px, 94vw);
  margin: 1rem auto 2.6rem;
  color: #54656c;
  font-size: 0.9rem;
  text-align: center;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: lift-in 0.62s ease forwards;
}

.fade-2 { animation-delay: 0.08s; }
.fade-3 { animation-delay: 0.16s; }
.fade-4 { animation-delay: 0.24s; }
.fade-5 { animation-delay: 0.32s; }

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: min(320px, 80vw);
    margin: 0 auto;
  }

  .pub-grid,
  .commentary-grid,
  .media-grid,
  .blog-grid,
  .code-grid,
  .affiliations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 3vw;
    right: 3vw;
    top: 3.35rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    gap: 0.35rem;
    border-radius: 12px;
    border: 1px solid #ced7d2;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 15px 24px rgba(18, 34, 40, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border: 1px solid #e3e8e5;
    background: #fbfefd;
  }
}

