/* ============================================================
   FONT DECLARATIONS
   Local font files loaded from assets/fonts/
   ============================================================ */

@font-face {
  font-family: 'Lazer84';
  src: url('../fonts/Lazer84/Lazer84.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EB_Garamond/EBGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EB_Garamond/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

@font-face {
  font-family: 'Source Code Pro';
  src: url('../fonts/Source_Code_Pro/SourceCodePro-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Source Code Pro';
  src: url('../fonts/Source_Code_Pro/SourceCodePro-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

@font-face {
  font-family: 'Pump';
  src: url('../fonts/Pump/PumpOpti-Medium.otf') format('opentype');
  font-weight: 500;
}

@font-face {
  font-family: 'Pump';
  src: url('../fonts/Pump/PumpOpti-DemiBold.otf') format('opentype');
  font-weight: 600;
}

/* ============================================================
   BODY & GENERAL TEXT
   Base font, size, line height, and color for all body text
   ============================================================ */
body, p, li, td, th, blockquote {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text-body);
}

/* ============================================================
   HEADINGS
   All h1-h6 use Pump font
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Pump', Georgia, serif !important;
  font-weight: 600;
}

/* ============================================================
   CODE & MONOSPACE
   Inline code, code blocks, and teletype text
   ============================================================ */
code, pre, tt {
  font-family: 'Source Code Pro', monospace !important;
  font-size: 0.88rem;
}

/* ============================================================
   LINKS
   Default link color, visited, and hover states
   ============================================================ */
a, a:visited, a:link {
  font-family: 'EB Garamond', Georgia, serif !important;
  color: var(--teal-dark) !important;
  text-shadow: 1px 0px 0px var(--black);
}

a:hover {
  color: var(--pink-light) !important;
  text-decoration: none !important;
}

/* ============================================================
   GRADIENT TEXT STYLES
   .gradient-text  — light teal to light pink (used for main title)
   .gradient-text2 — dark teal to dark pink (used for subtitles)
   ============================================================ */
.gradient-text {
  background: linear-gradient(to right, var(--teal-light), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.gradient-text2 {
  background: linear-gradient(to right, var(--teal-dark), var(--pink-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  filter: drop-shadow(1px 1px 0px rgba(0,0,0,0.9));
}

/* ============================================================
   LAYOUT
   Removes Minima's default padding/margin from the content wrapper
   so the paper-layer can center itself
   ============================================================ */
.page-content {
  padding: 0 !important;
  overflow-x: hidden;
}

.page-content > .wrapper {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================================
   FLOATING PAPER
   The white/translucent content card floating over the background
   Adjust border-radius, border color, and box-shadow for the glow
   ============================================================ */
.paper-layer {
  background-color: var(--paper-bg);
  max-width: 850px;
  margin: 30px auto;
  padding: 60px;
  box-shadow:
    -10px 0 40px rgba(var(--cyan-rgb), 0.747),
    10px 0 40px rgba(var(--pink-light-rgb), 0.733),
    0 10px 40px rgba(var(--cyan-rgb), 0.690);
  border-radius: 50px;
  border: 5px solid var(--cyan);
}

.paper-layer::after {
  content: "";
  display: table;
  clear: both;
}

/* ============================================================
   HEADER
   Top bar — transparent background, Pump font
   ============================================================ */
.site-header {
  background-color: transparent !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  font-family: 'Pump', Times, serif;
}

/* Site title (upper left) */
.site-header .site-title,
.site-header .site-title:visited,
.site-header a.site-title {
  font-family: 'Pump', sans-serif !important;
  font-size: 2.0rem !important;
  letter-spacing: 0.05em;
  transition: text-shadow 0.2s ease;
}

.site-header a:hover {
  text-shadow: 1px 2px 4px var(--teal-dark) !important;
}

/* Nav links (upper right — About, Research, etc.) */
.site-nav a {
  font-family: 'Pump', Georgia, serif !important;
  transition: text-shadow 0.2s ease;
}

.site-nav a:hover {
  text-shadow: 1px 2px 4px var(--teal-dark) !important;
}

/* ============================================================
   FOOTER
   Bottom bar — transparent background, light text
   ============================================================ */
.site-footer {
  background-color: transparent !important;
  border-top: none !important;
  box-shadow: none !important;
  color: var(--pink-light);
}

/* Header and footer link/text colors */
.site-title, .site-title:visited,
.site-nav a, .site-nav a:visited,
.site-footer a, .site-footer a:visited,
.footer-col, .footer-col p {
  color: var(--pink-light) !important;
}

/* ============================================================
   PUBLICATIONS
   Citation.js rendered entries
   ============================================================ */
#publications-list {
  font-family: 'EB Garamond', Times, serif;
  color: var(--text-dark);
}

.csl-entry {
  margin-bottom: 2em;
  padding-left: 1.5em;
  text-indent: -1.5em; /* Hanging indent */
}

.csl-entry a {
  color: var(--link-academic);
  text-decoration: none;
}

.csl-entry a:hover {
  text-decoration: underline;
}

/* ============================================================
   PRESS PAGE
   .press-entry — flex row container for each press item
   .press-img   — thumbnail image
   ============================================================ */
.press-entry {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.press-entry a strong {
  font-size: 1.5em;
}

.press-img {
  border-radius: 8px;
  border: 3px solid var(--pink-light);
  flex-shrink: 0;
}

/* ============================================================
   YOUTUBE EMBEDS
   Responsive 16:9 wrapper — works at any width
   ============================================================ */
.yt-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin-bottom: 24px;
}

.yt-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 2px solid var(--cyan);
}

/* ============================================================
   APPLET LAUNCH BUTTON
   Shared across applets.markdown and any research page
   ============================================================ */
.applet-launch-btn {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--text-bright);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 2px;
  padding: 10px 28px;
  margin: 6px 8px;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid var(--teal-light);
  box-shadow:
    -8px 0 30px rgba(var(--cyan-rgb), 0.5),
     8px 0 30px rgba(var(--pink-light-rgb), 0.5),
     0 4px 20px rgba(var(--cyan-rgb), 0.35);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
canvas:focus, canvas {
  outline: none !important;
}

.applet-launch-btn:focus,
.applet-launch-btn:focus-visible,
.applet-launch-btn:active {
  outline: none !important;
  box-shadow: none;
}

.applet-launch-btn:hover {
  background: var(--bg-mid);
  box-shadow:
    -12px 0 40px rgba(var(--cyan-rgb), 0.75),
     12px 0 40px rgba(var(--pink-light-rgb), 0.75),
     0 6px 30px rgba(var(--cyan-rgb), 0.5);
}

/* ============================================================
   HOME PAGE
   .home-title      — main name heading
   .home-photo-wrap — photo container
   .home-photo-img  — photo itself
   .home-videos     — video row
   .home-video      — individual video
   ============================================================ */
.home-title {
  font-size: 4em;
  text-align: center;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.9));
}

.home-photo-wrap {
  text-align: center;
  margin: 40px auto;
  width: 66%;
}

.home-photo-img {
  width: 50%;
  border-radius: 20px;
  border: 5px solid var(--pink-light);
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.9));
}

.home-videos {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.home-video {
  flex: 1;
  min-width: 0;
  border-radius: 15px;
  border: 3px solid var(--teal-light);
  filter: drop-shadow(1px 1px 5px rgba(0,0,0,0.9));
}

.home-subtitle {
  font-size: 1.3em;
}

/* ============================================================
   ABOUT PAGE
   .about-img        — shared image base styles
   .about-img-right  — float right (desktop)
   .about-img-left   — float left (desktop)
   .about-img-center — centered block (desktop)
   .about-img-35     — 35% width variant
   .about-img-30     — 30% width variant
   ============================================================ */
.about-img {
  border-radius: 15px;
  border: 5px solid var(--pink-light);
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.9));
  width: 40%;
}

.about-img-right {
  float: right;
  margin: 0 0 20px 20px;
}

.about-img-left {
  float: left;
  margin: 20px 20px 0 0;
}

.about-img-center {
  display: block;
  float: none;
  width: 55%;
  margin: 20px auto;
}

.about-img-35 { width: 35%; }
.about-img-30 { width: 30%; }

/* ============================================================
   RESEARCH PAGE
   .research-img-placeholder — under-construction image
   .research-video-float     — floated video (agency section)
   .research-video-flex-wrap — flex container (evolution section)
   .research-video-flex      — video inside flex container
   ============================================================ */
.research-img-placeholder {
  display: block;
  width: 55%;
  margin: 0 auto 20px;
  border-radius: 15px;
  border: 5px solid var(--pink-light);
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.9));
}

.research-video-float {
  float: right;
  width: 50%;
  margin: 0 0 20px 20px;
  border-radius: 15px;
  border: 3px solid var(--teal-light);
  filter: drop-shadow(-1px 1px 5px rgba(0,0,0,0.9));
}

.research-video-flex-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.research-video-flex {
  flex-shrink: 0;
  width: 50%;
  border-radius: 15px;
  border: 3px solid var(--teal-light);
  filter: drop-shadow(-1px 1px 5px rgba(0,0,0,0.9));
}

/* ============================================================
   MOBILE OVERRIDES  (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .paper-layer {
    margin: 20px auto;
    padding: 24px 18px;
    border-radius: 20px;
    box-shadow: none;
    border-width: 2px;
  }

  .home-title {
    font-size: 2.8em;
  }

  .home-subtitle {
    font-size: 0.95em;
  }

  .home-photo-wrap {
    width: 90%;
  }

  .home-photo-img {
    width: 70%;
  }

  .site-header .site-title {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .home-videos {
    width: 100%;
    gap: 6px;
  }

  .about-img,
  .about-img-35,
  .about-img-30 {
    float: none;
    display: block;
    width: 80%;
    margin: 16px auto;
  }

  .about-img-center {
    width: 90%;
  }

  .research-img-placeholder {
    width: 85%;
  }

  .research-video-float {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 16px 0;
  }

  .research-video-flex-wrap {
    flex-direction: column;
  }

  .research-video-flex {
    width: 100%;
  }

  .press-entry {
    flex-direction: column;
  }

  .press-img {
    width: 100% !important;
  }

  .lecture-poster {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }
}

/* ============================================================
   MOBILE-ONLY NAV STYLES — scoped to is-mobile so desktop zoom
   does not trigger the dropdown background / border
   ============================================================ */
html.is-mobile .site-nav .trigger {
  z-index: 50;
  position: relative;
  background-color: var(--bg-dark);
  border: 2px solid var(--cyan);
  border-radius: 8px;
  padding: 8px;
  box-shadow:
    -6px 0 20px rgba(var(--cyan-rgb), 0.5),
     6px 0 20px rgba(var(--pink-light-rgb), 0.5),
     0 6px 20px rgba(var(--cyan-rgb), 0.35);
}

html.is-mobile .site-nav label[for="nav-trigger"] {
  border: 2px solid var(--cyan);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow:
    0 0 10px rgba(var(--cyan-rgb), 0.5),
    0 0 10px rgba(var(--pink-light-rgb), 0.5);
}

html.is-mobile .site-nav .menu-icon svg path {
  fill: var(--pink-light);
}

/* Sag A* nav icon */
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.nav-sag-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.nav-icon-link:hover .nav-sag-icon {
  transform: scale(1.2);
}

/* ── Suppress all focus rings on header ── */
.site-header *:focus,
.site-header *:focus-visible,
.site-nav:focus,
.site-nav:focus-visible,
.trigger:focus,
.trigger:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
}
