:root {
  --site-accent: #ff7e67;
  --site-ink: #191c1d;
  --site-surface: #f8f9fa;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
}

img {
  display: block;
}

a,
button,
[data-href] {
  -webkit-tap-highlight-color: transparent;
}

button,
[data-href] {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
[data-href]:focus-visible {
  outline: 3px solid rgba(255, 126, 103, 0.45);
  outline-offset: 3px;
}

nav > div > div:first-child {
  cursor: pointer;
  white-space: nowrap;
}

.site-product-link {
  cursor: pointer;
}

.site-product-link:focus-visible {
  outline: 3px solid rgba(255, 126, 103, 0.45);
  outline-offset: 4px;
}

.site-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 12px 20px 20px;
  background: rgba(248, 249, 250, 0.98);
  border-top: 1px solid rgba(139, 113, 109, 0.18);
  border-bottom: 1px solid rgba(139, 113, 109, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.site-mobile-menu.is-open {
  display: grid;
  gap: 4px;
}

.site-mobile-menu a {
  display: block;
  padding: 12px 8px;
  color: var(--site-ink);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(139, 113, 109, 0.1);
}

.site-mobile-menu a:last-child {
  color: #a53b29;
  border-bottom: 0;
}

.site-menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--site-ink);
  background: transparent;
  border: 1px solid rgba(139, 113, 109, 0.25);
  border-radius: 8px;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  max-width: min(440px, calc(100vw - 40px));
  padding: 13px 18px;
  color: #fff;
  background: #2e3132;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  font-size: 14px;
  line-height: 1.5;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  color: var(--site-ink);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.site-modal::backdrop {
  background: rgba(25, 28, 29, 0.58);
  backdrop-filter: blur(4px);
}

.site-modal__body {
  padding: 32px;
}

.site-modal__eyebrow {
  margin-bottom: 10px;
  color: #a53b29;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-modal h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.3;
}

.site-modal p {
  margin: 0;
  color: #5b5f63;
  line-height: 1.7;
}

.site-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.site-modal__actions button,
.site-modal__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(139, 113, 109, 0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.site-modal__actions a {
  color: #fff;
  background: var(--site-accent);
  border-color: var(--site-accent);
}

.site-case-card {
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-case-card.is-changing {
  opacity: 0.2;
  transform: translateY(4px);
}

@media (min-width: 1024px) {
  body[data-page="home"] main > section:first-child {
    min-height: calc(100vh - 112px) !important;
  }
}

@media (min-width: 768px) {
  body[data-page="creative"] h1 {
    font-size: 50px !important;
    line-height: 1.12 !important;
  }
}

.legal-page {
  padding: 150px 24px 96px;
  background: var(--site-surface);
}

.legal-page__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.legal-page__eyebrow {
  color: #a53b29;
  font-size: 13px;
  font-weight: 700;
}

.legal-page h1 {
  margin: 14px 0 18px;
  color: var(--site-ink);
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.12;
}

.legal-page__intro {
  max-width: 720px;
  margin-bottom: 56px;
  color: #5b5f63;
  font-size: 18px;
  line-height: 1.8;
}

.legal-page section {
  padding: 30px 0;
  border-top: 1px solid rgba(139, 113, 109, 0.2);
}

.legal-page h2 {
  margin: 0 0 12px;
  color: var(--site-ink);
  font-size: 23px;
}

.legal-page p {
  margin: 0;
  color: #5b5f63;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .site-menu-toggle {
    display: inline-flex;
  }

  nav > div {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  nav > div > button:not(.site-menu-toggle) {
    display: none;
  }

  .px-margin-desktop {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .py-section-gap-desktop {
    padding-top: 68px !important;
    padding-bottom: 68px !important;
  }

  .site-modal__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .site-modal__actions button,
  .site-modal__actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
