:root {
  --main-font: Arial, sans-serif, "Helvetica Neue", Helvetica;
  --body-padding: 2em;
  --body-line-height: 1.5em;
  --text-color: #333;
  --background-color: #ededed;
  --header-color: rgb(20, 100, 180);
  --link-color: #006699;
  --link-visited-color: #004466;
  --logo-width: 150px;
  --logo-min-width: 100px;
  --header-text-margin-left: 20px;
  --content-max-width: 800px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #f4f4f4;
    --background-color: #222;
    --header-color: rgb(41, 182, 246);
    --link-color: #8ad;
    --link-visited-color: #88f;
  }
}

body {
  font-family: var(--main-font);
  padding: var(--body-padding);
  line-height: var(--body-line-height);
  color: var(--text-color);
  background-color: var(--background-color);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
}

.content {
  display: flex;
  flex-direction: column;
  max-width: var(--content-max-width);
  width: 100%;
}

.header {
  display: flex;
  align-items: center;
  width: 100%;
}

.logo {
  width: var(--logo-width);
  min-width: var(--logo-min-width);
}

.header-text {
  margin-left: var(--header-text-margin-left);
}

h1,
h2 {
  color: var(--header-color);
  margin: 0.5rem;
}

.subtitle {
  color: var(--text-color);
  font-weight: normal;
}

.highlight {
  font-weight: bold;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:visited {
  color: var(--link-visited-color);
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  body {
    padding: 1em;
  }

  .logo {
    width: 100px;
  }

  h1,
  h2 {
    font-size: 1.2em;
  }
}
