:root {

  --color-bg: #ffffff;          
  --color-surface: #ffffff;     
  --color-text: #29302e;
  --color-muted: #566260;
  --color-border: #a9d0c6;      
  --color-accent: #053ffc;      /* WP link / accent blue */
  --color-accent-dark: #0a2db0;
  --color-header: #2f6b5e;      /* deep teal (mint family) for nav/footer */
  --color-header-dark: #25564b;
  --color-header-text: #134e4a; /* dark teal header text (all pages) */
  --color-heading: #15315c;     /* navy blue page headings */
  --max-width: 1100px;
  --content-width: 760px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  border: 12px solid #d8ede8;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-heading);
  margin: 0 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }

p { margin: 0 0 1.1em; }

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

a:hover, a:focus {
  text-decoration: underline;
}

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

ul {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.4em;
}

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

/* Header / Nav */

.site-header {
  background: #ffffff;
  color: var(--color-header);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: var(--color-header-text);
  letter-spacing: 0.3px;
}

.site-title:hover {
  text-decoration: none;
  color: #0a3a3a;
}

.site-title .degree {
  font-weight: 400;
  opacity: 0.85;
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--color-header-text);
  line-height: 1;
  padding: 4px 8px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: var(--color-header-text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a:focus {
  background: rgba(0,0,0,0.05);
  text-decoration: none;
}

/* Current page: glowing purple text, no box */
.nav-links a.active,
.nav-links a.active:hover {
  background: transparent;
  color: #8a2be2;
  font-weight: 700;
  text-shadow:
    0 0 6px rgba(138, 43, 226, 0.65),
    0 0 14px rgba(138, 43, 226, 0.45);
}

@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
  }
  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }
  .nav-links a { padding: 10px 12px; }
}

/* Intro (headshot + bio) */

.intro {
  padding: 48px 0 28px;
}

.intro .container {
  display: flow-root; /* contain the floated headshot */
}

.intro .headshot {
  float: left;
  width: 172px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  margin: 6px 26px 10px 0;
}

.intro h1 {
  margin-bottom: 0.1em;
}

.intro .tagline {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 1.3em;
}

.intro p {
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  .intro .headshot {
    float: none;
    display: block;
    margin: 0 auto 22px;
    width: 150px;
  }
  .intro h1, .intro .tagline {
    text-align: center;
  }
}

/* Sections */

section {
  padding: 36px 0;
}

.section-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Project cards grid */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-body h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.project-card-body p {
  color: var(--color-muted);
  font-size: 0.96rem;
  flex: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Books */

.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
}

.book-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
  color: var(--color-text);
}

.book-cover:hover {
  text-decoration: none;
}

.book-cover img {
  width: 120px;
  height: auto;          /* preserve the cover's natural ratio */
  border-radius: 4px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.book-cover:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.book-cover span {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-muted);
}

.book-cover:hover span em {
  color: var(--color-accent);
}

/* Page header (project / publications pages) */

.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 44px 0;
}

.page-hero h1 {
  margin-bottom: 0.3em;
}

.page-hero .subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

.page-figure {
  margin: 28px 0;
  text-align: center;
}

.page-figure img {
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  max-height: 420px;
  width: auto;
}

.page-figure figcaption {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin-top: 10px;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.gallery figure {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Credits / team lists */

.credit-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0;
}

.credit-block h4 {
  margin-top: 0;
}

.credit-block ul {
  margin-bottom: 0;
}

/* Publications */

.pub-list h2 {
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 8px;
}

.pub-list ul {
  list-style: none;
  padding-left: 0;
}

.pub-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.97rem;
}

.pub-list li:last-child {
  border-bottom: none;
}

/* Book entries with a small cover thumbnail */
.pub-list li.pub-book {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pub-list li.pub-book img {
  height: 3.4em;          /* ~ the height of the citation text */
  width: auto;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-top: 2px;
}

.scholar-link {
  display: inline-block;
  margin-bottom: 1.6em;
  font-weight: 600;
}

/* Tips list */

.tip-list li {
  margin-bottom: 0.9em;
}

.resource-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 16px;
}

/* Footer */

.site-footer {
  background: var(--color-header-dark);
  color: #d4e7e2;
  margin-top: 48px;
  padding: 28px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #cdeee6;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.back-home {
  display: inline-block;
  margin: 18px 0 0;
  font-weight: 600;
}

/* ============================================================
   ELLE page theme — matches the chdr.cs.ucf.edu/elle platform
   (slate blue #3f6184 + teal #5da8af on light backgrounds)
   ============================================================ */

body.elle-theme {
  /* keep the platform's slate-blue accents, but share the site background */
  --color-surface: #ffffff;
  --color-border: #c7d8e2;
  --color-muted: #566472;
  --color-text: #20303f;
  --color-accent: #3f6184;
  --color-accent-dark: #2f4a66;
  --color-header-dark: #2f4a66;
}

body.elle-theme .page-figure img {
  border-radius: 12px;
}

/* Per-game entries (title, team dropdown, thumbnail, description) */

.game-entry {
  padding: 14px 0 24px;
  border-bottom: 1px solid var(--color-border);
}

.game-entry:last-of-type {
  border-bottom: none;
}

.game-entry h3 {
  margin: 0 0 10px;
}

.game-entry .year {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.game-entry .team {
  max-width: 540px;
  margin: 0 0 14px;
}

.game-thumb {
  display: block;
  width: 100%;
  max-width: 540px;       /* same width as the Student team dropdowns */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  margin: 0 0 14px;
}

.game-entry p {
  margin-bottom: 0;
}

/* Development team dropdowns */

.team-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.team {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.team > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  background: var(--color-accent);
  color: #ffffff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.team > summary::-webkit-details-marker { display: none; }

.team > summary::after {
  content: "\25BE";
  color: #ffffff;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.team[open] > summary::after { transform: rotate(180deg); }

.team > summary:hover { background: var(--color-accent-dark); }

.team .year {
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

.team .team-group {
  margin: 14px 20px 2px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-heading);
}

.team .roster {
  margin: 0;
  padding: 2px 20px 8px 38px;
  columns: 2;
}

.team > .roster:last-child {
  padding-bottom: 16px;
}

.team .roster li {
  margin-bottom: 4px;
  break-inside: avoid;
}

@media (max-width: 520px) {
  .team .roster { columns: 1; }
}

/* ELLE table of contents */

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0 8px;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.toc ul {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 32px;
  font-size: 0.95rem;
}

.toc li {
  margin-bottom: 5px;
  break-inside: avoid;
}

@media (max-width: 560px) {
  .toc ul { columns: 1; }
}

.game-entry { scroll-margin-top: 80px; }

/* Publications & presentations */

.pub-venue {
  font-weight: 700;
  color: var(--color-heading);
  margin: 18px 0 2px;
  font-size: 0.95rem;
}

.pub-cite {
  margin: 0 0 4px;
  padding-left: 1.2em;
  font-size: 0.95rem;
  color: var(--color-text);
}
