*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
address {
  margin: 0;
  font-style: normal;
}

::selection {
  color: var(--white);
  background: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

html[dir="rtl"] .brand-sub,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .btn,
html[dir="rtl"] .match-tag,
html[dir="rtl"] .countdown-label,
html[dir="rtl"] .mega-eyebrow,
html[dir="rtl"] .mega-feature-tag,
html[dir="rtl"] .mega-feature-link,
html[dir="rtl"] .footer-heading {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .mega-feature-title,
html[dir="rtl"] .match-team-name,
html[dir="rtl"] .match-vs,
html[dir="rtl"] .countdown-value {
  font-family: var(--font-ar);
}

html[dir="rtl"] .hero-title {
  font-weight: 800;
  line-height: 1.08;
}

html[dir="rtl"] .mega-feature-title,
html[dir="rtl"] .match-team-name,
html[dir="rtl"] .match-vs,
html[dir="rtl"] .countdown-value {
  font-weight: 700;
}

html[dir="rtl"] .mega-link::after {
  content: "\2190";
}

html[dir="rtl"] .btn-arrow {
  transform: scaleX(-1);
}

html[dir="rtl"] .btn:hover .btn-arrow {
  transform: scaleX(-1) translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
