
/* =========================================
   Jen Jordan — Academic Website
   ========================================= */

/* Color palette */
:root {
  --forest: #285943;
  --forest-dark: #263B31;
  --sage: #9CAF88;
  --cream: #FAFAF6;
  --text: #303A34;
  --muted: #65736A;
  --divider: #DCE5D9;
}

/* General page styling */
body {
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* =========================================
   Navigation
   ========================================= */

.navbar {
  background-color: var(--forest-dark) !important;
  border-bottom: none;
}

.navbar-brand,
.navbar .nav-link,
.navbar .navbar-nav .nav-link,
.navbar .quarto-navigation-tool {
  color: #F8F8F4 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .quarto-navigation-tool:hover {
  color: #C8D9BA !important;
}


/* =========================================
   Full-width forest banner
   ========================================= */

/* Remove the duplicate page title */
body:has(.hero-banner) #title-block-header {
  display: none;
}

/* Remove extra space above the banner */
body:has(.hero-banner) #quarto-content {
  padding-top: 0;
}

/* Full browser-width banner */
.hero-banner {
  width: 100vw;
  max-width: none;
  min-height: 280px;

  position: relative;
  left: 50%;
  margin-left: -50vw;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding: 2.5rem max(5%, calc((100vw - 1100px) / 2));

  background-image:
    linear-gradient(
      rgba(25, 40, 30, 0.30),
      rgba(25, 40, 30, 0.30)
    ),
    url("images/forest-banner.jpg");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  color: white;
}

/* Banner headline */
.hero-banner h1 {
  color: white;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;

  max-width: 650px;
  margin: 0;

  border: none;
}



/* Homepage content beneath banner */
.homepage-content {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Photo and biography layout */
.homepage-content .columns {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Photo column */
.homepage-content .columns > .column:first-child {
  flex: 0 0 30%;
  max-width: 30%;
  min-width: 0;
}

/* Biography column */
.homepage-content .columns > .column:last-child {
  flex: 1;
  min-width: 0;
}

/* Keep the fieldwork photo neatly sized */
.homepage-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Homepage name — style only the heading */
.homepage-content #homepage-name {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: var(--forest-dark) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;

  margin: 0 0 1.2rem 0 !important;
  padding: 0 0 0.65rem 0 !important;
  border: none !important;

  display: block;
  position: relative;
}

/* Short accent line under name */
.homepage-content #homepage-name::after {
  content: "";
  display: block;
  width: 85px;
  height: 3px;
  background-color: var(--sage);
  margin-top: 0.65rem;
}

/* =========================================
   Typography
   ========================================= */

h1, h2, h3 {
  color: var(--text);
  font-weight: 600;
}

h2 {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 0.3rem;
}

/* Links */
a {
  color: var(--forest);
}

a:hover {
  color: #447B5E;
}

/* Photo captions */
.quarto-figure-caption,
.figure-caption {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.5rem;
}

/* =========================================
   Mobile and Tablet Layout
   ========================================= */

@media (max-width: 768px) {

  .hero-banner {
    min-height: 180px;
    padding: 2rem;
  }

  .hero-banner h1 {
    font-size: 1.7rem;
    max-width: 100%;
  }

  .homepage-content {
    margin: 2rem auto;
    padding: 0 1.25rem;
  }

/* Full-width photograph above biography on mobile */
.homepage-content .columns {
  display: block !important;
}

.homepage-content .columns > .column {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}

.homepage-content .columns img {
  width: 100% !important;
  max-width: none !important;
  height: auto;
}

.homepage-content .columns > .column:last-child {
  margin-top: 1.5rem;
}

.homepage-content #homepage-name {
  font-size: 2.3rem !important;
}
}

/* =========================================
   Research Overview: text and photograph
   ========================================= */

/* Two clearly separated columns */
#research-overview + .columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  column-gap: 3.5rem;
  align-items: start;
}

/* Research text column */
#research-overview + .columns > .column:first-child {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  padding: 0;
  margin: 0;
}

/* Research photo column */
#research-overview + .columns > .column:last-child {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  padding: 0;
  margin: 0;
}

/* Research photograph */
#research-overview + .columns img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Research photograph caption */
#research-overview + .columns figcaption {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #65736A;
  margin-top: 0.5rem;
}

/* Stack the text and photograph on smaller screens */
@media (max-width: 768px) {
  #research-overview + .columns {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  #research-overview + .columns img {
    max-width: 320px;
  }
}

/* =========================================
   Research, Publications, and CV pages
   ========================================= */

/* Keep interior page content neatly centered */
.interior-content {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Prevent extra space above the first heading */
.interior-content > h2:first-child {
  margin-top: 0;
}

/* Smaller margins on phones */
@media (max-width: 768px) {
  .interior-content {
    margin: 2rem auto;
    padding: 0 1.25rem;
  }
}


/* Final spacing adjustment for Research Overview */

/* Add breathing room between the text and photograph */
#research-overview + .columns > .column:first-child {
  padding-right: 2.5rem !important;
  box-sizing: border-box;
}

/* Remove extra padding when columns stack on mobile */
@media (max-width: 768px) {
  #research-overview + .columns > .column:first-child {
    padding-right: 0 !important;
  }
}

/* Research photo: fixed size and separation */
.research-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px !important;
  gap: 64px !important;
  align-items: start;
}

.research-photo {
  width: 240px !important;
  max-width: 240px !important;
}

.research-photo img,
img[src$="research-fieldwork.jpeg"] {
  width: 240px !important;
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .research-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
}
