@import url('https://fonts.googleapis.com/css2?family=Fredoka:wdth,wght@75..125,300..700&family=Kite+One&family=SN+Pro:ital,wght@0,200..900;1,200..900&display=swap');

:root {
  --content-width: 100vw;
  --background-nav: #24753f;
  --background-body: white;
  --font-size: 24px;
  --font-family-heading: "Fredoka";
  --font-family-accent: "Kite One";
  --font-family-body: "SN Pro";
  --line-height: 1.5;
  font-synthesis: none !important;
}
body {
  background: var(--background-body);
  margin: 0;
  font-size: var(--font-size);
  font-family: var(--font-family-body);
  font-weight: 300;
  line-height: var(--line-height);
  align-items: stretch;
}
nav {
  color: white;
  top: 0;
  background: var(--background-nav);
  position: fixed;
  z-index: 1;
  height: 3.5em;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--font-size) * 0.7);
}
nav ul {
  background: var(--background-nav);
  position: absolute;
  margin: 0;
  padding: 0 1em 0 1em;
  top: 3.5em;
  left: 0;
  list-style-type: none;
  overflow: hidden;
}
nav ul li {
  box-sizing: border-box;
  height: 0;
  transition: height 0.1s;
  margin: 0; 
}
nav.open li {
  height:jcalc(var(--line-height) * var(--font-size) + 0.5em);
}
nav a {
  text-decoration: none;
  font-weight: 800;
  padding: 0 0.3em 0.2em 0.3em;
}
nav #nav-menu {
   width: 1em;
   height: 1em;
   background: 100% url("burger.svg");
   position: absolute;
   left: 1em;
}
@media (width > 600px) {
  nav {
    font-size: var(--font-size);
  }
}
@media (width > 1000px) {
  nav #nav-menu {
     display: none;
  }
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1;
    height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  nav ul {
    display: inline;
    position: static;
    padding: 0;
  }
  nav ul li {
    display: inline;
  }
}

section {
  position: relative;
  background-origin: padding-box;
  background-repeat: no-repeat;
  max-width: 1500px;
  margin: 100px auto auto;
}
h1, h2 {
  font-family: var(--font-family-heading);
  font-weight: 500;
  font-width: 80%;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
section .content {
  max-width: 1400px;
  margin: 0 1em;
  background-color: white;
  padding-bottom: 2em;
  color: black;
}
section .content > * {
  max-width: 800px;
  margin: 1em auto;
}
footer {
  text-align: center;
  font-size: 0.7em;
  width: 50%;
  border-top: 1px solid gray;
  padding-top: 1em;
  margin: 2em auto 1em auto;
}
.hidden {
  display: none !important;
}

img.block {
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}
img + figcaption {
  margin-bottom: 0;
}
.caption, figcaption {
  font-size: 85%;
  font-family: var(--font-family-accent);
}
img.center + figcaption {
  text-align: center;
}
a {
  color: inherit;
  font-weight: 600;
}
i {
  font-style: normal;
  font-family: var(--font-family-accent);
}

blockquote {
  position: relative;
  font-style: italic;
  flex: 1;
  font-family: var(--font-family-accent);
  background-image: url(images/bquote.png);
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: -0px 0;
  margin: 2em 0;
  padding-left: 40px;
  font-weight: 400;
}

.more::before {
  content: url("more.svg");
  position: relative;
  top: 0.3em;
  width: 1em;
  height: 1em;
  display: inline-block;
  font-weight: 800;
}
.more span {
  display: none;
}

blockquote cite {
  display: block;
  text-align: right;
  margin-top: 1em;
}
blockquote cite::before {
  content: "-- ";
}

.content.testimonial {
  max-width: var(--content-width);
  padding: 2em 0;
  overflow-x: hidden;
}

#message-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#message-form > *{
  font: inherit;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid gray;
}
#message-sender {
  flex: 1;
}
#message-send {
  padding: 0 2em;
  background: #ddd;
}
#message-subject {
  z-index: -1;
  position: absolute;
}
#message-body {
  min-width: 100%;
  height: 8em;
}
#message-confirmation {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 3em;
  background: white;
  border: 1px solid black;
  text-align: center;
}
