@import url('https://fonts.googleapis.com/css2?family=Lato&family=Playfair+Display:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

:root {
  --scale: 0.1;
  --space: 8vmin;
  --font-primary: 'Lato', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --about-sage: #67AE92;
  --aqua: aqua;
}

@media (prefers-reduced-motion) {
  :root {
    --scale: 0;
  }
}

* {
  box-sizing: border-box;
}

body {
  color: hsl(0, 0%, 95%);
  background-color: hsl(5, 15%, 5%);
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  font-family: var(--font-primary);
  line-height: 1.6;
}

h3 {
    font-weight: 500;
}

h3 + p {
    margin-top: 0;
}

a {
  color: hsl(65, 80%, 60%);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1.hidden {
    display: none;
}

strong {
    font-weight: 500;
}


.hero-logo {
    margin-top: var(--space);
    margin-left: var(--space);
}

.hero-logo > img {
    width: 150px;
}

.hero-content {
    width: 100vw;
    position: absolute;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    height: 80vh;
}

.hero-title {
    margin-top: 0;
}


.hero-title {
    position: relative;
    padding: var(--space);
    font-size: clamp(2.5rem, 6vw, 6.5rem);
    font-weight: 100;
}


.newsletter .hero-content {
  height: 200px;
  margin-top: -130px;
}

.klaviyo-form h1, .klaviyo-form .needsclick p {
  color: white;
}


@media screen and (min-width: 599px) {
    .hero-content {    
        position: relative;
        display: flex;
        flex-direction: row;
    }

    .hero-title {
        margin-top: -45vh;
        flex: 1;
    }

    .hero-logo {
        /* margin-top: -41vh; */
        margin-left: auto;
        margin-top: -37vh;
        padding-right: var(--space);
    }

    .hero-logo > img {
      width: 250px;
  }

  .newsletter .hero-content {
    height: 200px;
    margin-top: -200px;
    justify-content: flex-end;
  }

  .newsletter .hero-title, .newsletter .hero-logo {
    margin-top: 0;
    padding: var(--space);
  }
}


.about-wrapper {
  display: flex;
  flex-direction: column;
  background-color: var(--about-sage);
  background: linear-gradient(#67AE92, #0f0b0b);
}

.about {
  display: flex;
  flex-direction: column;
}

.about .centre {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}


.about-article {
  margin-top: 3rem;
  padding: 2rem;
  flex: 1;
}

.about-article.transp{
  background: hsla(5, 15%, 5%, 0.3);
}

.about-article p {
  font-weight: 300;
  margin-top: 2rem;
}

.about .section-title {
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  font-weight: 300;
  line-height: 1.125;
}

.about-image {
  width: 50%;
  margin-left: 2rem;
  margin-top: 2rem;
}

.about-image figure {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 1rem solid white;
}

@media screen and (min-width: 749px) {
  .about {
    padding: 3rem;
    padding-top: 5rem;
    flex-direction: row;
  }

  .about-article {
    margin-top: 0;
  }

  .about .section-title {
    font-size: clamp(2.5rem, 6vw, 6.5rem);
    font-weight: 300;
    line-height: 1.125;
  }

  .about-image {
    margin-left: 0;
  }
}


@media screen and (min-width: 1100px) {
  .about-image figure {
    width: 500px;
    height: 500px;
  }
}



.page-title {
  text-align: center;
}

.page-title::after {
  content: '↓';
  display: block;
  font-size: 2em;
  opacity: 0;
  transform: translateY(-24px);
  animation: fadein 800ms 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.header,
.footer {
  place-items: center;

}

.header {
    display: grid;
    height: 80vh;
}

.footer {
    padding: var(--space);
    padding-top: 50vh;
    height: 100vh;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.newsletter .header {
  height: 200px;
}

.newsletter  .blue {
  height: 200px;
}

.section {
  transform-origin: center top;
  transform: scaleY(calc(1 - var(--scale)));
}

.content.transp {
    background-color: rgba(0, 0, 0, 0.6);
}

.section > * {
  transform-origin: center top;
  transform: scaleY(calc(1 / (1 - var(--scale))));
}

.newsletter .hero-title, .newsletter .hero-logo {
  margin-top: 0;
  padding: var(--space);
  margin-left: 0;
}

.newsletter .hero-title {
  display: none;
}

.newsletter-contact h2 {
  text-align: center;
}

.newsletter .newsletter-contact.section > * {
  transform-origin: none;
  transform: none;
}

.newsletter .newsletter-contact.section .content {
  margin-top: -80vh;
}

.newsletter .newsletter-contact.section form {
  padding: 0 !important;
}

.newsletter .klaviyo-form h1 {
  display: none;
}

.newsletter .klaviyo-form .subscribed h1 {
  display: block;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  font-weight: 300;
  line-height: 1.125;
}

.section-title.class {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.space {
    width: 100vw;
    height: 20px;
    background-color: var(--aqua);
}


.byline {
  display: block;
  font-size: 1rem;
  margin: calc(var(--space) / 1.35) 0;
}

.sm {
    font-size: 0.75rem;
}

.socials svg {
  width: 2rem;
  height: 2rem;
}

.socials ul {
  list-style: none;
  display: flex;
  flex-direction: row;
}

.socials li {
  margin: 1rem;
}

.socials a{
  color: var(--aqua);
}

.content {
  position: relative;
  margin: -50vh auto 0;
  padding: var(--space);
  max-width: 55ch;
  width: calc(100% - var(--space));
  font-family: var(--font-primary);
  font-weight: 300;
}

.transp {
  background: hsla(5, 15%, 5%, 0.9);
}

.content > * + *, .main-content > * + * {
  margin-top: 2rem;
}

.content > h3 + p {
    margin-top: 0;
}

.image-container {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}

.pink {
    background-color: pink;
}

.blue {
    background-color: aqua;
}

.green {
    background-color: blanchedalmond;
}

.black {
    background: black;
}

.w-50vw {
    width: 50vw;
}

.image-container img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    hsla(5, 15%, 5%, 0) 0%,
    hsla(5, 15%, 5%, 0.013) 8.1%,
    hsla(5, 15%, 5%, 0.049) 15.5%,
    hsla(5, 15%, 5%, 0.104) 22.5%,
    hsla(5, 15%, 5%, 0.175) 29%,
    hsla(5, 15%, 5%, 0.259) 35.3%,
    hsla(5, 15%, 5%, 0.352) 41.2%,
    hsla(5, 15%, 5%, 0.45) 47.1%,
    hsla(5, 15%, 5%, 0.55) 52.9%,
    hsla(5, 15%, 5%, 0.648) 58.8%,
    hsla(5, 15%, 5%, 0.741) 64.7%,
    hsla(5, 15%, 5%, 0.825) 71%,
    hsla(5, 15%, 5%, 0.896) 77.5%,
    hsla(5, 15%, 5%, 0.951) 84.5%,
    hsla(5, 15%, 5%, 0.987) 91.9%,
    hsl(5, 15%, 5%) 100%
  );
}

@keyframes fadein {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
