@import url(fonts.css);

body,
html {
  margin: 0;
  padding: 0;
}

:root {
  --olive-green: #386523;
  --off-white: #fff;
  --tagada-font-stack: 'Tagada', serif;
  --mono-font-stack: 'Xanh Mono', monospace;
  --sans-font-stack: 'TeX Gyre Heros', sans-serif;
  font-size: calc(16px + 1vw);
  background-color: var(--off-white);
  color: var(--olive-green);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: .7s all;
  text-align: justify;
  text-justify: inter-word;
  -moz-hyphens: auto;
  hyphens: auto;
  font-family: var(--tagada-font-stack);
}

body {
  height: 200vh;
}

::selection {
  background: var(--olive-green);
  color: var(--off-white);
}

::-moz-selection {
  background: var(--olive-green);
  color: var(--off-white);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
}

nav {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  text-transform: uppercase;
}

nav * {
  margin: 0;
}

nav h1 {
  font-weight: 400;
  font-size: 1em;
  text-decoration: none;
  text-transform: uppercase;
  flex-grow: 1;
}

nav h1 a {
  text-decoration: none;
}

main,
main h2 {
  height: 100%;
}

main h2 {
  font-family: var(--mono-font-stack);
  padding: 1rem;
  font-size: calc(1vh + 9vw);
  text-transform: initial;
  hyphens: none;
  line-height: 1;
  font-weight: 100;
}

main h2 img {
  position: sticky;
  top: 15vh;
  z-index: -998;
  height: .8em;
}

main h2 img:nth-of-type(2) {
  top: 2rem;
}

main h2 img:nth-of-type(3) {
  top: 7rem;
  z-index: -999;
}

h3 {
  font-family: var(--mono-font-stack);
  letter-spacing: -0.01em;
  border-top: 1px dashed var(--olive-green);
  border-bottom: 1px dashed var(--olive-green);
}

aside {
  max-width: 450px;
  border: 1px solid;
  font-family: var(--sans-font-stack);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  text-align: justify;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 1rem;
  margin: 1rem;
  background-color: var(--off-white);
  z-index: 999;
  text-transform: uppercase;
  letter-spacing: 0.01rem;
}

aside:hover,
aside:focus {
  cursor: grab;
}

aside:active {
  cursor: grabbing;
}

aside p {
  margin: 0;
}

aside a {
  text-decoration: none;
}

aside strong {
  font-weight: 700;
}
