html {
  color-scheme: light dark;
}

:root {
  --sans-font: "Inter", -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
    "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
    "Helvetica Neue", sans-serif;
  --standard-border-radius: 0px;  
  --border-width: 2px;
  --main-fontweight: 300;
  --mob-fontweight: 400;
  /* Default (light) theme */
  --bg: #e9e9e9;
  --accent-bg: #f5f7ff;
  --text: #212121;
  --text-light: #585858;
  --border: #c6c6c6;
  --accent: #1100ff;
  --accent-hover: #1100ff;
  --accent-text: var(--bg);
  --code: #d81b60;
  --preformatted: #444;
  --marked: #ffdd33;
  --disabled: #efefef;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111;
    --accent-bg: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --accent: #ffb300;
    --accent-hover: #ffb300;
    --accent-text: var(--bg);
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111;
  }

  /* Add a bit of transparency so light media isn't so glaring in dark mode */
  img,
  video {
    opacity: 0.8;
  }
}

a {
  text-decoration: none;
}

body {
  grid-template-columns: 1fr min(70rem, 90%) 1fr;
  font-size: clamp(1.20rem, 2.5vw, 2rem);
  font-weight: var(--main-fontweight);
}

nav h1 {
    font-size: clamp(1.15rem, 2.5vw, 2rem);
    font-weight: var(--main-fontweight);
    padding-bottom: 24px;
}

button,
.button,
a.button, /* extra specificity to override a */
input[type="submit"],
input[type="reset"],
input[type="button"] {
  border: var(--border-width) solid var(--accent);
  border-radius: 100px;
  background-color: var(--bg);
  color: var(--accent);
  padding: 0.8rem 2rem;
  text-decoration: none;
  line-height: normal;
}

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

em {
  font-family: var(--sans-font);
  font-style: italic;
}

h2 {
  font-size: clamp(1.15rem, 2.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--main-fontweight);
  margin-top: 128px;
  padding-bottom: 8px;
  border-bottom: 1px solid;
}

li {
  list-style-type: disc;
}

main {
  margin-bottom: 64px;
}

@media only screen and (max-width: 720px) {
  body {
      font-weight: var(--mob-fontweight);
    }

  nav h1 {
    font-weight: var(--mob-fontweight);
  }

  h2 {
    font-weight: var(--mob-fontweight);
  }

  ul {
    padding-left: 24px;
  }
}

