* {
  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;
}

p#chatty {text-wrap: balance;text-wrap: pretty;}

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

.logo {
  align-content: center;
}

.logo 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: balance;
  text-wrap: pretty;
}

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

section {
  border-top: solid rgba(255, 255, 255, 0.15) .5lh;
  border-left: none;
  border-right: none;
  border-bottom: solid rgba(255, 255, 255, 0.15) .5lh;
}

.container {
  max-width: 1300px;
  margin: auto;
  padding: 2lh 1lh;
  display: flex;
  flex-direction: row;
  gap: 5%;
}

/* 
section:nth-of-type(even) .container {
  flex-direction: row-reverse;
}
 */

section:last-child {
  border-bottom: none;
}

section.contact .container:last-of-type {
  flex-direction: column;
}

section.ageconcern {
  background: #1E306C;
  color: #fff;
}

section.simply {
  background-color: #FF299E;
  color: #fff;
}

section.ringwood {
  border-top: solid rgba(0, 0, 0, 0.15) .5lh;
  border-left: none;
  border-right: none;
  border-bottom: solid rgba(0, 0, 0, 0.15) .5lh;
}

section.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;
color: #fff;
}

section.contact {
  background-color: #768769;
  color: #fff;
}

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;
}

.text {
  max-width: 50%;
}

.preview {
  max-width: 50%;
  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(-50%);
}

p.external:hover #arrow {
  animation: move-arrow 2s ease-in-out;
}

@keyframes move-arrow {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  50% {
    opacity: 0;
    transform: translateX(200%);
  }

  51% {
    opacity: 0;
    transform: translateX(200%);
  }

  52% {
    opacity: 1;
    transform: translateX(-200%);
  }

  80% {
    transform: translateX(0);
  }
}

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

p.external {
  align-items: center;
  display: flex;
  gap: 1em;
}

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

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

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;
  }

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

  .container {
    flex-direction: column;
  }

  .text,
  .preview {
    max-width: 100%;
  }

  form {
    max-width: 90vw;
  }
}