/* ========= Basic Reset */

* {
  margin: 0;
  box-sizing: border-box;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
}

img,
video {
  max-width: 100%;
  height: auto;
}

html,
body {
  height: 100%;
}

/* ===================== Basic Styles */

:root {
  --color-white: #f2f4f4;
  --color-white-real: #fff;
  --color-black: #4a4a4a;
  --color-orange: #ec5328;
  --color-orange-darker: #d23301;
  --color-blue: #38688f;
  --color-light-gray: #e6e8e8;

  font-size: 16px;
}

@media (min-width: 768px) {
  :root {
    font-size: 18px;
  }
}

body {
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
  font-weight: 400;

  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
}

h1,
h2,
h3 {
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1200px) {
  h1 {
    font-size: 2.8rem;
  }
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 1200px) {
  h2 {
    font-size: 1.7rem;
  }
}

h3 {
  font-size: 1.17rem;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

a:focus,
button:focus {
  outline: none;
}

a,
a:active,
a:visited {
  color: var(--color-black);
}

a:hover {
  text-decoration: none;
}

[data-whatintent='keyboard'] a:focus,
[data-whatintent='keyboard'] button:focus {
  outline: 2px solid var(--color-blue);
}

p + p {
  margin-top: 2rem;
}

table {
  margin: 1.5rem 0;
  border-spacing: 0.2rem;
  width: 100%;
}

th,
td {
  padding: 0.3rem 1rem;
}

th {
  background-color: var(--color-orange-darker);
  color: var(--color-white-real);
  text-align: left;
  font-weight: 400;
}

td {
  background-color: var(--color-white-real);
}

hr {
  margin: 2.5rem 0;
  border: none;
  height: 1px;
  background-color: var(--color-black);
  opacity: 0.4;
}

ul,
ol {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

code,
kbd {
  background-color: var(--color-light-gray);
  font-size: 0.8rem;
  padding: 0.1rem 0.2rem;
  border-radius: 0.2rem;
}

.image-border {
  border: 1px solid #e4e4e4;
}

/* ========= Screenreader Page */

.screenreader-page figure img {
  border-radius: 0.6rem;
}

.screenreader-page figure {
  box-shadow: 0px 2px 12px 1px rgba(0, 0, 0, 0.25);
  margin: 2rem 0;
  padding: 0.5rem 0.5rem 0;
  background-color: var(--color-white-real);
}

.screenreader-page h3 + figure,
.screenreader-page h3 + table {
  margin-top: 1rem;
}

.screenreader-page figcaption {
  padding: 0.6rem 0;
}

/* ========= Wrapper */

.wrapper {
  margin: 0 auto;
  max-width: 40rem;
  padding: 0 1.25rem;
  width: 100%;
}

.wrapper--wide {
  max-width: 87.5rem;
}

/* ========= Header */

.header {
  margin: 1rem auto 4rem;
}

.header__list {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  list-style: none;
}

.header__list-item:not(:last-child) {
  margin-right: 0.2rem;
}

.header__link {
  padding: 0.2rem 0.4rem 0.3rem;
}

/* ========= Page Title */

.page-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-title__container {
  display: flex;
  flex-direction: column;
  margin-top: -0.2rem;
}

.page-title__logo {
  width: 4rem;
}

.page-title__title {
  display: block;
  letter-spacing: -0.04em;
}

.page-title__subtitle {
  font-weight: 400;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  margin-left: 0.4rem;
  margin-top: -0.2rem;
  margin-right: auto;
  position: relative;
}

.page-title__audio-button {
  position: absolute;
  right: -1.5rem;
}

.page-title__audio-button:hover {
  color: var(--color-orange);
}

.audio-button__icon {
  width: 1rem;
  height: 1rem;
}

/* ========= Audio Button */

.audio-button {
  background: none;
  border: none;
  padding: 0.2rem;
  color: inherit;
  cursor: pointer;
}

/* ========= Intro */

.intro {
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 4rem;
}

/* ========= Screenreader List */

.screenreader-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  list-style: none;
  padding: 0;
}

.screenreader {
  text-align: center;
  margin-right: 2.8rem;
  margin-bottom: 2rem;
}

.screenreader__link {
  display: block;
}

.screenreader__image {
  width: 6.25rem;
  margin-bottom: 0.375rem;
}

/* @todo remove with 'coming-soon' flag when all screen readers are released */
.screenreader--coming-soon .screenreader__image {
  opacity: 0.4;
}

.screenreader__image-container {
  position: relative;
  display: block;
}

.screenreader__coming-soon-label {
  position: absolute;
  bottom: 0;
  font-size: 0.8rem;
  left: -0.125rem;
  right: -0.125rem;
  text-align: center;
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 0.1rem;
  border-radius: 0.375rem;
  font-style: italic;
}
/* end of remove */

.screenreader__title,
.screenreader__os {
  display: block;
}

/* ========= Sections */

.section-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-list::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 1.25rem;
  bottom: 1.25rem;
  border-left: 0.125rem dashed;
}

.sections-navigation {
  margin: 2rem 0;
  padding-left: 0.3rem;
}

.section {
  position: relative;
  padding-left: 1.1rem;
}

.section:not(:last-child) {
  margin-bottom: 1rem;
}

.section::before {
  content: '';
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--color-black);
  border-radius: 50%;
  left: 0;
  top: calc(50% + 0.0625rem);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0.125rem var(--color-white), 0 0 0 0.25rem var(--color-black);
}

.section--active::before {
  background-color: var(--color-orange-darker);
  box-shadow: 0 0 0 0.125rem var(--color-white), 0 0 0 0.25rem var(--color-orange-darker);
}

.section__link {
  display: inline-block;
  padding: 0.2rem;
}

.section--active .section__link {
  color: var(--color-orange-darker);
  font-weight: 900;
}

/* ========= Footer */

.footer {
  text-align: center;
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.footer p:not(:first-child) {
  margin-top: 0.8rem;
}

.footer em {
  font-style: italic;
}

.message {
  padding: 0.6rem;
  margin: 1rem 0;
  background-color: var(--color-light-gray);
  border: 1px solid #dfdfdf;
}

.sr-only {
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
