html {
  box-sizing: border-box;
  font-family: sans-serif;
  height: 100%;
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  /* font-size: 0.9rem; */
  letter-spacing: 0.06rem;
}

@media screen and (min-width: 750px) {
  body {
    font-size: 1rem;
  }
}

main {
  flex: 1;
}

hr {
  border-color: var(--border);
}

small {
  font-size: var(--text-size-80);
  font-weight: 200;
  line-height: 0.875;
}

strong {
  font-weight: 700;
}

span,
p {
  font-size: var(--text-size-100);
  font-weight: 400;
  line-height: 1;

  @media (max-width: 1280px) {
    font-size: var(--text-size-90);
  }

  /* @media (max-width: 768px) {
		font-size: var(--text-size-80);
	} */
}

h6 {
  font-size: var(--text-size-150);
  font-weight: 400;
  line-height: 1;

  @media (max-width: 1280px) {
    font-size: var(--text-size-100);
  }

  @media (max-width: 768px) {
    font-size: var(--text-size-100);
  }
}

h5 {
  font-size: var(--text-size-200);
  font-weight: 400;
  line-height: 1.125;

  @media (max-width: 1280px) {
    font-size: var(--text-size-150);
  }

  /* @media (max-width: 768px) {
		font-size: var(--text-size-100);
	} */
}

h4 {
  font-size: var(--text-size-400);
  font-weight: 500;
  line-height: 1.125;

  @media (max-width: 1280px) {
    font-size: var(--text-size-300);
  }

  @media (max-width: 768px) {
    font-size: var(--text-size-200);
  }
}

h3 {
  font-size: var(--text-size-500);
  font-weight: 600;
  line-height: 1.25;

  @media (max-width: 1280px) {
    font-size: var(--text-size-400);
  }

  @media (max-width: 768px) {
    font-size: var(--text-size-300);
  }
}

h2 {
  font-size: var(--text-size-600);
  font-weight: 700;
  line-height: 1.25;

  @media (max-width: 1280px) {
    font-size: var(--text-size-500);
  }

  @media (max-width: 768px) {
    font-size: var(--text-size-400);
  }
}

h1 {
  font-size: var(--text-size-700);
  font-weight: 800;
  line-height: 1.5;
  /* letter-spacing: -0.022em; */

  @media (max-width: 1280px) {
    font-size: var(--text-size-600);
  }

  @media (max-width: 768px) {
    font-size: var(--text-size-500);
  }
}

.border-input {
  border-color: color-mix(
    in srgb,
    var(--muted-foreground) 10%,
    rgba(255, 255, 255, 0)
  );
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30pxvar (--background) inset !important;
  -webkit-text-fill-color: var(--foreground) !important;
}

.container {
  width: 100%;
  margin: 0 auto;
  @media (max-width: 768px) {
    width: auto;
    /* margin-left: 0.5rem;
		margin-right: 0.5rem; */
  }
}

nav .nav-link {
  display: flex;
  align-items: center;
  letter-spacing: 0.025em;
  position: relative;
  text-decoration: none;
  &::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background-color: var(--muted-foreground);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
  }

  &:hover::after {
    width: 100%;
  }
}

nav .nav-sublink {
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  /* color: var(--muted-foreground); */
  opacity: 0.8;
  position: relative;
  text-decoration: none;

  &::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background-color: var(--muted-foreground);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
  }

  &:hover::after {
    width: 100%;
  }
}

#carousel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 100%;
}
.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

summary {
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
}
