/* ==========================================================================
   Base body styles
   ========================================================================== */

body {
  background-color: var(--light-gray);
  color: var(--primary-text);
  font-family:
    "Public Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  padding: 0;

  b,
  strong {
    font-weight: 600;
  }
}

figcaption,
caption,
.caption {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

blockquote,
.pullQuote {
  font-family:
    "Lora",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;

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

/* ==========================================================================
   Base Headings
   ========================================================================== */

/* ----------------------------------------
   1. Default margins for headings
---------------------------------------- */
h1,
h2,
h3 {
  margin-top: 21px;
  margin-bottom: 15px;
}

h4,
h5,
h6 {
  margin-top: 10px;
  margin-bottom: 15px;
}

/* ----------------------------------------
     2. Font-weight and padding
     Applies to all headings and legacy .h1–.h6 classes
---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: bold;
  padding: 0;
}

/* ----------------------------------------
     3. Individual heading font sizes & overrides
---------------------------------------- */
h1,
.h1 {
  font-size: 36px;
  font-weight: normal;
}

h2,
.h2 {
  font-size: 36px;
}

h3,
.h3 {
  font-size: 26px;
}

h4,
.h4 {
  font-size: 20px;
}

h5,
.h5,
h6,
.h6 {
  font-size: 16px;
}

/* ----------------------------------------
     4. Page-specific overrides
---------------------------------------- */
div.pagetitle h1,
div.pagetitle h2 {
  margin: 10px 0px 20px 0px;
}

div.pagetitle h2 {
  margin-top: 0px;
}

/* ----------------------------------------
     5. Detailed header tweaks (optional)
     Kept from original for legacy purposes
---------------------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 120%;
}

h2 {
  font-weight: 600;
  line-height: 120%;
}

h3 {
  font-weight: 600;
  line-height: 120%;
}

h4 {
  font-weight: 600;
  line-height: 120%;
}

/* ==========================================================================
   Base Lists
   ========================================================================== */

ul ul,
ol ul,
ul ol,
ol ol {
  margin-bottom: 0;
}

/* ==========================================================================
   Link Styles
   ========================================================================== */
a {
  color: var(--primary-text);
  text-decoration: underline;

  &:hover {
    color: var(--indigo-600);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.instrdates,
.instronly {
  font-size: 80%;
}

/*TODO: used in themeing, can be removed once themes are removed*/
a.newnote,
a.newnote:link,
a.newnote:visited {
  color: #f00;
}

/*when keyboard focus is applied, the skip link is now visible*/
a.skip-link:focus {
  align-items: center;
  background-color: var(--white);
  color: var(--black);
  display: flex;
  font-weight: 600;
  padding: 20px;
  position: static;
  text-decoration: none;
  width: auto;
}

/*positions skip link off screen*/
a.skip-link {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}
