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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Outfit", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--color-text);
  color: var(--color-surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgb(201 0 107 / 32%);
  outline-offset: 3px;
}

.icon {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1;
  place-items: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-title,
.section-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
  letter-spacing: -0.4px;
}

.section-title {
  font-size: clamp(24px, 2.2vw, 28px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.section-heading a {
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 250;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-text);
  color: var(--color-surface);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .section-title {
    font-size: 23px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
