/*
 Theme Name:   Citrus
 Theme URI:    https://generatepress.com
 Description:  Fast, flexible, customizable
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      1.0
*/


/* variables and fonts */

:root {
  --bg: #ffffff;
  --text: #222222;
  --accent: #03C03C;
}

@font-face {
  font-family: 'Inter';
  src: url('Inter.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Contrail';
  src: url('Contrail.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* body and sticky footer */

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Contrail', super-serif, Georgia, "Times New Roman", "New York", Baskerville, Cambria, serif;
  font-weight: 400;
}

.container.grid-container {
  width: 100%;
}

.site-footer {
  margin-top: auto;
  padding: 40px 20px 0px 20px;
}


/* header */

.main-navigation .main-nav > ul > li > a {
  font-weight: 500;
}

.mobile-menu-control-wrapper button.menu-toggle:is(:hover, :focus),
.mobile-menu-control-wrapper button.menu-toggle,
.has-inline-mobile-toggle #site-navigation.toggled {
  background-color: transparent;
}


/* footer */

.site-info {
  max-width: 1120px;
  margin-inline: auto;
}

.inside-site-info {
  border-top: 2px solid var(--base);
  padding: 20px 0;
  display: block;
}

.copyright-bar ul {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
}

.copyright-bar ul li a {
  text-decoration: none;
}


/* desktop media queries */

@media (min-width: 769px) {

  /* footer */

  .copyright-bar ul {
    flex-direction: row;
    align-items: center;
  }

  .copyright-bar ul li:first-child {
    margin-inline-end: auto;
  }

  .copyright-bar ul li a {
    color: var(--text);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
  }

  .copyright-bar ul li a:hover {
    border-bottom-color: var(--accent);
  }
}


/* mobile media queries */

@media (max-width: 768px) {

  /* header */

  .main-navigation .main-nav > ul > li > a {
    font-size: 18px;
    font-weight: 500;
  }

  /* footer */

  .copyright-bar ul {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    align-items: center;
    row-gap: 16px;
  }

  .copyright-bar ul li:first-child {
    grid-column: 1 / -1;
    order: 1;
    text-align: left;
  }
}