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

html {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.55;
}

html[dir="rtl"] {
  line-height: 1.7;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

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

a:hover {
  color: var(--color-secondary);
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  box-shadow: 0 0 0 5px var(--color-info);
  outline: 3px solid var(--color-bg);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--color-primary);
  font-family: var(--font-heading-base);
  line-height: 1.15;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  line-height: 1.28;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-block-end: var(--space-4);
}

html[dir="rtl"] h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.35rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-block-end: var(--space-4);
}

html[dir="rtl"] h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.1rem;
  margin-block-end: var(--space-2);
}

p {
  margin-block-end: var(--space-4);
}

.skip-link {
  background: var(--color-primary);
  color: var(--color-bg);
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: var(--space-2) var(--space-3);
  position: absolute;
  transform: translateY(-150%);
  z-index: 20;
}

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