/* @todo Download webfont serve */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans+Mono:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  color-scheme: light dark;

  /*
    Should these be 'primary', 'secondary', 'tertiary' and so on?
  */
  --c-brand-red: #e93354;
  --c-brand-green: #1bbb41;
  --c-brand-white: #ffffff;
  --c-brand-black: #000000;

  /*
    Should I include greys used for greyscale? I'm leaning towards just using
    the greyscale filter for images and letting CSS handle it. The values that
    happen for the cherry-picked solutions logo are below just in case.

    stem - #a3a3a3
    cherry - #7a7a7a
  */

  /* Colors for light and dark mode. */
  --c-fg-light: #000000;
  --c-bg-light: #eeeeee;

  --c-fg-dark: #ffffff;
  --c-bg-dark: #333333;
}

body {
  color: light-dark(var(--c-fg-light), var(--c-fg-dark));
  background-color: light-dark(var(--c-bg-light), var(--c-bg-dark));
  font-family: "Ubuntu Sans Mono", monospace;
  font-size: 14px;
}
body.dark {
  color-scheme: dark;
}
body.light {
  color-scheme: light;
}

/* Typography */
h1 {
  font-size: 2.5em;
  /* font-weight: 900; */
}

h2 {
  font-size: 2.2em;
  /* font-weight: 900; */
}

h3 {
  font-size: 1.9em;
  /* font-weight: 900; */
}

h4 {
  font-size: 1.6em;
  /* font-weight: 900; */
}

h5 {
  font-size: 1.3em;
  font-weight: 900;
}

h6 {
  font-size: 1.1em;
  font-weight: 900;
}

p {
  margin-bottom: 1em;
}

a, a:visited {
  color: var(--c-brand-green);
}

a:hover {
  color: var(--c-brand-white);
}

a:focus, a:focus > img {
  outline-color: var(--c-brand-red);
  outline-style: solid;
  outline-width: 4px;
}

pre code {
  font-size: .85em;
}

/* Images */
.logo {
  max-width: 175px;
}

.hero figcaption {
  padding: 0 5px;
}

.image-caption, .image-credit {
  font-size: .75em;
}

/* Wrappers */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header-wrapper {
  padding: 0 10px;
  border-bottom: 10px solid var(--c-brand-green);
}

.header {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer {

}

.content-wrapper {
  padding: 10px;
}

.footer-wrapper {
  padding: 0 10px;
  margin-top: auto;
  border-top: 10px solid var(--c-brand-red);
}

.copyright {
  text-align: center;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.container.breakout {
  max-width: 1200px;
}

.brand-logo {
  height: 100px;
  background-image: url('../images/brand/logo_dark.svg');
  background-repeat: no-repeat;
}

ul.list-style-none li {
  list-style: none;
}

ul.inline li {
  display: inline-block;
}

/* To relocate */
pre {
  border: 2px #1bbb41 solid;
  margin-bottom: 1em;
}

pre.medium {
  max-height: 500px;
  overflow: scroll;
}

/* Blogs */
.blog-teaser {
  display: flex;
}

.blog-teaser-image {
  max-width: 400px;
}

@media (min-width:801px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 3.5em;
    font-weight: 900;
  }

  h2 {
    font-size: 3em;
    font-weight: 700;
  }

  h3 {
    font-size: 2.5em;
    font-weight: 500;
  }

  h4 {
    font-size: 2em;
    font-weight: 500;
  }

  h5 {
    font-size: 1.5em;
    font-weight: 500;
  }

  h6 {
    font-size: 1.3em;
    font-weight: 500;
  }
}