:root {
  --bg: #ffffff;
  --fg: #000000;
  --link: #0645ad;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #e6e6e6;
    --link: #8ab4f8;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 20px 20px;
  overflow-x: hidden;
}

a {
  color: var(--link);
}

.box {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 800px;
  min-width: 0;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}

.text {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

h1 {
  margin: 0 0 20px 0;
  font-size: 2em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

h3 {
  margin: 28px 0 10px 0;
}

p {
  margin: 0 0 12px 0;
  line-height: 1.4;
}

ul {
  margin: 0 0 12px 0;
  padding-left: 22px;
  line-height: 1.4;
}

li {
  margin-bottom: 8px;
}

hr {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.3;
  margin: 20px 0;
}

.meta {
  font-size: 15px;
}

.notice {
  display: inline-block;
  margin-top: 4px;
}

footer {
  margin-top: 30px;
  font-size: 14px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

footer a {
  color: inherit;
  padding: 6px 4px;
}

/* Tablet and phone */
@media (max-width: 640px) {
  body {
    padding: 24px 16px 16px 16px;
  }

  .box {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .logo img {
    width: 120px;
  }

  .text {
    flex: 0 1 auto;
    width: 100%;
  }

  h1 {
    font-size: 1.35em;
  }

  .box.centered .text {
    text-align: center;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.2em;
  }
}