:root {
  --c1: #537499; /* Blue */
  --c2: #6F6A6C; /* Grey */
  --c3: #FE5F55; /* Pink */
  --c4: #2A2E39; /* Dark Grey */
  --c5: #F1EEEE; /* Off-White */
  --f1: 'Josefin Sans', sans-serif; /* Title font */
  --f2: 'Gafata', sans-serif; /* Alt Title Font */
  --f3: 'Roboto Slab', serif; /* Text font */

  font-size: 16px; /* Root Font Size */
  color: var(--c4); /* Root Font Colour */
  font-family: var(--f3); /* Root Font */
}

@media screen and (max-width: 110vh) {
  :root {
    font-size: 24px !important;
  }
  
  section {
  margin: 2rem !important;
}
  nav {
    display: none !important;
  }
  
  section > article > img {
    width: 10rem !important;
    height: 10rem !important;
  }
  
  section > article {
  min-height: 10rem !important;
  }
}

body {
  margin: 0;
}
main {
  background-color: white;
  padding-top: 0.5rem;
  padding-bottom: 10rem;
}
footer {
  background-color: var(--c2);
  height: 20rem;
}

/** Header **/
body > header {
  position: relative;
 width: 100vw;
 height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
body > header > img {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -1;
}
body > header > div {
  background-color: var(--c1);
  padding: 5rem;
  text-align: center;
  color: white;
  font-family: var(--f2);
  font-size: 1.5rem;
  box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.5);
}
body > header > div > header {
  color: white;
  font-family: var(--f1);
  font-size: 3rem;
  border-bottom: 2px solid white;
  padding: 0 2rem;
  margin-bottom: 0.5rem;
}

/** Nav Bar **/
nav {
  position: fixed;
  right: 2rem;
  top: 2rem;
  width: 10vw;
  min-width: 8rem;
  background-color: var(--c1);
  box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.5);
}
nav > a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: white;
}
nav > a:hover {
  background-color: var(--c3);
  color: white;
}

/** Sections **/
section {
  margin: 3rem 20vw;
}
section > header {
  font-family: var(--f2);
  font-size: 3rem;
  color: var(--c3);
  margin: 1rem 0;
}
section > header:before {
  content: "> "
}

/** Articles **/
section > article {
  min-height: 20rem;
  background-color: var(--c5);
  padding: 1rem;
}
section > article > img {
  height: 20rem;
  width: 20rem;
  object-fit: cover;
}
section > article > header {
  color: var(--c1);
  font-family: var(--f2);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
section > article > header:before {
  content: "> "
}

/** Timeline **/
div.timeline {
  background-color: var(--c5);
  border-left: 10px solid var(--c1);
  position: relative;
}
div.timeline > article {
  position: relative;
  padding: 1rem 2rem;
}
div.timeline > article:before {
  position: absolute;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 1rem;
  left: calc(-1rem - 5px);
  top: 1rem;
  background-color: var(--c1);
  content: " ";
}
div.timeline > article > header {
  color: var(--c3);
  font-family: var(--f2);
  font-size: 1.5rem;
}

/** Image handling **/
.gallery {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
}
.gallery * {
  height: 15rem;
  margin-right: 1rem;
  margin-bottom: 1rem;
}
.left {
    float: left;
  margin-right: 1rem;
}
.right {
    float: right;
  margin-left: 1rem;
}
a:hover > img {
  border-bottom: 10px solid var(--c3);
}

/** Video **/
iframe {
  width: 25rem;
  border: none;
}

/** Details tags **/
details {
  position: relative;
  margin-bottom: 1rem;
}
details > summary::-webkit-details-marker {
display: none;
}
details > summary::after {
  content: "+ Read more";
  color: var(--c1);
}
details > summary:hover::after {
  color: var(--c3);
}
details[open] > summary::after {
  content: "- Read less";
  position: absolute;
  top: calc(100% + 1rem);
}
details[open] {
  margin-bottom: 4rem;
}

/** Quotes **/
blockquote {
  background-color: var(--c5);
  border-left: 10px solid var(--c3);
  padding: 2rem;
  margin: 1rem;
}
.offwhite blockquote {
  background-color: white;
}
blockquote > p {
  font-size: 1.5rem;
  font-family: var(--f2);
}
blockquote > footer {
  font-weight: bold;
  font-style: italic;
}
blockquote > footer:before {
  content: "- ";
}

/** Typography **/
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-family: var(--f2);
}
h1 {
  font-size: 2rem;
}
h2,
h3,
h4 {
  font-family: var(--f2);
}
p {
  margin-block-start: 0;
}
a {
  text-decoration: none;
  color: var(--c3);
}
a:hover {
  color: var(--c1)
}
