:root {
  --color-black: oklch(15.43% 0 0);
  --color-white: oklch(100% 0 0 / 93.33%);
  --color-dark-blue: oklch(48.28% 0.0926 244.84);
  --color-light-blue: oklch(73.46% 0.1055 224.97);
  --color-dark-orange: oklch(72.89% 0.1359 41.37);
  --color-light-orange: oklch(79.46% 0.1014 50.45);
  --color-yellow: oklch(89.1% 0.1378 90.32);
}

/* start reset */

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;
  line-height: 1.5;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* end reset */

body {
  font-family: "JetBrains Mono", serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: var(--color-black);
  color: var(--color-white);
}

p {
  font-size: calc(18 / 16 * 1rem);
}

em {
  font-style: italic;
}

.Container {
  margin-top: calc(64 / 16 * 1rem);
  margin-bottom: calc(128 / 16 * 1rem);
  display: flex;
  flex-flow: column;
  padding: 0 2rem;

  @media (min-width: 601px) {
    padding: 0;
    margin: calc(64 / 16 * 1rem) auto calc(128 / 16 * 1rem) auto;
    width: 56%;
  }

  .orange-hl {
    color: var(--color-light-orange);
  }

  .blue-hl {
    color: var(--color-light-blue);
  }

  .yellow-hl {
    color: var(--color-yellow);
  }

  header {
    display: flex;
    flex-flow: column;
    gap: calc(24 / 16 * 1rem);

    .intro {
      display: flex;
      flex-flow: column;
      gap: calc(24 / 16 * 1rem);

      .logotype {
        width: 100%;

        @media (min-width: 1024px) {
          align-self: center;
          width: 62%;
        }

        img {
          width: 100%;
        }
      }
    }

    .summary {
      @media (min-width: 1024px) {
        align-self: center;
        width: 62%;
      }
    }

    .summary,
    .greeting {
      font-weight: 800;
      font-size: calc(32 / 16 * 1rem);
    }
  }

  main {
    display: flex;
    flex-flow: column;
    align-items: center;
    margin-top: calc(32 / 16 * 1rem);

    section {
      display: flex;
      flex-flow: column;
      gap: 1.25rem;
      width: 100%;
    }

    h2 {
      font-weight: 800;
      font-size: 2rem;
    }

    h3 {
      font-weight: 800;
      font-size: 1.5rem;
    }

    .cta {
      display: flex;

      a {
        font-size: calc(24 / 16 * 1rem);
        font-weight: 500;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 10%;
        padding: 0.85rem 1.15rem;
        color: var(--color-black);
        background: var(--color-dark-orange);
        border: 1px solid transparent;
        border-radius: 2px;

        &:hover {
          background: var(--color-light-orange);
        }
      }
    }

    .services {
      margin-top: calc(48 / 16 * 1rem);
      width: 100%;

      ul {
        display: flex;
        flex-flow: column;
        gap: 1rem;

        @media (min-width: 800px) {
          padding-left: calc(24 / 16 * 1rem);
        }

        li {
          display: flex;
          align-items: center;
          font-size: 1.25rem;

          &:before {
            content: "";
            display: inline-block;
            height: calc(20 / 16 * 1rem);
            width: calc(20 / 16 * 1rem);
            background-size: contain;
            background-image: url("../img/Lil Whistle.svg");
            background-repeat: no-repeat;
            margin-right: 0.75rem;
          }
        }
      }
    }

    hr {
      overflow: visible;
      padding: 0;
      border: none;
      border-top: medium double var(--color-dark-blue);
      color: var(--color-dark-blue);
      text-align: center;
      margin-top: calc(48 / 16 * 1rem);
      margin-bottom: calc(48 / 16 * 1rem);
      height: 2px;
      width: 100%;

      &:after {
        content: "";
        display: inline-block;
        position: relative;
        background-color: var(--color-black);
        background-size: contain;
        background-image: url("../img/Lil Whistle.svg");
        background-repeat: no-repeat;
        height: calc(20 / 16 * 1rem);
        width: calc(20 / 16 * 1rem);
        padding: 0 0.25rem;
        background-position: 50% 50%;
        top: -0.7rem;
      }
    }

    .who-are-we {
      & > p {
        padding: 0 0.75rem;

        em.yellow-hl {
          font-size: 1rem;
        }
      }

      .group-photos {
        display: flex;
        gap: 1rem;
        padding: 0 0.75rem;

        .photo {
          flex: 1;
          border-radius: 6px;
          border: 1px transparent solid;
          overflow: hidden;
          aspect-ratio: 4 / 3;

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
          }
        }
      }

      .bios {
        border-top: 1px dashed var(--color-dark-orange);
        padding-top: calc(24 / 16 * 1rem);
        margin-top: calc(24 / 16 * 1rem);
        display: flex;
        flex-flow: column;
        gap: calc(24 / 16 * 1rem);

        @media (min-width: 601px) {
          flex-flow: row;
        }

        .bio {
          h3 {
            color: var(--color-yellow);
          }

          &:nth-child(even) {
            h3 {
              color: var(--color-light-blue);
            }
          }
        }

        .photo {
          flex: 1;
          border-radius: 6px;
          border: 1px transparent solid;
          overflow: hidden;
          aspect-ratio: 3 / 4;
          height: 40vh;
          margin-top: calc(14 / 16 * 1rem);

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
          }
        }

        p {
          margin-top: calc(24 / 16 * 1rem);
        }
      }
    }

    .faq {
      .questions {
        display: flex;
        flex-flow: column;
        gap: calc(16 / 16 * 1rem);

        details {
          border: 1px solid var(--color-dark-blue);
          border-radius: 6px;
          transition: border-color 200ms ease-in-out;

          &[open] {
            border-color: var(--color-light-blue);
          }

          &:hover {
            border-color: var(--color-light-blue);
          }
        }

        summary {
          cursor: pointer;
          font-weight: 600;
          font-size: calc(20 / 16 * 1rem);
          padding: calc(20 / 16 * 1rem) calc(24 / 16 * 1rem);
          color: var(--color-light-blue);
          list-style: none;
          display: flex;
          align-items: center;
          gap: calc(12 / 16 * 1rem);
          user-select: none;

          &::-webkit-details-marker {
            display: none;
          }

          &::before {
            content: "▸";
            display: inline-block;
            font-size: calc(18 / 16 * 1rem);
            transition: transform 200ms ease-in-out;
            flex-shrink: 0;
          }

          &:hover {
            color: var(--color-yellow);
          }
        }

        details[open] summary::before {
          transform: rotate(90deg);
        }

        .details-content-wrapper {
          overflow: hidden;
          padding: calc(20 / 16 * 1rem) calc(24 / 16 * 1rem);
          transition:
            height 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55),
            opacity 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .details-content-wrapper > * {
          margin-top: calc(20 / 16 * 1rem);
          padding-left: calc(30 / 16 * 1rem);
        }

        .details-content-wrapper > *:first-child {
          margin-top: calc(20 / 16 * 1rem);
        }

        details em {
          padding-left: 0;
        }

        details p + p {
          margin-top: calc(12 / 16 * 1rem);
        }
      }
    }
  }

  footer {
    margin: calc(64 / 16 * 1rem) 0;
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: calc(24 / 16 * 1rem);

    p {
      font-size: calc(16 / 16 * 1rem);
    }

    .social-links {
      display: flex;
      gap: calc(12 / 16 * 1rem);

      a {
        color: var(--color-light-blue);
        font-size: calc(38 / 16 * 1rem);
        text-decoration: none;
        transition: color 200ms ease-in-out;

        &:hover {
          color: var(--color-dark-blue);
        }
      }
    }
  }

  .whistle {
    display: none;
    animation: whistle-hello;
    animation-fill-mode: both;
    animation-duration: 300ms;
    animation-delay: 500ms;
    transform: translateY(10rem);
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: fixed;
    /* bottom: -5.6rem; */
    /* left: 1.2rem; */
    /* width: 8rem; */

    @media (min-width: 1024px) {
      display: block;
      bottom: -8rem;
      left: 2.4rem;
      width: 12rem;
    }

    img {
      width: 100%;
    }
  }
}

@keyframes whistle-hello {
  to {
    transform: translateY(0rem);
  }
}

@keyframes whistle-blink {
  0% {
    transform: scaleY(1);
  }

  0.7%,
  1.3% {
    transform: scaleY(0);
  }

  2%,
  7% {
    transform: scaleY(1);
  }

  7.7%,
  8.3% {
    transform: scaleY(0);
  }

  9% {
    transform: scaleY(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#whistle {
  #whistle-eye-blink-clip > rect {
    animation: whistle-blink;
    animation-duration: 5s;
    animation-delay: 2s;
    animation-iteration-count: 3;
  }
}
