/* 
  This is the main CSS file for the Community Garden plugin.
  It is used to set some overall default styles.
  Anything dynamic and variables are handled in the site-settings.php file.
*/

html {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

/* Apply site-wide colors */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-text);
  background-color: var(--color-background);

  /* Push footer to the bottom of the page */
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-highlight);
}

/* set widths here to give more flexibility */
header,
nav,
main,
footer {
  max-width: var(--site-width);
}

main {
  /* we are using flexbox 👆🏾 to push the footer to the bottom of the page */
  flex: 1;
}

footer {
  font-size: 0.75rem;
  padding: 1rem;
  text-align: center;
}

nav li {
  font-weight: 600;
  font-size: 1.25rem; /* f4 */
}

/* the theme applies the class*/
nav a.active {
  border-bottom: 0.08em solid var(--color-highlight, #000);
}

a.back-link {
  font-size: 1rem;
  display: block;
  margin-bottom: 2rem; /* mb4 */
  text-decoration: none;
}

/* Make images responsive */
figure {
  margin: 0;
}

/* Make iframes responsive */
iframe {
  width: 100%;
  /* Adjust the aspect ratio as needed, for example: 16/9 for a 16:9 ratio */
  aspect-ratio: 16/9;
  border: 0;
  display: block; /* Prevent inline element spacing issues */
}
