/* ===================================================================
   Diego Kreutz — personal site
   Clean academic, light theme, single accent.
   =================================================================== */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f8fa;
  --text:      #1c2024;
  --text-soft: #565d66;
  --text-faint:#8a929c;
  --border:    #e6e9ee;
  --accent:    #0f6e6e;   /* deep teal */
  --accent-dk: #0a5252;
  --max:       960px;
  --radius:    12px;
  --shadow:    0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__brand {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: .2px;
}
.nav__brand:hover { text-decoration: none; }
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
.nav__links a {
  color: var(--text-soft);
  font-size: .93rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--accent); text-decoration: none; }

.lang { display: flex; align-items: center; gap: 4px; }
.lang__sep { color: var(--text-faint); }
.lang__btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-faint);
  padding: 2px 4px;
}
.lang__btn.is-active { color: var(--accent); }
.lang__btn:hover { color: var(--accent); }

/* ===================== HERO ===================== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.hero__inner {
  display: flex;
  gap: 36px;
  align-items: center;
}
.hero__photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.hero__name {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -.5px;
}
.hero__role {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--text-soft);
  font-weight: 500;
}
.hero__tags {
  margin: 0 0 18px;
  font-size: .92rem;
  color: var(--text-faint);
}
.hero__links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__links a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg);
  transition: border-color .15s, color .15s, background .15s;
}
.hero__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-alt);
  text-decoration: none;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 56px 24px;
}
.section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__title {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.section__lead {
  color: var(--text-soft);
  margin: 0 0 28px;
  font-size: .98rem;
}

/* ----- About ----- */
.about__text {
  font-size: 1.06rem;
  color: var(--text);
  margin: 0 0 32px;
  max-width: 760px;
}
.about__note {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 28px 0 0;
  max-width: 760px;
}
.about__news {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
}
.about__news:hover {
  color: #fff;
  background: var(--accent-dk);
  text-decoration: none;
}
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: .82rem;
  color: var(--text-soft);
}

/* ----- Projects ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 14px 30px rgba(16,24,40,.10);
}
.card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.card__title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.card__period {
  font-size: .82rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card__meta {
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 10px;
}
.card__desc {
  font-size: .95rem;
  color: var(--text-soft);
  margin: 0;
}
.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.card__cost {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-dk);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-variant-numeric: tabular-nums;
}
.card__link {
  font-size: .82rem;
  font-weight: 500;
}
.card__link::after { content: " ↗"; }

/* ----- Publications ----- */
.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pub;
}
.pub {
  counter-increment: pub;
  position: relative;
  padding: 16px 0 16px 40px;
  border-bottom: 1px solid var(--border);
}
.pub:last-child { border-bottom: none; }
.pub::before {
  content: counter(pub);
  position: absolute;
  left: 0;
  top: 17px;
  font-family: "Newsreader", Georgia, serif;
  font-size: .95rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.pub__title {
  display: block;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.4;
}
.pub__title:hover { color: var(--accent); text-decoration: none; }
.pub__venue {
  display: block;
  margin-top: 3px;
  font-size: .88rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ----- Awards ----- */
.awards {
  list-style: none;
  margin: 0;
  padding: 0;
}
.award {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.award:last-child { border-bottom: none; }
.award__year {
  flex-shrink: 0;
  width: 48px;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.award__text {
  color: var(--text);
  font-size: .98rem;
}

/* ===================== FOOTER ===================== */
.footer {
  padding: 40px 24px 56px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer__line {
  margin: 0 0 8px;
  font-size: .9rem;
  color: var(--text-soft);
}
.footer__sub {
  margin: 0;
  font-size: .85rem;
  color: var(--text-faint);
}
.footer__sub a { color: var(--text-soft); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { gap: 12px; }
  .hero { padding: 40px 22px 32px; }
  .hero__inner { flex-direction: column; text-align: center; gap: 22px; }
  .hero__name { font-size: 2.1rem; }
  .hero__links { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
