/* =========================================================
   ECCE-CANN — Main stylesheet
   ========================================================= */


/* ---------------------------------------------------------
   Colour palette
   --------------------------------------------------------- */

:root {
  --ecce-green: #315C45;
  --ecce-green-light: #E8F0EB;
  --ecce-green-dark: #234333;
  --ecce-earth: #8A7355;
  --ecce-background: #FAFAF7;
}


/* ---------------------------------------------------------
   General
   --------------------------------------------------------- */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  background-color: var(--ecce-background);
}


/* ---------------------------------------------------------
   Main content
   --------------------------------------------------------- */

#quarto-content {
  max-width: 1100px;
  margin: 0 auto;
}


/* ---------------------------------------------------------
   Headings
   --------------------------------------------------------- */

.title {
  font-weight: 600;
  color: var(--ecce-green-dark);
}

h1,
h2,
h3 {
  color: var(--ecce-green-dark);
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
}

h3 {
  margin-top: 2rem;
}


/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

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

a:hover {
  color: var(--ecce-green-dark);
  text-decoration: underline;
}


/* ---------------------------------------------------------
   English Quarto navigation
   --------------------------------------------------------- */

.navbar {
  border-bottom: 3px solid var(--ecce-green);
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.nav-footer {
  margin-top: 4rem;
}


/* ---------------------------------------------------------
   Hero image
   --------------------------------------------------------- */

.hero-image {
  width: 100%;
  margin: 1rem 0 3rem 0;
}


/* ---------------------------------------------------------
   Team
   --------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.team-member {
  padding: 2rem;
  background-color: white;
  border-top: 3px solid var(--ecce-green);
}

.team-member h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.team-role {
  color: var(--ecce-green);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.team-links {
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.team-links a {
  color: var(--ecce-green);
  font-weight: 500;
}

.team-links a:hover {
  color: var(--ecce-green-dark);
}


/* ---------------------------------------------------------
   Team photos
   --------------------------------------------------------- */

.team-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1.5rem auto;
}


/* ---------------------------------------------------------
   Cannabis Ecologies diagram
   --------------------------------------------------------- */

.cannabis-ecologies-figure {
  display: block;
  width: 88%;
  max-width: 950px;
  margin: 2.5rem auto 1rem auto;
}

/* ---------------------------------------------------------
   Responsive layout
   --------------------------------------------------------- */

@media (max-width: 900px) {

  .ecce-es-navbar-inner {
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
  }

  .ecce-es-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
  }
}


@media (max-width: 700px) {

  .team-grid {
    grid-template-columns: 1fr;
  }

}

footer.footer {
  background-color: var(--ecce-earth);
  color: white;
}

footer.footer a {
  color: white;
}

.nav-footer {
  margin-top: 4rem;
}

.ecce-context-figure {
  float: right;
  width: 36%;
  max-width: 360px;
  margin: 0.3rem 0 1.5rem 2rem;
}

.ecce-context-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .ecce-context-figure {
    float: none;
    width: 75%;
    max-width: 360px;
    margin: 1rem auto 1.5rem auto;
  }
}