@import url('https://fonts.googleapis.com/css2?family=Muli:wght@200;400;600;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:wght@400;700&display=swap');

/*************

    CONTENTS
      1 GLOBAL PAGE STYLE
      2 HEADING STYLE
        2.1 NAVBAR STYLE
      3 CONTENT STYLE
      4 FOOTER STYLE
      5 MISC AND FIXES

************/

/*************
  1 GLOBAL PAGE STYLE
************/

html {
  font-size: 16px;

  /* Palette */
  --bkgd-clr: #121212;
  --txt-clr: #f4f4f9;
  --obj-clr: #102a43;
  --hghlt-one: #627d98;
  --hghlt-two: #c1292e;
}

body {
  background-color: var(--bkgd-clr);
  margin: 0;

  color: var(--txt-clr);
  font-family: 'Muli', sans-serif;
    font-weight: 400;
  font-size: 1rem;
}

/*************
  2 HEADING STYLE
************/

#heading {
  background-color: inherit;

  position: fixed;
  width: 100%;

  z-index: 100;
}

#heading h1 {
  color: var(--txt-clr);
  background-color: inherit;

  text-align: center;
  font-family: 'Libre Caslon Text', serif;
   font-variant: small-caps;
  font-size: 8vw;
  letter-spacing: 0.42vw;

  margin-bottom: 0;
}

/* ON DESKTOP, SET FONT-SIZE TO 3em (48px) AND LETTER-SPACING TO 2.5px */
@media only screen and (min-width:600px) {
  #heading h1 {
    font-size: 3em;
    letter-spacing: 2.5px;
  }
}

#heading h2 {
  color: var(--hghlt-one);
  opacity: 0.9;

  text-align: center;
  font-family: 'Muli', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
  font-size: 6vw;
  letter-spacing: 1.5vw;

  margin-top: 0.5em;
  margin-bottom: 1em;
}

/* ON DESKTOP, SET FONT-SIZE TO 1.5em (24px) AND LETTER-SPACING TO 4px */
@media only screen and (min-width:400px) {
  #heading h2 {
    font-size: 1.5em;
    letter-spacing: 6px;
  }
}

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

/*************
  2.1 NAVBAR STYLE
************/

#heading nav ul {
  background: var(--hghlt-one);
  margin: 0;
  padding: 0px;
  list-style: none;
  text-align: center;
}

#heading nav li {
  display: inline-block;

  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;

  padding: 8px;
  margin-left: 12px;
  margin-right: 12px;
}

#heading nav a {
  text-decoration: none;
  color: var(--bkgd-clr);
}

#heading nav a:hover {
  color: var(--obj-clr);
}

#heading nav a:active {
  color: var(--txt-clr);
}

#navbar ul div {
  display: block;
}

@media only screen and (min-width: 600px) {
  #navbar ul div {
    display: inline;
  }
}

/*************
  3 CONTENT STYLE
************/

.content {
  margin-top: 4rem;
  margin-left: 10vw;
  margin-right: 10vw;
  margin-bottom: 4rem;

  border-radius: 1vmax;
  padding: calc(1vmax + 2vmin);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

  background: var(--obj-clr);
}

@media only screen and (min-width: 767px) {
  .content {
      margin-left: 20vw;
      margin-right: 20vw;
  }
}

.content h1 {
  font-family: 'Muli', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.8em;
    letter-spacing: 2.4px;
}

.content > h1:first-of-type {
  margin-top: 0;
}

.content h2 {
  font-family: 'Libre Caslon Text', serif;
    font-weight: 700;
    font-size: 1.2em;
}

.content h3 {
  font-family: 'Muli', sans-serif;
    font-weight: 800;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

p {
  font-family: 'Muli', sans-serif;
    font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5em;
}

hr {
  width: 90%;

  border-style: solid;
  border-color: var(--hghlt-one);
}

.content li {
  font-family: 'Muli', sans-serif;
    font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5em;
}

.content a {
  text-decoration: none;
  font-weight: 800;

  color: var(--hghlt-two);
}

.content a:hover {
  color: var(--hghlt-one);
}

.content a:active {
  color: var(--txt-clr);
}

.content img {
  background: black;
  padding: 24px;
  border-color: outset;
  border-width: 2px;
  border-style: ridge;
  max-width: 100%;
}

.content ul {
  padding-left: 4vw;
}

@media only screen and (min-width:600px) {
  .content ul {
    padding-left: 24px;
  }
}

/*************
  4 FOOTER STYLE
************/

footer {
  margin-top: 4vh;
  padding-top: 2vh;
  padding-bottom: 2vh;
  padding-right: 2vh;
  padding-left: 2vh;
  background: var(--hghlt-one);

  font-size: 0.8em;
  text-align: right;
}

/*************
  5 MISC AND FIXES
************/

/* SUBSCRIPT AND SUPERSCRIPT DO NOT AFFECT LINE HEIGHT */
sup, sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
  z-index: inherit;
}
sub {
  top: 0.4em;
}
