/* ======================== RESET & GLOBAL STYLES ============================= */
/* these apply everywhere */

/* Remove default spacing and use border-box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Set the global font, background, and text color */
body {
  font-optical-sizing: auto;

  background-color: #000;   /* black */
  color: #fff;              /* white text */
  font-family: "Schibsted Grotesk", sans-serif;
}

/* Main heading style used across the site */
h1 {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: #FFFFFF;
}

/* Section heading style */
h2 {
  font-weight: 400;
  font-size: 23px;
  line-height: 1.3;
  color: #FFFFFF;
}

/* Small heading top spacing */
h3 {
  font-size: 20px;

}

/* Fourth-level heading style */
h4 {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #FFFFFF;

}

/* Fifth-level heading style */
h5 {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #e7e1e1;

}

/* Default paragraph text style */
p {
  font-size: 16px;
  line-height: 1.5;
  color: #e7e1e1;
}

/* ======================== GLOBAL LINK STYLES ============================= */
/* shared link states for the whole website */

/* Default link style */
a {
  color: #6b76f3;
  transition: color 0.2s ease;
}

/* Visited link style */
a:visited {
  color: #9dbef7;
}

/* Hover state for links */
a:hover {
  color: #ababab;
}

/* Active state while clicking a link */
a:active {
  color: #888888;
}

/* Focus state for keyboard navigation */
a:focus {
  outline: 1px solid #ffffff;
  outline-offset: 2px;
}

/* Set default spacing for unordered lists */
ul {
  padding-left: 20px;
  margin: 10px 0;
}

/* Add spacing between list items */
li {
  margin-bottom: 6px;
}

/* Shared page container with side and bottom spacing */
.container {
  padding-left: 30px;   /* spacing inside */
  padding-right: 30px;  /* spacing inside */
  padding-bottom: 30px;  /* spacing inside */
  margin: 0 auto;
}

/* Add space between the header area and the main page content */
main.container {
  padding-top: 16px;
}

/* ======================== SHARED BACK LINK ============================= */
/* reusable pill-style back link used across lessons, policy pages, and experience pages */

/* Shared back link appearance */
.site-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background-color: #111111;
  color: #e7e1e1;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Highlight the back link slightly on hover */
.site-back-link:hover {
  background-color: #1f2638;
  border-color: #6b76f3;
  color: #ffffff;
}

/* Keep keyboard focus visible for accessibility */
.site-back-link:focus {
  outline: 2px solid #9dbef7;
  outline-offset: 2px;
}

/* Add a subtle pressed effect while the link is clicked */
.site-back-link:active {
  transform: translateY(1px);
}

/* Add space below the first back link when it sits inside an opening paragraph */
p > .site-back-link {
  margin-bottom: 20px;
}

/* Add space above a standalone back link before the next block or footer area */
main > .site-back-link {
  margin-top: 24px;
}






/* ======================== RESPONSIVE TYPOGRAPHY ============================= */
/* heading sizes for tablet and desktop screens */

/*

======================== TABLET HEADING STYLES =============================
heading sizes from 768px

@media screen and (min-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px;
  }

  h5 {
    font-size: 18px;
  }
}

======================== DESKTOP HEADING STYLES =============================
heading sizes from 1200px

@media screen and (min-width: 1200px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }
}

*/
