@import url("pollen.css");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Source+Sans+Pro:wght@300&display=swap");

:root {
  --alice-blue: #e8eef2;
  --pale-silver: #d6c9c9;
  --beau-blue: #c7d3dd;
  --aero: #77b6ea;
  --onyx: #37393a;
  --aero-dark: #134d7c;
  --cadet-grey: #9aafc1;
}

body {
  --text-color: var(--onyx);
  background: var(--alice-blue);
  color: var(--text-color);
  font-family: "Source Sans Pro", sans-serif;
  font-size: var(--scale-3);
  line-height: var(--line-md);
}

main {
  max-width: var(--width-lg);
  margin: var(--size-20) auto;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: var(--scale-8);
  font-weight: normal;
  margin-top: 0;
}

.columned {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--size-20);
}

.columned .text .image {
  display: none;
}

img {
  display: block;
  max-width: 500px;
}

a {
  text-decoration: none;
  color: var(--aero-dark);
}

h3 {
  font-family: "Playfair Display", serif;
  font-weight: normal;
  font-size: var(--scale-3);
}

form {
  width: var(--size-full);
}

form > .split {
  display: flex;
  gap: var(--size-20);
  width: var(--size-full);
}

form > .split > div {
  flex-grow: 1;
}

form .body {
  display: flex;
}

label {
  display: block;
}

label span {
  display: block;
  margin: var(--size-3) 0;
}

form .body label {
  display: flex;
  flex-direction: column;
  width: var(--size-full);
}

form .body label textarea {
  display: block;
  flex-grow: 1;
}

input[type="text"],
input[type="email"],
textarea {
  background: var(--pale-silver);
  border: solid 1px #c2aeae;
  font-family: "Source Sans Pro", sans-serif;
  font-size: var(--scale-1);
  padding: var(--size-3);
  width: var(--size-full);
  box-sizing: border-box;
}

input[type="submit"] {
  background: var(--pale-silver);
  border: solid 1px #c2aeae;
  border: none;
  /* color: #fff; */
  padding: var(--size-3) var(--size-6);
  font-size: var(--scale-1);
  margin: var(--size-6) 0;
  font-family: "Source Sans Pro", sans-serif;
}

@media only screen and (min-width: 500px) and (max-width: 1000px) {
  main {
    width: var(--width-md);
  }

  .columned .image {
    display: none;
  }
  .columned .text .image {
    display: block;
    width: 100%;
  }

  .columned .text img {
    margin: 0 auto;
    display: block;
  }
}

@media only screen and (max-width: 500px) {
  h1 {
    font-size: var(--scale-7);
  }

  main {
    margin-top: var(--size-5);
  }
  .columned .image {
    display: none;
  }

  .columned .text .image {
    display: block;
    width: calc(100% + var(--size-5) + var(--size-5));
    margin-left: calc(0px - var(--size-5));
  }

  .image img {
    max-width: 100%;
  }

  main {
    padding: 0 var(--size-3);
  }

  form > .split {
    display: block;
  }
}
