:root {
  color-scheme: light;
  --ivory: #f4efe3;
  --stone: #d7d0c2;
  --sand: #c7a979;
  --earth: #80583d;
  --brown: #4b372b;
  --mediterranean: #72a6c6;
  --sky-faded: #b8d5e6;
  --ink: #171916;
  --gold: #a98443;
  --white: #fffdf8;
  --line-dark: rgba(23, 25, 22, 0.22);
  --focus: #171916;
  --font-display: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-arabic: "SF Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --page-gutter: clamp(20px, 3.5vw, 58px);
  --header-height: 78px;
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
}

html[lang="ar"] [data-i18n] {
  letter-spacing: 0;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .skip-link {
  right: 10px;
  left: auto;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .brand-wordmark,
html[dir="rtl"] .lang-switch,
html[dir="rtl"] .product-card__meta h2,
html[dir="rtl"] .purchase-title,
html[dir="rtl"] .size-picker span,
html[dir="rtl"] .rai-player__time,
html[dir="rtl"] .eyebrow {
  direction: ltr;
  unicode-bidi: isolate;
}

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

html {
  min-width: 320px;
  background: var(--ivory);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.menu-open {
  touch-action: none;
}

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

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--sand);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 12px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 0.8rem;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

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

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