/* ondawater.org */

:root {
  --bg: #fdfdfc;
  --bg-alt: #f4f6f7;
  --text: #1f2933;
  --text-muted: #5b6b79;
  --accent: #0b5e7d;
  --accent-2: #2f9bbf;
  --accent-soft: #d7e8ef;
  --border: #e2e8ec;
  --shadow: 0 6px 18px rgba(11, 94, 125, 0.10);
  --max-width: 800px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181d;
    --bg-alt: #1a2229;
    --text: #e6ebee;
    --text-muted: #93a3af;
    --accent: #5fb3d4;
    --accent-2: #3a83a3;
    --accent-soft: #173747;
    --border: #28333c;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
}

/* layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* nav */
nav {
  border-bottom: 1px solid var(--border);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-soft)) 1;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-name {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.nav-name:hover { text-decoration: none; color: var(--accent); }

.nav-links { display: flex; gap: 1.25rem; }

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }

/* header / hero */
.hero { padding: 3rem 0 1.5rem; }

.hero-grid {
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
}

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

.headshot {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-soft);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  margin-top: 0.65rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 0.25rem;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.hero p { margin: 0 0 1rem; }

/* contact links row */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
}

.links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: all 0.15s ease;
}

.links a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* sections */
section { padding: 1.5rem 0; }

section h2 {
  font-size: 1.45rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-soft);
}

section h2 small {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* experience / education entries */
.entry { margin-bottom: 1.4rem; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry-head h3 {
  font-size: 1.08rem;
  margin: 0;
  font-family: inherit;
  font-weight: 650;
}

.entry-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.entry-org {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.1rem 0 0.35rem;
}

.entry p { margin: 0.35rem 0 0; font-size: 0.97rem; }

.entry ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.97rem;
}
.entry ul li { margin-bottom: 0.25rem; }

.roles { margin: 0.1rem 0 0.35rem; padding-left: 0; list-style: none; font-size: 0.95rem; }
.roles li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.roles .role { font-weight: 600; }

/* publications */
.year-group { margin-bottom: 1.75rem; }

.year-group h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
  font-family: inherit;
}

.pub {
  margin: 0 0 0.9rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-soft);
  font-size: 0.97rem;
  transition: border-color 0.15s ease;
}

.pub:hover { border-left-color: var(--accent); }

.pub .venue { font-style: italic; }
.pub strong { font-weight: 650; }

.pub p { margin: 0; }

.pub .blurb {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.3rem;
}

.pub .pub-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

.talk {
  margin: 0 0 0.55rem;
  font-size: 0.93rem;
}
.talk .venue { font-style: italic; color: var(--text-muted); }

/* explanatory note under a section heading */
.section-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: -0.5rem 0 1.25rem;
}

/* project & software cards */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.1rem;
  background: var(--bg-alt);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}

.card h3 { margin: 0 0 0.4rem; font-size: 1.18rem; }

.card p { margin: 0 0 0.6rem; font-size: 0.97rem; }

.card .card-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 500;
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  padding: 0;
}

.meta .tag {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.12rem 0.65rem;
}

.meta .tag.pi {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* page titles on subpages */
.page-title { padding: 2.5rem 0 0; }
.page-title h1 { font-size: 2rem; margin: 0 0 0.4rem; }
.page-title p { color: var(--text-muted); margin: 0; }

@media (max-width: 620px) {
  .hero h1 { font-size: 1.9rem; }
  body { font-size: 16px; }
  .hero-grid { flex-direction: column-reverse; align-items: center; text-align: left; }
  .headshot { width: 150px; height: 150px; margin-top: 0; }
}
