:root {
  --ucd-blue: #002855;
  --ucd-gold: #b9975b;
  --bg-light: #f5f7fa;
  --text-dark: #1f2933;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #256bb3;
}

.site-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--ucd-blue);
  color: white;
  align-items: center;
}

.site-header nav a {
  margin-left: 1.5rem;
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.hero {
  background: linear-gradient(
      rgba(0, 40, 85, 0.65),
      rgba(0, 40, 85, 0.65)
    ),
    url("images/hero.jpg") center / cover;
  color: white;
  padding: 6rem 2rem;
}

.wave-stack {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 140px;
}

.wave-back path {
  fill: rgba(0, 40, 85, 0.35); /* UC Davis blue tint */
}

.hero-content {
  max-width: 800px;
}

.section {
  padding: 1rem 1rem;
  margin: auto;
  background: var(--bg-light);
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border-radius: 6px;
}

.button-frame {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  padding: 0rem 0rem;
  margin: auto;
  background: transparent;
  width: 90%;
  padding-bottom: 1rem;
  border: 1px;
}

.text {
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.text p {
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.section h1 {
  font-size: 1.5rem;
}

.section h2 {
  font-size: 1.5rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.topmatter-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(520px, 2fr);
  width: 100%;
  gap: 0rem 1.5rem;
}

.topmatter-grid-narrow {
  display: grid;
  grid-template-columns: 160px minmax(520px, 2fr);
  width: 100%;
  gap: 0rem 1.5rem;
}

@media (max-width: 920px) {
  .topmatter-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.topmatter-left {
  overflow: hidden;
  align-items: center;
  justify-items: center;
  align: center;
}

.topmatter-left img {
  width: 100%;
  max-width: 360px;
  border-radius: 4px;
  border: 2px solid #000;
  object-position: center top;
}

.topmatter-right {
  padding: 1rem 0rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  background: white;
  align-items: center;
  vertical-align: middle;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-size: 0.9rem;
}

.project-card img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.0rem;
  margin-top: 0rem;
}

.team-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  background: white;
  align-items: center;
  vertical-align: top;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-card-frame {
  height: 100%;
}

.team-card img {
}

.team-card img.icon {
  height: 1em;
  vertical-align: center;
}

.team-card img.headshot {
  float: left;
  width: 90%;
  border-radius: 20%;
  vertical-align: center;
}

.team-card p {
  font-size: 0.8rem;
}

.one-column-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0rem;
}

.one-column-text-card {
  background: white;
  align-items: center;
  vertical-align: top;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.one-column-text-card h3 {
  margin-bottom: 0.8rem;
}

.one-column-text-card h4 {
  margin-bottom: 0.8rem;
}

.one-column-text-card p {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}

.one-column-text-card p.Indented {
  margin-left: 30px;
}

.one-column-text-card table.Borderless {
  margin-left: 40px;
}

.float-right {
  
  
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
}

.btn.primary {
  background: white;
  color: var(--ucd-blue);
  border: 2px solid var(--ucd-blue);
}

.btn.secondary {
  border: 2px;
  background: var(--ucd-blue);
  color: white;
}

.btn.toolbar {
  background: #d4edff;
  color: var(--ucd-blue);
  border: 2px solid var(--ucd-blue);
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.5rem 0rem;
  margin: 0rem 0.1rem;
}

.site-footer {
  background-image: url("../tahoe_footer.jpg");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  color: white;
  padding: 3rem 2rem;
  aspect-ratio: 1440 / 360
}

.publication-list {
  padding: 0.5rem 2.0rem;
  font-size: 0.8rem;
}

.copyright {
  text-align: right;
  font-size: 0.8rem;
}

.githublogo {
  width: 250px;
}
