/* LAYOUT */

body {
  display: flex;
  flex-direction: column;

  min-height: 100vh;
  max-width: 40rem;
  width: 96vw;
  margin: 0 auto;
}

main {flex: 1}

body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  a { text-decoration: none; }
  a:hover { text-decoration: underline;}

  nav {
    display: flex;
    justify-content: space-between;
    gap: 1em;
  }
  h1 { margin: 0 0 0.3rem; }

  border: 1px solid var(--foreground);
  border-radius: 0.8em;
  padding: 0.4em 1em;;
  box-shadow: var(--foreground) 2px 2px 0px 0px;
}


/* Typography */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Fira Sans";
  font-size: 12pt;
}

h1, h2, h3, h4 {
  font-family: 'Jost';
}

h1 {
  font-size: 180%;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
h2 { font-size: 120%; }
h1, h2 {
}

p {
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

ul {
  margin-bottom: 0.9rem;
}

em {
  font-style: italic;
}

a {
  text-decoration: underline;
}


/* site header */
body > header {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

body > header nav {
  a {
    font-size: 120%;
  }

  a:hover {
    text-decoration: underline;
  }
}


/* Site footer */

body > footer {
  border-top: 1px solid white;
  font-size: 80%;
}


/* COLORS */

:root {
  /* From Dracula: https://en.wikipedia.org/wiki/Dracula_%28color_scheme%29 */
  --background: #282a36;
  --foreground: #f8f8f2;
  --comment: #6272a4;
  --cyan: #8be9fd;
  --green: #50fa7b;
  --orange: #ffb86c;
  --pink: #ff79c6;
  --purple: #bd93f9;
  --red: #ff5555;
  --yellow: #f1fa8c;

  --highlight: var(--purple);

  --background-highlights: var(--comment);
  --primary: var(--base0);
  --secondary: var(--base01);
}

/* background */
body {
  background-color: var(--background);
  color: var(--foreground);
}

/* highlight */
a { color: var(--highlight); }

main a:hover { color: var(--cyan); }


a svg {
  height: 1em;
  display: inline;
}


/* UTILITIES */
.tagline {
  font-style: italic;
  font-size: 85%;
}
