/**
 * FSU brand palette — https://brand.fsu.edu/visual-style
 * Primary: Garnet #782F40, Gold #CEB888, White
 * Secondary: Stadium Night #101820, Plaza Brick #572932, Gulf Sands #DFD1A7
 */
:root {
  --fsu-garnet: #782f40;
  --fsu-gold: #ceb888;
  --fsu-white: #ffffff;
  --stadium-night: #101820;
  --plaza-brick: #572932;
  --gulf-sands: #dfd1a7;
}

/**
 * Typography & base
 */
html {
  font-size: 62.5%;
}
body {
  font-size: 1.5em;
  line-height: 1.6;
  font-weight: 400;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: rgba(255, 255, 255, .92);
}
a {
  font-weight: normal;
  text-decoration: none;
  color: var(--fsu-gold);
}
a:hover,
a:focus {
  text-decoration: underline;
}
small {
  font-size: 75%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: var(--fsu-white);
}
h1 { font-size: 3.0rem; letter-spacing: -.05rem; }
h2 { font-size: 2.4rem; letter-spacing: -.05rem; border-bottom: 2px solid var(--fsu-garnet); padding-bottom: .5rem; }
h3 { font-size: 1.9rem; letter-spacing: -.03rem; color: var(--fsu-gold); }
h4 { font-size: 1.6rem; }

p {
  margin: 0 0 1.5em 0;
}

ul, ol {
  margin: 0 0 1.5em 0;
  padding-left: 1.6em;
}
li {
  margin-bottom: .4em;
}

/**
 * Layout
 */
html, #page-wrap { background-color: transparent; }
html {
  background: var(--stadium-night) url(images/Cloud_Background.jpg) center center no-repeat fixed;
  background-size: cover;
}
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
}
body {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
}
#page-wrap {
  background: rgba(16, 24, 32, .88);
  border-radius: 6px;
  overflow: hidden;
}
header, #content, footer {
  padding: 25px;
}
footer {
  border-top: 1px solid var(--fsu-garnet);
  font-size: 1.3rem;
  color: var(--gulf-sands);
}
footer .disclaimer {
  font-size: 1.2rem;
  color: rgba(223, 209, 167, .6);
  margin-bottom: 0;
}
iframe, img {
  max-width: 100%;
}

/**
 * Header / nav
 */
header {
  padding-bottom: 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.site-title {
  min-width: 0;
  color: inherit;
}
.site-title h1 {
  margin-bottom: .2rem;
}
@media (min-width: 701px) {
  .site-title h1 {
    font-size: 2.0rem;
    white-space: nowrap;
  }
}
.site-title .tagline {
  margin: 0;
  font-size: 1.4rem;
  color: var(--gulf-sands);
  font-style: italic;
}
.site-title:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--fsu-gold);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fsu-white);
}

nav#main-nav {
  margin-top: 1.5rem;
}
ul.main-menu {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  border-top: 1px solid var(--fsu-garnet);
}
ul.main-menu > li {
  position: relative;
  margin: 0;
}
ul.main-menu > li > a {
  display: block;
  padding: 1.1rem 1.4rem;
  font-size: 1.6rem;
  color: var(--gulf-sands);
  border-bottom: solid transparent 3px;
  white-space: nowrap;
}
ul.main-menu > li > a:hover,
ul.main-menu > li > a:focus {
  color: var(--fsu-white);
  text-decoration: none;
}
ul.main-menu > li > a.active {
  color: var(--fsu-white);
  border-bottom-color: var(--fsu-gold);
}

/* Dropdowns */
li.has-dropdown {
  position: relative;
}
ul.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: var(--stadium-night);
  border: 1px solid rgba(206, 184, 136, .35);
  border-radius: 4px;
  padding: .5rem 0;
  margin: 0;
  list-style: none;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
li.has-dropdown:hover > ul.dropdown,
li.has-dropdown:focus-within > ul.dropdown {
  display: block;
}
ul.dropdown li {
  margin: 0;
}
ul.dropdown a {
  display: block;
  padding: .6rem 1.2rem;
  font-size: 1.4rem;
  color: var(--gulf-sands);
}
ul.dropdown a:hover {
  color: var(--fsu-gold);
  background: rgba(255,255,255,.06);
  text-decoration: none;
}

/**
 * Content blocks
 */
section.block {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(206, 184, 136, .25);
}
section.block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .1rem;
  font-size: 1.2rem;
  color: var(--fsu-gold);
  margin-bottom: .3rem;
}
.meta {
  color: var(--gulf-sands);
  font-size: 1.3rem;
}

/* Cards / grid (group members, news) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(206, 184, 136, .2);
  border-radius: 6px;
  padding: 1.2rem;
}
.card img.headshot {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: .3rem;
}
.card .role {
  color: var(--gulf-sands);
  font-size: 1.3rem;
  margin-bottom: .6rem;
}

/* Floated bio card next to intro text (index.html, about-me.html) */
.hero-bio-card {
  max-width: 220px;
  float: right;
  margin-left: 1.5rem;
}

/* Small preview screenshots (e.g. TerraSol on the Outreach page) */
.screenshot-preview {
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(206, 184, 136, .25);
  border-radius: 6px;
  margin-top: .5rem;
}

.social-links {
  display: flex;
  gap: .8rem;
}
.social-links a {
  color: var(--gulf-sands);
  line-height: 0;
}
.social-links a:hover {
  color: var(--fsu-gold);
  text-decoration: none;
}

/* Papers / talks lists */
.pub-list {
  list-style: none;
  padding-left: 0;
}
.pub-list li {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(206, 184, 136, .18);
}
.pub-num {
  color: var(--fsu-gold);
  font-weight: 700;
  margin-right: .5rem;
}
.pub-links a {
  margin-right: .8rem;
  font-size: 1.3rem;
}

/* News list */
.news-item h3 {
  margin-bottom: .2rem;
}
.news-item .meta {
  margin-bottom: .6rem;
}

/* Research project rotator */
.rotator {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 6px;
  overflow: hidden;
  background: var(--stadium-night);
}
.rotator-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
.rotator-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.rotator-slide a {
  display: block;
  position: absolute;
  inset: 0;
}
.rotator-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rotator-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(16, 24, 32, .92), rgba(16, 24, 32, 0));
}
.rotator-caption h3 {
  margin-bottom: .3rem;
  color: var(--fsu-white);
}
.rotator-caption p {
  margin-bottom: 0;
  color: var(--gulf-sands);
  font-size: 1.4rem;
  max-width: 32rem;
}
.rotator-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(206, 184, 136, .4);
  border-radius: 50%;
  background: rgba(16, 24, 32, .6);
  color: var(--fsu-white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.rotator-arrow:hover {
  background: var(--fsu-garnet);
  border-color: var(--fsu-garnet);
}
.rotator-prev {
  left: 12px;
}
.rotator-next {
  right: 12px;
}
.rotator-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: .6rem;
}
.rotator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
  padding: 0;
}
.rotator-dot.active {
  background: var(--fsu-gold);
  border-color: var(--fsu-gold);
}
.rotator-note {
  margin-top: .8rem;
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .rotator {
    aspect-ratio: 4 / 5;
  }
  .rotator-caption p {
    max-width: none;
  }
}

/* Home hero */
.hero {
  margin-bottom: 2rem;
}
.hero p.lede {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, .95);
}
.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border: 1px solid var(--fsu-garnet);
  border-radius: 4px;
  background: var(--fsu-garnet);
  color: var(--fsu-white) !important;
}
.btn:hover {
  background: var(--fsu-gold);
  border-color: var(--fsu-gold);
  color: var(--stadium-night) !important;
  text-decoration: none;
}

/* Utility */
.hide { display: none; }

/**
 * Responsive
 */
@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }
  nav#main-nav {
    display: none;
  }
  nav#main-nav.open {
    display: block;
  }
  ul.main-menu {
    flex-direction: column;
    border-top: none;
  }
  ul.dropdown {
    position: static;
    display: block;
    border: none;
    background: rgba(255,255,255,.03);
    box-shadow: none;
    padding-left: 1rem;
  }
  li.has-dropdown:hover > ul.dropdown {
    display: block;
  }
  .hero-bio-card {
    float: none;
    max-width: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
  }
}
