/**
 * This is not a CSS tutorial, be gentle... 😇
 */

@import url("/fonts.css");

*,
*::after,
*::before {
  box-sizing: border-box;
}

html {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-display: block;
  overscroll-behavior: contain;
  font-size: max(0.75rem, 0.8101851852vw);

  color: #00b167;
  background: #ecf5ef;
}

::selection {
  background: rgba(0, 177, 103, 0.5);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.container {
  padding-left: max(1.2rem, 40/1440 * 100vw);
  padding-right: max(1.2rem, 40/1440 * 100vw);
}

article {
  padding-top: 7.5vh;
}

section {
  margin: max(5px, 5vw) 0;
}

header {
  height: 40vh;
  max-height: 50vw;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  margin-bottom: max(1.25rem, 2.5vw);
}
.headerLayout {
  position: relative;
}

h2 {
  font-size: max(3.75rem, 187/1440 * 100vw);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.03em;
  margin: 0;
  margin-left: -0.07em;
}
h2 span {
  display: inline-block;
  width: auto;
}
.subline {
  font-weight: 400;
  font-size: max(14px, calc(14 / 1440 * 100vw));
  display: block;
  line-height: 1.5;
  letter-spacing: 0;
  margin-top: 2.5rem;
  width: 80%;
  margin-left: 0;
}
@media screen and (min-width: 64em) {
  .subline {
    position: absolute;
    left: 50%;
    bottom: 1.5%;
    width: max(300px, 22vw);
    height: auto;
    top: auto;
    display: block;
  }
}

footer {
  padding-top: max(2.5rem, 20vw);
}

.EffectsToggle {
  position: sticky;
  top: -1px; /* use to detect if pinned */
  left: max(1.2rem, 40/1440 * 100vw);
  z-index: 1000;
  height: 5vh;
  font-size: 1.5rem;
  display: inline-block;
  font-family: "Playfair Display";
  font-style: italic;
  letter-spacing: -0.03rem;
}
.EffectsToggle__Inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 0.5rem 1.2rem;
  margin-left: -1.2rem;
  margin-top: 1rem;
  border-radius: 2.5rem;
  transition: background 0.2s ease;
}
.EffectsToggle.is-pinned .EffectsToggle__Inner {
  background: #dbf6e6;
}

.EffectsToggle__Text {
  display: block;
  width: 10em;
}
.EffectsToggle button {
  appearance: none;
  border: 1px solid #00b167;
  font-weight: 600;
  font-family: "Poppins";
  font-style: normal;
  font-size: 1.25rem;

  text-align: center;
  letter-spacing: -0.02em;
  color: #00b167;
  border-radius: 100%;
  background: transparent;
  cursor: pointer;
  width: 4.125rem;
  height: 2.0625rem;
  text-align: center;
  vertical-align: center;
  padding: 0;
}

h3 {
  font-family: "Playfair Display", sans-serif;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  font-size: max(2rem, 64/1440 * 100vw);
  margin: 10vw 0;
}
h3 span {
  width: 80%;
}
h3 em {
  text-align: right;
  display: block;
  margin-top: 2.5rem;
}
h3 em span {
  margin-left: auto;
}

@media screen and (min-width: 35em) {
  h3 em {
    margin-top: 0;
  }
}

h4 {
  font-weight: 400;
  font-size: max(1rem, 36/1440 * 100vw);
  line-height: 1.36;
  margin: max(5rem, 200/1440 * 100vw) 0;
  width: 77%;
}
p {
  margin-top: max(5rem, 5vw);
}
@media (min-width: 400px) {
  p {
    margin-left: 50%;
    width: max(200px, 22vw);
  }
}

.JellyPlaceholder {
  aspect-ratio: 16/10;
  width: 66%;
  margin: auto;
}

.ImageLandscape {
  aspect-ratio: 16/9;
}
.ImagePortrait {
  aspect-ratio: 10/16;
  width: 47.5%;
}

.ParallaxContainer {
  display: flex;
  margin: max(5rem, 300/1440 * 100vw) 0;
}
.aspect-16_11 {
  aspect-ratio: 16/11;
  width: 50%;
}
.aspect-9_13 {
  aspect-ratio: 9/13;
  width: 18%;
  margin: auto;
}

img {
  display: block;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* CODROPS TEMPLATE */

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

a:hover {
  color: var(--color-link-hover);
  outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
  /* Provide a fallback style for browsers
	 that don't support :focus-visible */
  outline: none;
  background: lightgrey;
}

a:focus:not(:focus-visible) {
  /* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
  background: transparent;
}

a:focus-visible {
  /* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
  outline: 2px solid #00b167;
  background: transparent;
}

.frame {
  width: 100%;
  min-height: 3vh;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.frame > * {
  margin: 0;
  white-space: nowrap;
}

.frame__title {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.frame__title-main {
  font-size: inherit;
  margin: 0;
  font-weight: inherit;
  white-space: nowrap;
}

.frame__title-back {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.frame__title-back svg {
  fill: currentColor;
  margin-left: 0.25rem;
}

.frame__prev {
  font-size: 0.9rem;
}

@media screen and (max-width: 45em) {
  .frame {
    padding: 0.75rem 0;
  }

  .frame__title-back span.oh__inner {
    max-width: 120px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  width: 100%;
}

.footer-links a {
  color: #00b167;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00ff00;
}

.footer-links a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #00ff00;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
