* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  font-weight: normal;
  font-size: 1.1rem;
  line-height: 1.5rem;
  background-color: #FFFCF0;
  color: #1C1B1A;
}

p {
  margin-block: 1lh;
  text-wrap: pretty;
}

header {
  padding: 4em 2em;
  /* fallback for browsers lh without support */
  padding: 4lh 2lh;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 3lh;
  justify-content: center;
  align-items: center;
}

svg {
  margin: auto;
  display: flex;
  width: 15vw;
  max-width: 10em;
  min-width: 5em;
}

@keyframes raiseAndFade {
  0% {
    transform: translateY(50%) rotate(16deg);
    opacity: 0;
  }

  30% {
    opacity: 0;
  }

  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

#cthulhu {
  animation: raiseAndFade 3s ease-in-out forwards;
}

.topstuff {
  align-content: center;
  max-width: 65ch;
  text-align: center;
}

.topstuff a {
  color: #66800B;
  font-weight: 600;
  text-decoration: none;
}

.topstuff a:hover {
  color: #879A39;
}

.topstuff h1,
.topstuff h2 {
  display: none;
}

.text-logo {
  max-width: clamp(30ch, 70%, 50ch);
}

h1 {
  font-size: 4rem;
  line-height: 4rem;
  text-wrap: pretty;
}

h2 {
  font-size: 2rem;
  line-height: 3rem;
  text-wrap: pretty;
}

section {
  border-top: solid rgba(255, 255, 255, 0.15) .5lh;
  border-bottom: solid rgba(255, 255, 255, 0.15) .5lh;
  color: #fff;
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2lh;
  max-width: 1300px;
  margin: auto;
  padding: 2lh 1lh;
}

.ageconcern {
  background: #1E306C;
}

.history {
  background: rgb(173, 189, 163);
  color: #1C1B1A;
  border-top: solid rgba(0, 0, 0, 0.15) .5lh;
  border-bottom: solid rgba(0, 0, 0, 0.15) .5lh;
}

.simply {
  background-color: #FF299E;
}

.contact {
  background-color: #768769;
  min-height: 100vh;
}

.ringwood {
  border-top: solid rgba(0, 0, 0, 0.15) .5lh;
  border-bottom: solid rgba(0, 0, 0, 0.15) .5lh;
  color: #1C1B1A;
}

.passmyway {
  background-image: radial-gradient(#000 1.5px, transparent 1.5px), radial-gradient(#000 1.5px, transparent 1.5px);
  background-size: 13px 13px;
  background-position: 0 0, 6.5px 6.5px;
  background-color: #282828;
}

.contact .container {
  display: flex;
  flex-direction: column;
  max-width: 50vw;
}

section a {
  color: #fff;
  text-decoration: none;
  border-bottom: solid 1px;
  padding-bottom: 2px;
}

section.ringwood a {
  color: #1C1B1A;
  text-decoration: none;
  border-bottom: solid 1px;
  padding-bottom: 2px;
}

section.history a {
  color: #1C1B1A;
  text-decoration: none;
  border-bottom: solid 1px;
  padding-bottom: 2px;
}

.preview {
  height: 20em;
  overflow: hidden;
  border: 0.2em solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5em;
}

.preview img {
  width: 100%;
  object-fit: cover;
  transition: transform 2s ease-in-out;
  display: block;
}

.preview img:hover {
  cursor: pointer;
  transform: translateY(-40%);
}

.ringwood .preview {
  border: solid rgba(0, 0, 0, 0.15) .2em;
}

form {
  display: flex;
  max-width: 50vw;
  margin: 0;
  flex-direction: column;
}

form label {
  margin: 1em 0 .5em;
  font-weight: 500;
}

#website {
display: none;
}

form input,
form textarea {
  max-width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

form button {
  background-color: #a53c49;
  color: #fff;
  border: none;
  margin: 1em 0;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  max-width: 100px;
  font-size: 1em;
  font-weight: 500;
}

@media (max-width: 800px) {
  header {
    flex-direction: column;
    gap: 2lh;
    padding: 1em;
    padding: 1lh;
  }

  .contact .container,
  form {
    max-width: 100%;
  }

  .text-logo {
    width: 100%;
  }

  .topstuff {
    text-align: center;
    margin: auto;
  }

  .container {
    display: flex;
    flex-direction: column;
    padding: 1lh;
  }

}