/* ABOUTME: Styles of the landing page, ported from the WordPress "Day One Home" template and its dayone/styles.css. */
/* ABOUTME: Holds every style rule of the page, because the CSP blocks inline styles. */

@font-face {
  font-family: "moderat";
  src: url("../fonts/Moderat-Regular.woff2") format("woff2"), url("../fonts/Moderat-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "moderat-light";
  src: url("../fonts/Moderat-Light.woff2") format("woff2"), url("../fonts/Moderat-Light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
html,
body {
  font-family: moderat, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  background-color: #f0f5e9;
}

.pin-spacer {
  pointer-events: none;
}

.bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 6;
}
section .text-wrapper {
  max-width: min(76%, 1300px);
  margin-bottom: 3%;
  z-index: 6;
  pointer-events: none;
}
@media (max-width: 1024px) {
  section .text-wrapper {
    max-width: min(86%, 1300px);
  }
}
@media (max-width: 767px) {
  section .text-wrapper {
    max-width: calc(100% - 1.2rem);
    padding-inline: 1.6rem;
  }
}
section h1 {
  margin: 0;
  font-family: moderat-light, sans-serif;
  font-weight: normal;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-size: min(10vh, 6vw);
}
@media (max-width: 1024px) {
  section h1 {
    font-size: min(13vh, 8vw);
  }
}
@media (max-width: 767px) {
  section h1 {
    font-size: min(16vh, 10vw);
  }
}
section p {
  font-family: moderat-light, sans-serif;
  font-size: min(5vh, 3vw);
}
@media (max-width: 1024px) {
  section p {
    font-size: min(7.5vh, 4.5vw);
  }
}
@media (max-width: 767px) {
  section p {
    font-size: min(10vh, 6vw);
  }
}
section h1 + p {
  margin-top: 0.5rem;
}

.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}
.wrapper .circle {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 18vw;
  height: 18vw;
}
@media (orientation: portrait) {
  .wrapper .circle {
    width: 28vh;
    height: 28vh;
  }
}
/* The wrapper is moved with a transform, so a fixed child sits at the wrapper's origin, the centre of the shape:
   keyboard focus brings the link back there and draws the focus ring around the shape. */
.wrapper .circle:focus-visible {
  top: 0;
  left: 0;
  z-index: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.wrapper h2 {
  width: max-content;
  position: absolute;
  transform: translate(-50%, calc(5.4vw - 2rem));
  text-transform: uppercase;
  font-size: 1.8vw;
  font-family: moderat-light, sans-serif;
  font-weight: 400;
  line-height: 1.1;
  padding-top: 2rem;
  cursor: pointer;
  visibility: hidden;
}
@media (max-width: 1024px) {
  .wrapper h2 {
    transform: translate(-50%, 3rem);
    font-size: 1.6rem;
  }
}
@media (max-width: 767px) {
  .wrapper h2 {
    transform: translate(-50%, 1.6rem);
    font-size: 1.2rem;
  }
}
.wrapper .circular-wrapper {
  opacity: 0;
  position: absolute;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  transform: translate(-50%, -50%);
}
.wrapper .circular-wrapper .circular {
  position: absolute;
  margin: 0;
  font-size: 1vw;
}
@media (max-width: 1024px) {
  .wrapper .circular-wrapper .circular {
    font-size: 0.9rem;
  }
}
@media (max-width: 767px) {
  .wrapper .circular-wrapper .circular {
    font-size: 0.6rem;
  }
}
.wrapper#roadtrip {
  z-index: 2;
}
.wrapper#roadtrip h2 span {
  color: #4A94FF;
}
.wrapper#workbook {
  z-index: 4;
}
.wrapper#workbook h2 span {
  color: #F99D27;
}
.wrapper#toolbox {
  z-index: 1;
}
.wrapper#toolbox h2 span {
  color: #A85868;
}
.wrapper#camp {
  z-index: 5;
}
.wrapper#camp h2 span {
  color: #22FFAA;
}

.wrapper svg {
  width: 32vw !important;
  height: auto !important;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .wrapper svg {
    width: 56vw !important;
  }
}
@media (max-width: 767px) {
  .wrapper svg {
    width: 76vw !important;
  }
}

#camp svg > g > g,
#workbook svg > g > g,
#toolbox svg > g > g {
  pointer-events: initial;
  cursor: pointer;
}

#roadtrip svg > g > g > g {
  pointer-events: initial;
  cursor: pointer;
}

header {
  position: fixed;
  top: 0;
  right: 0;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row-reverse;
  z-index: 8;
  align-items: flex-end;
  padding: 1.4rem 2rem;
}
@media (max-width: 767px) {
  footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 0.6rem;
  }
  footer #logo {
    margin-bottom: 1rem;
  }
}
footer #logo {
  width: 200px;
  overflow: visible;
}
@media (max-width: 1024px) {
  footer #logo {
    height: 4rem;
    width: auto;
  }
}
@media (max-width: 767px) {
  footer #logo {
    height: 2rem;
    width: auto;
  }
}
footer nav.bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
@media (max-width: 767px) {
  footer nav.bottom {
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.2rem;
    max-height: 60px;
    font-size: 0.8rem;
  }
}
footer nav.bottom a {
  color: black;
  visibility: hidden;
}

.sayhi-wrapper {
  opacity: 0;
  font-size: 1vw;
  color: black;
  width: 200px;
  top: 4rem;
  right: 1rem;
  position: absolute;
  z-index: 99999999999999;
}
@media (max-width: 1024px) {
  .sayhi-wrapper {
    font-size: 0.9rem;
  }
}
@media (max-width: 767px) {
  .sayhi-wrapper {
    font-size: 0.6rem;
  }
}

/* Video frame, top banner and Instagram icon. */
#video-wrapper {
  background: #333;
  margin: auto;
  max-width: 600px;
  z-index: 100000;
  position: relative;
  pointer-events: all;
}

#iframe-wrapper {
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  position: relative;
}

#video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner {
  background: rgb(247, 145, 26);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0.75rem;
  font-weight: bold;
  z-index: 999;
  text-decoration: none;
  color: black;
  font-size: 20px;
}

.banner .button {
  background: black;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  animation: banner-button 1800ms infinite alternate;
  display: inline-block;
}

@keyframes banner-button {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.ig-logo {
  height: 48px;
  top: -14px;
  position: relative;
}

@media screen and (max-width: 800px) {
  .banner {
    font-size: 0.9rem;
  }

  .banner .button {
    margin-top: 0.25rem;
  }

  .ig-logo {
    top: 6px;
  }

  .sayhi-wrapper {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner .button {
    animation: none;
  }
}

/* Footer logo. */
#logo {
  fill: #231f20;
  fill-rule: evenodd;
  clip-rule: evenodd;
  stroke-miterlimit: 10;
}

#logo line {
  stroke: #231f20;
}

#logo .clipped {
  clip-path: url(#clippath);
}

/* Word boxes SplitText creates in the headline. It writes these rules as style attributes, which the CSP blocks. */
#intro h1 > div {
  position: relative;
  display: inline-block;
}
