*, ::before, ::after {
  box-sizing: border-box;
}

html {
  line-sizing: normal;
}

body {
  margin: 0;
}

[hidden] {
  display: none;
}

pre {
  white-space: pre-wrap;
}

hr {
  border-style: solid;
  border-width: 1px 0 0;
  color: inherit;
  height: 0;
  overflow: visible;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
  max-width: 100%;
}

audio:not([controls]) {
  display: none;
}

picture {
  display: contents;
}

source {
  display: none;
}

img, svg, video, canvas {
  height: auto;
}

audio {
  width: 100%;
}

img {
  border-style: none;
}

svg {
  overflow: hidden;
}

[type=checkbox],
[type=radio] {
  box-sizing: border-box;
  padding: 0;
}

html {
  --distance-xxl: calc(4rem + 2.5vw);
  --distance-xl: calc(3rem + 2vw);
  --distance-l: calc(2rem + 1.5vw);
  --distance-m: calc(1rem + 1.125vw);
  --distance-s: calc(.75rem + .75vw);
  --distance-xs: calc(.5rem + .5vw);
  --distance-xxs: calc(.25rem + .25vw);
}

body {
  margin-left: auto;
  margin-right: auto;
  max-width: 1920px;
}

main {
  padding-top: var(--distance-xxl);
}

.grid-container {
  margin: 0 auto;
  max-width: 1540px;
  width: 90%;
}
@media screen and (min-width: 50em) {
  .grid-container {
    display: grid;
    width: 82%;
  }
}

body {
  --maincolor: #fff;
  --maincolor-rgb: 250,192,63;
  --textcolor: #000;
  --linkcolor: var(--textcolor);
  --bordercolor: var(--textcolor);
  --sitebackground: var(--maincolor);
  --navbackground: var(--maincolor);
}

body {
  background: var(--maincolor);
}

@font-face {
  font-family: "Nichrome";
  src: url("../fonts/MDNichrome0.7-Black.woff2"), url("../fonts/MDNichrome0.7-Black.woff") format("woff");
  font-weight: 800;
}
@font-face {
  font-family: "Nichrome";
  src: url("../fonts/MDNichrome0.7-Light.woff2"), url("../fonts/MDNichrome0.7-Light.woff") format("woff");
  font-weight: 300;
}
@font-face {
  font-family: "Nichrome";
  src: url("../fonts/MDNichrome0.7-Regular.woff2"), url("../fonts/MDNichrome0.7-Regular.woff") format("woff");
  font-weight: normal;
}
@font-face {
  font-family: "Souvenir";
  src: url("../fonts/souvenir.woff") format("woff");
  font-weight: 300;
}
@font-face {
  font-family: "Ivar";
  src: url("../fonts/ivar-text-regular.woff2");
  font-weight: normal;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-v7-latin-regular.woff2");
  font-weight: normal;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-v7-latin-italic.woff2");
  font-style: italic;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-v7-latin-300.woff2");
  font-weight: 300;
}
@font-face {
  font-family: "NewsReader";
  src: url("../fonts/spectral-v7-latin-regular.woff2");
  font-weight: normal;
}
@font-face {
  font-family: "NewsReader";
  src: url("../fonts/spectral-v7-latin-italic.woff2");
  font-style: italic;
}
@font-face {
  font-family: "NewsReader";
  src: url("../fonts/spectral-v7-latin-300.woff2");
  font-weight: 300;
}
@font-face {
  font-family: "Happy";
  src: url("../fonts/happy-times-NG_regular_master_web.woff2");
  font-weight: 400;
}
html {
  --mainfont: "Source Serif Pro", serif;
  --altfont: "Nichrome", sans-serif;
  --thirdfont: "Souvenir", serif;
  --fourthfont: var(--altfont);
}

body {
  font-family: var(--mainfont);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media screen and (min-width: 30em) {
  body {
    font-size: 1.25rem;
  }
}
@media screen and (min-width: 40em) {
  body {
    font-size: 1.4375rem;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--altfont);
  margin-top: 0;
}

p, img, figure, li, blockquote {
  margin-top: 0;
}

.mainheader {
  align-items: center;
  display: none;
  justify-content: space-between;
  height: calc(3rem + 5vw);
  left: 0;
  max-height: 7.5rem;
  padding: 0 5vw;
  position: fixed;
  right: 0;
  z-index: 10;
}

.mainlogo {
  display: block;
  height: 36px;
  width: 36px;
}

.site-name {
  font-family: var(--mainfont);
  font-size: 1rem;
  font-weight: normal;
}

@media screen and (min-width: 50em) {
  .mainheader {
    background-color: transparent;
    padding: 0 2vw;
    padding: 0 calc(4vw - 21px);
  }

  .mainlogo {
    height: 41px;
    width: 42px;
  }
}
.mainmenu button {
  background: none;
  display: block;
  border: 0;
  height: 22px;
  width: 32px;
  color: #000;
  font-size: 0rem;
  padding: 0;
}
@media screen and (min-width: 50em) {
  .mainmenu button {
    height: 26px;
    width: 36px;
  }
}

.hamburger {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.hamburger .bar {
  background-color: #000;
  border-radius: 4px;
  height: 2px;
  padding: 0;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

.bar1 {
  top: 0;
}

.bar2,
.bar3 {
  top: 10px;
}
@media screen and (min-width: 50em) {
  .bar2,
.bar3 {
    top: 12px;
  }
}

.bar3 {
  right: 0;
}

.bar4 {
  bottom: 0;
}

/* HAMBURGER 1 */
[aria-expanded=true] .hamburger > .bar2 {
  transform: rotate(45deg);
  transform-origin: 50%;
}

[aria-expanded=true] .hamburger > .bar1 {
  background-color: transparent;
}

[aria-expanded=true] .hamburger > .bar4 {
  background-color: transparent;
}

[aria-expanded=true] .hamburger > .bar3 {
  transform-origin: 50%;
  transform: rotate(-45deg);
}

.mainmenu__list {
  align-items: center;
  background: rgba(var(--maincolor-rgb), 0.95);
  -webkit-backdrop-filter: blur(30px);
  -moz-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  bottom: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  left: 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  pointer-events: none;
  right: 0;
  transition: opacity 0.4s, visibility 0.4s;
  top: 0;
  visibility: hidden;
  width: 100vw;
}
.mainmenu__list a {
  color: #000;
  display: block;
  font-family: var(--altfont);
  font-weight: bold;
  font-size: 3rem;
  opacity: 0;
  text-decoration: none;
  transform: translateY(-60px);
  transition: 0.2s ease-in-out opacity, 0.4s ease-in-out transform;
}

[aria-expanded=true] ~ .mainmenu__list {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.4s, visibility 0s;
  visibility: visible;
}
[aria-expanded=true] ~ .mainmenu__list a {
  opacity: 1;
  transform: translateY(0);
}

.post-date {
  align-items: center;
  display: flex;
  font-family: var(--headingfont);
  font-size: 1rem;
  height: calc(3rem + 5vw);
  justify-content: center;
  margin-bottom: 0.5rem;
  max-height: 7.5rem;
}
.post-date time {
  position: relative;
  z-index: 9;
}

.h1-wrapper {
  align-items: center;
  border: 1px solid black;
  border-radius: 23rem/20rem;
  display: flex;
  justify-content: center;
  margin-bottom: var(--distance-xl);
  min-height: 10rem;
}

h1 {
  font-size: clamp(2.75rem, 10vw, 10rem);
  line-height: 1;
  margin: 0.75em 1.25em 0.875em;
  text-align: center;
}
@media screen and (min-width: 50em) {
  h1 {
    line-height: 0.875;
  }
}

.post-intro {
  font-family: var(--thirdfont);
  font-size: 2rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.16667;
  text-align: center;
}
