@font-face {
  font-family: 'Arvo';
  src: url('/fonts/Arvo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arvo';
  src: url('/fonts/Arvo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arvo';
  src: url('/fonts/Arvo-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  line-height: 1.55;
  /* vertical-align: baseline; */
  /* background: transparent; */
  font-family: "Arvo", "Trebuchet MS", Arial;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

h1,
h2,
h3 {
  text-wrap: balance;
  margin-bottom: 1em;
  font-weight: normal;
}

button,
a,
summary {
  cursor: pointer;
}

/* COMPOSITION */
.c-screen-height {
    min-height: 100vh;
}
.c-full-width {
    width:100%;
}

.c-margin-center {
    margin-inline: auto;
}

.c-max-content {
    padding: 0 5vw;
}

.c-flex {
    display: flex;
    &.c-wrap {
        flex-wrap: wrap;
    }
    &.c-flex-center{
        flex-direction: column;
        justify-content: space-between;
          align-items: center;

    }
}
 /* to be deleted: */
.push-footer {
  height: 100vh;
  width: 100dvw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* div:first-child {
    flex-grow: 1;
  } */
  .height-flex-grow {
    flex-grow: 1;
  }
}

.space-below {
  padding-bottom: 4rem;
}

.standard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.full-height {
  height: min(100%);
}

.container-width-full {
  width: 100%;
}

.container-width-wide {
  width: min(95%, 80rem);
}

.container-width-narrow {
  width: min(90%, 55rem);
}

.container-width-small {
  width: min(90%, 44rem);
}

.max-content {
  width: 100%;
  padding: 0 5vw;
}

.center {
  align-content: center;
  height: 100%;
}

.six-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr;
  align-items: baseline;
  gap: 5rem 3rem;
}

.centerflex {
  display: flex;
  justify-content: center;
}

.wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  &.small-gap {
    gap: 2rem;
  }
  &.big-gap {
    gap: 5rem;
  }
  &.reverse {
    flex-wrap: wrap-reverse;
  }
}

.one-third {
  /* flex-basis: 20rem; */
  width: min(80%, 20rem);
}

.two-thirds {
  flex-grow: 2;
  flex-basis: 30rem;
  width: clamp(100%, 40rem, 100%);
}

.text-right {
  border-left-width: min(calc(0.4rem + 2.9vw), 2.6rem);
  border-left-style: solid;
  padding-left: clamp(1rem, 6vw, 2rem);
}

.border-dark {
  border-left-color: var(--two);
}

.border-transparent {
  border-left-color: transparent;
}

article:not(:last-child) {
  margin-bottom: 4rem;
}

/* UTILITIES */
:root {
  --one: oklch(0.9859 0.0288 42.84);
  --two: oklch(0.2658 0.0821 160.09);
  --three: oklch(0.7867 0.1741 50.56);
  /* for form placeholder: */
  --four: oklch(0.9859 0.0288 42.84 /60%);
  --green: oklch(0.661 0.1708 174.11);
  --green-dark: oklch(0.5322 0.1371 174.11);
  --green-black: oklch(0.2658 0.0821 160.09);
  --orange: oklch(0.706 0.2372 42.84);
  --orange-bright: oklch(0.7867 0.1741 50.56);
  --orange-white: oklch(0.9859 0.0288 42.84);
  --pink: oklch(0.7054 0.2562 3.43);
  --blue-dark: oklch(0.2221 0.062 235.7);
  --mountain-a-start: oklch(0.9287 0.0357 249.52);
  --mountain-a-end: oklch(0.9836 0.016 206.44);
  --mountain-b-start: oklch(0.825 0.1025 243.84);
  --mountain-b-end: oklch(0.9363 0.0563 210.15);
  --mountain-c-start: oklch(0.6705 0.1936 252.32);
  --mountain-c-end: oklch(0.9448 0.0935 190.19);
  --mountain-d-start: oklch(0.5484 0.124 239.23);
  --mountain-d-end: oklch(0.7651 0.1811 217.0404);

  @media (prefers-color-scheme: dark) {
    --one: oklch(0.2221 0.062 235.7);
    --two: oklch(0.9859 0.0288 42.84);
    --three: oklch(0.5668 0.2265 11.57);
    --four: oklch(0.5668 0.2265 11.57);
    --mountain-a-start: oklch(8.848% 0.06132 264.073);
    --mountain-a-end: oklch(8.848% 0.06132 264.073);
    --mountain-b-start: oklch(10.658% 0.01976 222.441);
    --mountain-b-end: oklch(24.246% 0.04204 210.697);
    --mountain-c-start: oklch(17.555% 0.04334 244.057);
    --mountain-c-end: oklch(37.887% 0.0657 188.839);
    --mountain-d-start: oklch(30.124% 0.06562 162.483);
    --mountain-d-end: oklch(29.348% 0.05583 174.027);
  }
}

body.light-theme {
  --one: oklch(0.9859 0.0288 42.84);
  --two: oklch(0.2658 0.0821 160.09);
  --three: oklch(0.7867 0.1741 50.56);
  --four: oklch(0.9859 0.0288 42.84 /60%);
  --mountain-a-start: oklch(0.9287 0.0357 249.52);
  --mountain-a-end: oklch(0.9836 0.016 206.44);
  --mountain-b-start: oklch(0.825 0.1025 243.84);
  --mountain-b-end: oklch(0.9363 0.0563 210.15);
  --mountain-c-start: oklch(0.6705 0.1936 252.32);
  --mountain-c-end: oklch(0.9448 0.0935 190.19);
  --mountain-d-start: oklch(0.5484 0.124 239.23);
  --mountain-d-end: oklch(0.7651 0.1811 217.0404);
}

body.dark-theme {
  --one: oklch(0.2221 0.062 235.7);
  --two: oklch(0.9859 0.0288 42.84);
  --three: oklch(0.5668 0.2265 11.57);
  --four: oklch(0.5668 0.2265 11.57);
  --mountain-a-start: oklch(8.848% 0.06132 264.073);
  --mountain-a-end: oklch(8.848% 0.06132 264.073);
  --mountain-b-start: oklch(10.658% 0.01976 222.441);
  --mountain-b-end: oklch(24.246% 0.04204 210.697);
  --mountain-c-start: oklch(17.555% 0.04334 244.057);
  --mountain-c-end: oklch(37.887% 0.0657 188.839);
  --mountain-d-start: oklch(30.124% 0.06562 162.483);
  --mountain-d-end: oklch(29.348% 0.05583 174.027);
}

.period {
  color: var(--three);
  margin-right: 0.3rem;
  line-height: 0;
}

p,
ul,
ol,
span,
details,
label,
input,
textarea,
h2,
h3 {
  color: var(--two);
}

a {
  color: var(--three);
}

body {
  background: var(--one);
}

.ball {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--three);
}

p,
ul,
ol,
a,
span,
details,
label,
input,
textarea {
  font-size: clamp(1.2rem, 1rem + 2vw, 1.8rem);
}

.footnote {
  font-size: 1rem;
}

.font-small {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
}

h2,
h3,
.font-big {
  font-size: clamp(1.8rem, 1rem + 4vw, 2.2rem);
}

.font-huge {
  font-size: clamp(2rem, 2rem + 4vw, 6.2rem);
}

.orange-text {
  color: var(--orange);
}

.unselectable {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.svg-line {
  fill: var(--two);
}

.svg-elipse {
  fill: var(--three);
}

.svg-invert {
  fill: var(--one);
}

.svg-line--static {
  fill: var(--green-black);
}

.svg-elipse--static {
  fill: var(--orange-bright);
}

.svg-line,
.svg-elipse,
.svg-invert {
  transition: fill 3s ease;
}

.round-image {
  border-radius: 50%;
  width: 100%;
  height: auto;
}

/* BLOCKS */

/* Header */
header {
  display: flex;
  justify-content: space-between;
  margin-top: min(5vw, 2rem);
  /* FOR STICKY HEADER: */
  /* margin-top: min(4vw, 1.5rem);
  position: sticky;
  top: min(5vw, 0.5rem); */
  /* .head-right {
    display: flex;
    align-items: baseline;
    border-bottom: solid calc(0.2rem + 0.3vw);
    height: fit-content;
  } */
  .head-left {
    svg {
      height: 5rem;
      /* background-color: if(
        media(width < 25rem): var(--orange-white);
        else: none;
        ) */
    }
  }
  .head-left,
  .head-right {
    margin: 0 min(5vw, 2rem);
  }
  a,
  span {
    text-decoration: none;
    font-size: clamp(1.5rem, 1.6rem + 1vw, 2rem);
    color: var(--green-black);
  }
  a:hover {
    color: var(--orange);
  }
}

.hero-container {
  justify-content: center;
  /* full vh minus header and margin of next element, to give white space above next setion when following page link: */
  height: calc(100vh - 7rem - min(5vw, 2rem));
  svg {
    margin: -10vw 0 min(6%, 1rem);
  }
  h1 {
    align-self:end;
    /* font-size: max(2rem, 4vw); */
    text-align: end;
    a {
      color: var(--three);
      font-size: clamp(1rem, 0.6rem + 3vw, 2.8rem);
      text-decoration: none;
    }
  }
}


.intro {
  padding-top: 2rem;
  margin-bottom: 6rem;
  .jorg {
    width: min(80%, 14rem);
    margin-inline: auto;
  }
  .birbs {
    margin-top: 3rem;
    margin-inline: auto;
  }
  h2 {
    border-left: dotted 0.7em var(--three);
    padding-left: 1rem;
    line-height: 1.1;
  }
  details:first-child {
    margin-top: 1rem;
  }
  details:open {
    padding-bottom: 0.5rem;
    summary {
      color: var(--three);
    }
  }
  summary {
    margin-left: -1.5rem;
  }
  svg:first-child {
    width: 15rem;
  }
  svg:nth-child(2) {
    width: 10rem;
  }
  svg:last-child {
    width: 14rem;
  }
  svg:not(:last-child) {
    margin-bottom: 10rem;
  }
  /* @media screen and (max-width: 57rem) {
    svg {
      display: none;
    }
  } */
  article:has(details) {
    margin-left: 1rem;
  }
}

.ground {
  width: 100%;
  /* Parallax container */
  .parallax-mountains {
    position: relative;
    width: 100%;
height: clamp(10rem, 30vw, 45rem);
    overflow: hidden;
  }

  /* Individual mountain layers */
  .mountain-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .mountain-layer svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Color classes for CSS control */
  .mountain-a {
    fill: url(#gradientA);
  }
  .mountain-b {
    fill: url(#gradientB);
  }
  .mountain-c {
    fill: url(#gradientC);
  }
  .mountain-d {
    fill: url(#gradientD);
  }
  .mountain-e {
    fill: var(--green-dark);
  }

  .ball {
    margin-left: 15%;
    margin-bottom: -1%;
  }
  .grass {
    /* margins to avoid accidental whitespace between svg & container in ff */
    margin-top: -0.5rem;
    margin-bottom: -0.1rem;
    width: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(var(--green-dark) 5%, var(--green));
    .period {
      color: var(--orange-bright);
    }
    article {
      /* width: min(100%, 54rem); */
      margin-inline: auto;
      .squiggle {
        width: clamp(19rem, 78vw, 52rem);
        /* margin-left: clamp(-7rem, -8vw, -2.1rem); */
        margin-bottom: clamp(-2.9rem, -5vw, -1.8rem);
        margin-left: 0;
      }
      h2,
      p,
      ul {
        color: white;
      }
      h2 {
        font-size: clamp(2.3rem, 9vw, 6.2rem);
        margin: 0 0 -1em;
        text-indent: 11%;
      }
      p {
        padding-bottom: 1em;
      }
      p:nth-child(3) {
        text-indent: max(2.5rem, 9%);
      }
      a {
        color: var(--orange-bright);
      }
      @media screen and (min-width: 65rem) {
        .squiggle {
          margin-left: clamp(-7rem, -8vw, -2.1rem);
        }
        p:nth-child(3),
        h2 {
          text-indent: 0;
        }
      }
    }
    .illustrations {
      gap: 6rem 4rem;
      margin-top: 4rem;
      .illustration {
        width: min(100%, 25rem);
      }
      .logo-container {
        background: white;
        height: 100%;
        aspect-ratio: 1 / 1;
        svg {
          margin: 26% 36% 0;
        }
      }
      img {
        width: 100%;
        margin-inline: auto;
      }
    }
  }
}

.testimonials {
  h2 {
    border-bottom: solid min(calc(0.4rem + 2.9vw), 2.6rem) var(--two);
    width: fit-content;
    padding: 4rem 0 0.8rem;
    margin-bottom: 0.5em;
  }
  div {
    margin: min(3rem + 3vw, 6rem) 0;
    p {
      font-style: italic;
    }
    p:not(last-child) {
        margin-bottom: 1rem;
    }
    svg {
      width: min(100%, 20rem);
      margin-bottom: 1.5rem;
    }
    span {
      color: var(--three);
      line-height: 1.8;
    }
  }
}

.contact {
  margin: calc(3rem + 6vw) 5vw 0;
  span {
    color: var(--three);
  }
  form {
    margin-top: 2rem;
  }
  input,
  textarea {
    background-color: var(--two);
    color: var(--one);
  }
  input:focus-visible,
  textarea:focus-visible {
    outline: 0.2rem solid var(--three);
  }
  input::placeholder {
    color: var(--three);
  }
  input:not(input[type="submit"]) {
    padding: 0.5rem 1.3rem;
    width: 100%;
  }
  textarea {
    width: 100%;
    height: 100%;
    min-height: 12rem;
    resize: vertical;
    padding: 1rem 1.3rem;
  }
  textarea,
  input:not(last-child) {
    margin-bottom: calc(1em + 1vw);
  }
  input[type="submit"] {
    background-color: var(--two);
    color: var(--one);
    padding: 0.3rem;
    width: 10rem;
    cursor: pointer;
  }
  input[type="submit"]:focus-visible,
  input[type="submit"]:hover {
    background-color: var(--three);
    color: var(--two);
  }
}
footer {
  padding: 5rem 0 1rem;
  color: var(--pink);
  svg {
    height: 8rem;
  }
  span {
    font-weight: bold;
    font-size: 2.1rem;
    margin-top: -0.8rem;
  }
  .legal-links {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;  }
  a {
    color: var(--three);
  }
  a:has(svg), figure{
    font-size: 0;
  }
}

.info {
  margin-top: 2rem;
  h1 {
    color: var(--two);
    font-size: clamp(2rem, 2rem + 4vw, 6.2rem);
  }
  h2 {
    margin-top: 1.3em;
  }
}
