/* Pastel aesthetic – inspired by carlobroderick.github.io/pastel */
/* Light blue and orange themes for geospatial data science */

:root {
  --bg: #f8fcff;
  --bg-warm: #fffaf5;
  --bg-card: #ffffff;
  --text: #2d3748;
  --text-soft: #5a6a7a;
  --text-muted: #8a9aab;
  --border: #e2eef7;

  /* Light blue palette */
  --sky-light: #e0f4ff;
  --sky: #7dd3fc;
  --sky-deep: #0ea5e9;
  --blue-pale: #dbeafe;
  --blue: #60a5fa;

  /* Orange palette */
  --orange-pale: #ffedd5;
  --orange-light: #fed7aa;
  --orange: #fb923c;
  --orange-deep: #ea580c;

  /* Accents & pastels */
  --mint: #a7f3d0;
  --peach: #fed7aa;
  --lavender: #c4b5fd;

  --accent: var(--sky-deep);
  --accent-secondary: var(--orange);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --max-width: 880px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--sky-light);
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

/* ========== TOP NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.9rem 2rem;
  background: rgba(248, 252, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

.navbar-logo:hover {
  text-decoration: none;
  color: var(--accent-secondary);
}

.navbar-logo {
  margin-right: auto;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9rem;
}

.navbar-nav a {
  color: var(--text-soft);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  font-weight: 500;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--accent);
  background: var(--sky-light);
  text-decoration: none;
}

.navbar-nav a.active {
  color: var(--accent);
}

/* ========== MAIN ========== */
.main-content {
  padding-top: 64px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== HERO ========== */
.section.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
}

.hero-label {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-flex {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-headshot {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-blurb {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-weight: 500;
}

.tag-python { background: var(--sky-light); color: var(--sky-deep); }
.tag-r { background: var(--blue-pale); color: #2563eb; }
.tag-arcgis { background: var(--orange-pale); color: var(--orange-deep); }
.tag-cartography { background: var(--mint); color: #047857; }
.tag-spatial { background: var(--peach); color: #c2410c; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.hero-links a {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.2s;
}

.hero-links a:hover {
  color: var(--accent);
}

.hero-links a:first-child {
  color: var(--accent);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
  position: relative;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-num {
  color: var(--accent);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.section-blurb {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 640px;
}

.section p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

/* ========== TOOLBOX GRID ========== */
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tool-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.04);
}

.tool-group h3 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.tool-group ul {
  list-style: none;
}

.tool-group li {
  font-size: 0.95rem;
  color: var(--text-soft);
  padding: 0.3rem 0;
}

/* ========== PROJECT CARDS ========== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.project-emoji {
  font-size: 1.6rem;
}

.project-logo {
  height: 24px;
  width: auto;
  display: block;
}

.project-cats {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-tools code {
  font-size: 0.75rem;
  background: var(--sky-light);
  color: var(--sky-deep);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-main);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-link {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.project-link:hover {
  text-decoration: underline;
  color: var(--accent-secondary);
}

.research-fieldwork p {
  margin-bottom: 1rem;
}

.research-fieldwork p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ========== PROJECTS & CODE (Coming Soon) ========== */
.projects-coming {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.coming-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  opacity: 0.9;
}

.coming-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.coming-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.coming-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========== VISUALIZATIONS ========== */
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-box h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.sidebar-box p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box li {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-1 { background: var(--mint); }
.dot-2 { background: var(--sky); }
.dot-3 { background: var(--orange-light); }

.code-callout-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.viz-figure {
  margin: 2rem 0 0;
}

.viz-figure img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.1);
}

.viz-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== PUBLICATIONS ========== */
.pub-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pub-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.pub-item p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ========== EDUCATION & FIELDWORK ========== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.edu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.edu-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.edu-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sky-deep);
  background: var(--sky-light);
  flex-shrink: 0;
}

.edu-item h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 0.3rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 600;
}

.edu-school {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.edu-detail {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.funding-title {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.funding-list {
  display: grid;
  gap: 0.75rem;
}

.funding-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.funding-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.funding-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fieldwork-list {
  display: grid;
  gap: 1rem;
}

.fieldwork-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fieldwork-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.fieldwork-item h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.fieldwork-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.fieldwork-item p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ========== ABOUT GRID (Education) ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
}

.site-footer .container p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: var(--accent);
}

/* Soft background blobs - light blue & orange */
body::before {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.2) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(253, 186, 116, 0.15) 0%, transparent 70%);
  bottom: 5%;
  left: -10%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .navbar-nav {
    justify-content: center;
  }

  .main-content {
    padding-top: 100px;
  }

  .section.hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .hero-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-blurb {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-links {
    flex-direction: column;
  }

  .fieldwork-meta {
    white-space: normal;
  }
}
