@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: local('Quicksand'),
    url('SourceSansPro-Regular.woff2') format('woff2'),
    url('SourceSansPro-Regular.woff') format('woff'),
    url('SourceSansPro-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  src: local('Kanit'),
    url('Kanit-Bold.woff2') format('woff2'),
    url('Kanit-Bold.woff') format('woff'),
    url('Kanit-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Kanit';
  font-style: italic;
  font-weight: 700;
  src: local('Kanit'),
    url('Kanit-BoldItalic.woff2') format('woff2'),
    url('Kanit-BoldItalic.woff') format('woff'),
    url('Kanit-BoldItalic.ttf') format('truetype');
}

:root {
  --primary-white: #FFFFFF;
  --primary-creme: #FEFDF0;
  --secondary: #3C3C3C;
  --accent-blue: #00A1DA;
  --accent-green: #46CB45;
  --text: var(--secondary);
  --highlight: var(--accent-green);
  --link: var(--accent-blue);
}

html {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  color: var(--text);
}

body {
  max-width: 60rem;
  margin: auto;
  background-image: url(../img/bdna.svg);
  background-position: 0 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: auto 100vh;
  background-color: var(--primary-white);
  overflow: visible;
}

@media (orientation: landscape) {
  nav {
    position: fixed;
    right: 5rem;
    top: 10rem;
    font-size: 140%;
    font-family: Kanit, sans-serif;
    font-weight: 700;
    max-width: calc(100% - 60rem);
  }

  nav a:active {
    border-left: 5px dotted var(--highlight);
  }
}

@media (orientation: portrait) {
  nav {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    font-size: 140%;
    font-family: Kanit, sans-serif;
    font-weight: 700;
    max-width: unset;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0.5rem;
  }

  nav > ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
  }

  nav > ul > li {
    flex-grow: 1;
  }
}

#hamburger {
  display: none;
}

nav ul {
  list-style: none;
}

nav a {
  padding-left: 1rem;
  border-left: 5px solid transparent;
}

nav a.active {
  font-style: italic;
}

main {
  min-height: calc(100vh - 3rem);
}

h1 {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  color: var(--highlight);
  font-size: 300%;
  margin: 0;
}

h2 {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  color: var(--highlight);
  font-size: 200%;
}

h3 {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  color: var(--highlight);
  font-size: 125%;
}

img {
  max-width: 100%;
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  text-align: right;
  max-width: 60rem;
  font-size: 75%;
}

@media (max-width: 600px) {

  body {
    padding: 0.5rem;
  }

  h1 {
    font-size: 200%;
  }

  h2 {
    font-size: 125%;
  }
}
/* 
@media (max-width: 1000px) {
  nav {
    visibility: hidden;
  }

  #hamburger {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
  }

  #hamburger::after {
    content: ''
  }

  #hamburger:checked+nav {
    visibility: visible;
    position: absolute;
    top: 0;
    right: 20rem;
  }

  #hamburger:checked+nav ul {
    margin-top: 0;
    padding: 1rem;
    padding-top: 2rem;
    width: 18rem;
    background-color: white;
    z-index: 3;
    box-shadow: 7px 7px 20px black;
  }
} */

main {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1em;
  margin: 0;
}

time {
  font-size: 80%;
}

code {
  font-size: 80%;
}

article>h2 {
  margin-top: 0;
  margin-bottom: 0;
}

code {
  padding-inline: 0.2em;
  border-radius: 0.2em;
  background-color: var(--secondary);
  color: var(--primary-creme);
}

figure {
  display: inline-block;
  padding: 0.5rem;
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3);
}

figure>img {
  box-shadow: initial;
  display: block;
}

figcaption {
  font-size: 90%;
  min-width: 100%;
  width: min-content;
  margin-block-start: 0.25rem;
}

video.card {
  padding: 0.5rem;
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3);
  margin-inline-start: 2rem;
  background-color: var(--primary-white);
}

blockquote {
  position: relative;
  border-inline-start: 2px solid var(--accent-green);
  padding-inline-start: 1em;
}

blockquote::before {
  content: '"';
  position: absolute;
  font-size: 120px;
  color: var(--accent-green);
  z-index: -1;
  top: -0.4em;
  left: -0.2em;
}
