/* General
========================================================================== */

body {
  font-family: var(--ff-major);
  color: var(--c-emperor);
  font-size: 18px;
  font-weight: 500;
  font-style: normal;
  font-optical-sizing: auto;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  text-wrap: balance;
}

@media (min-width: 1280px) {
  body {
    font-size: 19px;
  }
}

@media (min-width: 1600px) {
  body {
    font-size: 21px;
  }
}

@media (min-width: 2300px) {
  body {
    font-size: 24px;
  }
}



/* Paragraphs
========================================================================== */

body main p,
body main .p {
  word-break: break-word;
  overflow-wrap: break-word;
  transition: opacity 0.5s cubic-bezier(.61,.31,0,1);
}



/* Links
========================================================================== */

a {
  color: var(--c-bahama);
  font-weight: 600;
  transition: color 0.3s ease;
}

@media (min-width: 1024px) {
  a:hover {
    color: var(--c-anzac);
    text-decoration: none;
  }
}



/* Headings
========================================================================== */
  
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6,
body main .h1--s {
  font-family: var(--ff-major);
  color: var(--c-bahama);
  font-weight: 400;
  transition: color 0.5s cubic-bezier(.61,.31,0,1);
}

h1, .h1 {
  font-size: 2.5em;
  line-height: 1.15;
}
body main .h1--s {
  font-size: 1.9em;
  line-height: 1.25;
}
h2, .h2 {
  font-size: 1.9em;
  line-height: 1.25;
}
h3, .h3 {
  font-size: 1.6em;
  line-height: 1.35;
}
h4, .h4 {
  font-size: 1.28em;
  line-height: 1.4;
}
h5, .h5 {
  font-size: 1.12em;
  line-height: 1.45;
}
h6, .h6 {
  font-size: 1em;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  body main .h1--s {
    font-size: 2.5em;
    line-height: 1.15;
  }
}

@media (min-width: 1280px) {
  h1, .h1 {
    font-size: 3.3em;
  }
  body main .h1--s {
    font-size: 3em;
  }
  h2, .h2 {
    font-size: 2.4em;
  }
  h3, .h3 {
    font-size: 1.85em;
  }
}

@media (min-width: 1600px) {
  h1, .h1 {
    font-size: 3.8em;
  }
  body main .h1--s {
    font-size: 3.25em;
  }
  h2, .h2 {
    font-size: 2.6em;
  }
  h3, .h3 {
    font-size: 1.9em;
  }
}

@media (min-width: 2300px) {
  h1, .h1 {
    font-size: 4.1em;
  }
  body main .h1--s {
    font-size: 3.6em;
  }
  h2, .h2 {
    font-size: 2.8em;
  }
  h3, .h3 {
    font-size: 2.05em;
  }
}