/* ===== Variables: Forest & Stone ===== */
:root {
    --forest: #2d4a3e;
    --forest-light: #3d6354;
    --forest-dark: #1e3329;
    --terracotta: #c17c4e;
    --terracotta-light: #d4956a;
    --sand: #f5f1eb;
    --sand-dark: #ebe5db;
    --cream: #faf8f5;
    --charcoal: #2c2c2c;
    --text-primary: #2c2c2c;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    --border: #e0dbd4;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(45, 74, 62, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 74, 62, 0.1);
    --shadow-lg: 0 8px 40px rgba(45, 74, 62, 0.12);
    --radius: 8px;
    --radius-lg: 14px;
    --transition: all 0.3s ease;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Lora', Georgia, serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ===== Topographic Background ===== */
.topo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: url('assets/topo-lines.jpg');
    background-size: 1100px auto;
    background-repeat: repeat;
    opacity: 0.35;
    mix-blend-mode: multiply;
}

/* ===== Layout ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-alt {
    background: rgba(245, 241, 235, 0.55);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--terracotta);
    display: inline-block;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--forest-light);
    margin-bottom: 1.2rem;
    margin-top: 2.5rem;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest);
}

.nav-logo:hover {
    color: var(--forest-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--forest);
    background: var(--sand);
}

.nav-cv {
    background: var(--forest);
    color: var(--white) !important;
    margin-left: 0.5rem;
}

.nav-cv:hover {
    background: var(--forest-light) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--sand-dark);
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.hero-affiliation {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.hero-affiliation i,
.hero-news i {
    color: var(--terracotta);
    margin-right: 0.5rem;
    width: 18px;
}

.hero-news {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    padding: 0.7rem 1.2rem;
    background: rgba(193, 124, 78, 0.08);
    border-left: 3px solid var(--terracotta);
    border-radius: 0 var(--radius) var(--radius) 0;
    display: inline-block;
}

.hero-links {
    display: flex;
    gap: 0.7rem;
}

.hero-links a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.2rem;
    background: var(--white);
    transition: var(--transition);
}

.hero-links a:hover {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 74, 62, 0.25);
}

/* ===== About ===== */
.about-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    max-width: 780px;
}

.tag-inline {
    color: var(--forest);
    font-weight: 600;
}

.about-fields {
    margin-top: 2rem;
}

.about-fields h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.35rem 0.9rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--forest);
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
}

/* ===== Publications ===== */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.pub-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    background: var(--white);
    transition: var(--transition);
}

.pub-item:hover {
    background: rgba(45, 74, 62, 0.02);
}

.pub-year {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--terracotta);
    padding-top: 0.15rem;
}

.pub-status {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--forest);
    background: rgba(45, 74, 62, 0.08);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.pub-content h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.pub-journal {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.pub-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--forest);
    background: rgba(45, 74, 62, 0.06);
    border-radius: var(--radius);
    transition: var(--transition);
}

.pub-link:hover {
    background: var(--forest);
    color: var(--white);
}

/* ===== Teaching ===== */
.teaching-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.teaching-group {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.teaching-institution {
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest);
    padding: 1.2rem 1.8rem;
    background: rgba(45, 74, 62, 0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.teaching-institution i {
    color: var(--terracotta);
}

.teaching-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.teaching-item:last-child {
    border-bottom: none;
}

.teaching-item:hover {
    background: rgba(45, 74, 62, 0.02);
}

.teaching-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.teaching-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.teaching-terms {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: 1rem;
}

.term {
    padding: 0.2rem 0.7rem;
    background: var(--sand);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== Data Section ===== */
.data-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.data-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.data-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.data-card-placeholder {
    border-style: dashed;
    opacity: 0.7;
}

.data-card-placeholder:hover {
    transform: none;
    box-shadow: none;
}

.data-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.data-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.data-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.data-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--forest);
    padding: 0.4rem 0.9rem;
    background: rgba(45, 74, 62, 0.06);
    border-radius: var(--radius);
}

.data-link:hover {
    background: var(--forest);
    color: var(--white);
}

/* ===== Footer ===== */
.footer {
    background: var(--forest-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.footer-info p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links a i {
    width: 18px;
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.3rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        padding: 0.7rem 1rem;
        width: 100%;
    }

    .nav-cv {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
        display: block;
    }

    .hero {
        padding-top: 5rem;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .image-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero-name {
        font-size: 2.4rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-news {
        display: block;
        text-align: left;
    }

    .hero-links {
        justify-content: center;
    }

    .pub-item {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding: 1.4rem 1.2rem;
    }

    .pub-year, .pub-status {
        font-size: 0.85rem;
    }

    .teaching-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .teaching-terms {
        margin-left: 0;
    }

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

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    .hero-name {
        font-size: 1.9rem;
    }

    .image-wrapper {
        width: 150px;
        height: 150px;
    }
}












/* ═══════════════════════════════════════════════════
   FISH POND — earthy palette to match site theme
   ═══════════════════════════════════════════════════ */

.pond-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(45, 80, 55, 0.15);
}

.pond-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 1rem auto 1rem;
  border-radius: 46% / 14%;
  overflow: hidden;
  /* Earthy shadow matching site's forest green */
  box-shadow:
    0 8px 32px rgba(8, 28, 16, 0.45),
    inset 0 0 60px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(50, 100, 65, 0.30);
  animation: pondFadeIn 0.9s ease both;
}

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

#pondCanvas {
  display: block;
  width: 100%;
  height: auto;
}

.pond-hint {
  text-align: center;
  font-size: 0.82rem;
  color: #7a8a7a;
  margin: 0 0 0.75rem;
  font-family: 'Source Sans 3', sans-serif;
}

.pond-hint span {
  display: inline-block;
  background: rgba(45, 80, 55, 0.08);
  border: 1px solid rgba(45, 80, 55, 0.20);
  border-radius: 20px;
  padding: 2px 12px;
  margin-left: 6px;
  font-size: 0.78rem;
  color: #5a7a62;
}

/* ── Tooltip — matches site's dark green + cream ── */
.fish-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: rgba(18, 38, 24, 0.95);
  color: #e8e0d0;
  border: 1px solid rgba(80, 140, 90, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 280px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.fish-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Title uses site's dark green tone */
.tip-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #a8d4b0;
  line-height: 1.35;
}

/* Journal italic, warm cream */
.tip-meta {
  color: #c8bfa8;
  font-style: normal;
  font-size: 0.78rem;
}

.tip-meta em {
  font-style: italic;
}

/* Citations in site's rust/amber accent */
.tip-cites {
  color: #c8874a;
  font-size: 0.77rem;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .pond-wrapper { border-radius: 12px; }
  .fish-tooltip { max-width: 220px; font-size: 0.78rem; }
}
