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

@view-transition {
  navigation: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  all: unset;
  cursor: pointer;
}

body {
  font-family:
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.3;
  font-size: 0.8rem;
  color: #333;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  margin: 0;
}

:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5);
}

/* UTILITY CLASSES */
.flex-col {
  display: flex;
  flex-direction: column;
}
.justify-between {
  display: flex;
  justify-content: space-between;
}
.mobile-only {
  @media (min-width: 1024px) {
    display: none;
  }
}
.mobile-title {
  margin-bottom: 12px;
}

/* TYPOGRAPHY */
h1 {
  font: inherit;
  margin: 0;
  text-decoration: underline;
}
p {
  margin-top: 8px;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

/* SITE NAVIGATION */
.nav-desktop {
  display: none;
  flex-direction: column;
  padding-top: 20px;
  padding-bottom: 32px;
  padding-inline: 16px;
  width: 22vw;
  min-width: 235px;
  position: fixed;
  top: 0;
  bottom: 0;
  @media (min-width: 768px) {
    display: flex;
  }
}

.nav-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: white;
  border-bottom: 1px solid #bbb;
  padding-left: 10px;
  padding-right: 16px;
  padding-block: 16px;
  position: fixed;
  z-index: 666;
  top: 0;
  left: 0;
  right: 0;
  transition: top 0.3s ease;

  @media (min-width: 768px) {
    display: none;
  }
}
.nav-mobile .nav-link {
  padding-block: 4px;
  padding-inline: 6px;
}
.nav-hidden {
  top: -60px;
}

.nav-link {
  color: inherit;
  width: fit-content;
  text-decoration: underline;
  cursor: pointer;
  &:hover {
    text-decoration: none;
  }
  &:active {
    opacity: 70%;
  }
  @media (min-width: 1024px) {
    &:active {
      opacity: 100%;
    }
  }
}

.shop-link {
  margin-top: 2px;
  @media (min-width: 1024px) {
    margin-top: auto;
  }
}

.hover-link {
  width: fit-content;
  color: inherit;
  gap: 3px;
  display: flex;
  align-items: center;
  &:hover {
    text-decoration: none;
  }
  &:active {
    opacity: 70%;
  }
  @media (min-width: 1024px) {
    &:active {
      opacity: 100%;
    }
  }
}
.hover-link svg {
  padding-top: 1px;
  height: 14px;
  width: 14px;
  transition: transform 0.15s;
}
.hover-link:hover svg {
  transform: translateX(-2px);
}

/* PAGE LAYOUT */
.page-wrapper {
  padding-top: 75px;

  @media (min-width: 768px) {
    padding-top: 20px;
    padding-left: 80px;
    padding-right: 20px;
    margin-left: 22vw;
  }
  @media (min-width: 1024px) {
    width: 78vw;
    padding-left: 116px;
    padding-right: 0;
  }
}

.col-1-scroll {
  display: none;
  @media (min-width: 1024px) {
    width: calc(37.5% - 58px);
    display: block;
  }
}

.col-2-scroll {
  padding-inline: 16px;
  @media (min-width: 1024px) {
    width: calc(62.5% + 58px);
    padding-inline: 36px;
  }
}

.col-1-fixed {
  position: fixed;
  display: none;
  @media (min-width: 1024px) {
    display: block;
    width: calc(78vw * 0.375 - 102px);
  }
}

.col-2-fixed {
  padding-inline: 16px;
  @media (min-width: 1024px) {
    padding-inline: 36px;
    margin-left: calc(78vw * 0.375 - 101.5px);
  }
}

.home-row {
  display: flex;
}
.home-row:not(:last-of-type) .last-p {
  border-bottom: 1px solid #bbb;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

/* CONTACT FORM */
.contact {
  width: 100%;
  @media (min-width: 1024px) {
    margin-left: 225px;
    margin-right: 16px;
  }
}

.contact form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 12px;
  gap: 16px;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  border-radius: 3px;
  font: inherit;
  font-size: 0.75rem;
  resize: none;
  border: 1px solid #bbb;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset;
  box-shadow: 0 0 0 1000px white inset;
  -webkit-text-fill-color: inherit;
}

/* SEND BUTTON HTMX */
.sendbtn {
  background-color: #e2e2e2;
  color: #444;
  font-size: 0.725rem;
  height: 34px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: all 0.1s;
  &:disabled {
    color: #999;
  }
  &:hover:not(:disabled) {
    background-color: #e7e7e7;
  }
  &:active:not(:disabled) {
    transform: translateY(1px);
  }
}
.sendbtn .text {
  position: absolute;
  opacity: 1;
  transition: opacity 0.15s;
}
.sendbtn.htmx-request .text {
  opacity: 0;
}
.sendbtn .spinner {
  position: absolute;
  height: 16px;
  width: 16px;
  border: 2px solid #666;
  border-bottom: 3px solid transparent;
  border-radius: 8px;
  animation: spin 0.875s linear infinite;
  transition: margin-top 0.2s ease-out;
  margin-top: 50px;
}
.sendbtn.htmx-request .spinner {
  margin-top: 0;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* IMAGES */
.img-main {
  margin-bottom: 12px;
  transition: opacity 0.1s;
  @media (min-width: 1024px) {
    margin-bottom: 28px;
  }
}
