@font-face {
  font-family: Gabriela;
  src: url("Gabriela-Regular.ttf");
}

@font-face {
  font-family: KoHo;
  src: url("KoHo-Regular.ttf");
  font-weight: normal;
}

* {
  border: none;
  box-sizing: border-box;
  font-size: 100%;
  font-style: normal;
  font-weight: normal;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  text-indent: 0;
}

html, body {
  min-height: 100%;
  width: 100%;
}

html {
  background-color: #333;
  font-size: max(100%, 3vw);
}

:root {
  --hue: 256;
  --purple: hsl(256 40% 40%);
  --light-purple: hsl(256 40% 60%);
  --body-full: 3em;
  --body-half: 1.5em;
  --body-neg: -3em;
  --off-white: #eee;
}

body {
  background-color: #ccc;
  font-family: Gabriela, sans-serif, sans;
  margin: 0 auto;
  overflow: auto;
  padding: var(--body-full) var(--body-full) 0 var(--body-full);
}

header {
  background-color: var(--purple);
  color: var(--off-white);
  margin: var(--body-neg) var(--body-neg) 0 var(--body-neg);
  padding: var(--body-full) var(--body-full) var(--body-half) var(--body-full);
}

h1 {
  font-size: 200%;
  margin-bottom: 1em;
}

h2 {
  font-size: 130%;
  margin: 1em 0;
}

h2:first-of-type {
  margin: 0 0 1em 0;
}

h3 {
  font-size: 110%;
  font-style: italic;
  font-weight: bold;
  margin: 1em 0;
}

p {
  margin: 1em 0;
}

section a:visited, section a:current, section a:active {
  color: hsl(256 80% 40%);
}

header a, header a:visited, header a:active, .dark a, .dark a:visited, .dark a:active, footer a, footer a:visited, footer a:active {
  color: hsl(var(--hue) 20% 80%);
  text-decoration: underline;
}

kbd {
  background-color: hsl(var(--hue) 20% 90% / 50%);
  border-radius: 0.25em;
  color: hsl(var(--hue) 80% 40%);
  display: inline-block;
  font-family: monospace;
  padding: 0 0.25em;
}

strong {
  color: hsl(var(--hue) 80% 40%);
  font-weight: bold;
}

.emoji {
  display: inline-block;
  height: 1.2em;
  object-fit: contain;
  vertical-align: middle;
  width: 1.2em;
}

.examples {
  display: grid;
  grid-template: "e1 fc e2" "b1 fc b2";
  grid-template-columns: 1fr min-content 1fr;
}

.examples figcaption {
  align-content: center;
  background-color: var(--purple);
  color: #eee;
  grid-area: fc;
  padding: 0 1em;
  text-align: center;
  vertical-align: middle;
}

.example, .big {
  padding: 1em;
}

.big {
  align-content: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0;
}

.black {
  background-color: #111;
  color: #eee;
  order: 1;
}

.white {
  background-color: #eee;
  color: #111;
  order: 3;
}

.mid {
  max-height: 2.5em;
}

.large {
  max-height: 5em;
}

.example.black {
  grid-area: e1;
}

.example.white {
  grid-area: e2;
}

.big.white {
  grid-area: b1;
}

.big.black {
  grid-area: b2;
}

section, footer {
  margin: 0 var(--body-neg) 0 var(--body-neg);
  padding: var(--body-half) var(--body-full);
}

.gallery {
  background: hsl(var(--hue) 20% 20%) linear-gradient(145deg, #eee 0%, #ccc 100%);
  line-height: 1;
}

.license {
  background-color: hsl(var(--hue) 20% 20%);
  color: #eee;
}

.specs {
  background-color: hsl(var(--hue) 50% 80%);
  color: hsl(var(--hue) 50% 20%);
}

footer {
  background-color: #444;
  color: #eee;
}

.downloads {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

a.download {
  background-color: hsl(var(--hue) 50% 90%);
  border: 0.25em solid hsl(var(--hue) 50% 25%);
  border-radius: 1em;
  color: hsl(var(--hue) 50% 20%);
  display: block;
  max-width: 20em;
  padding: 1em;
  text-decoration: none;
}

.download:hover {
  background-color: hsl(var(--hue) 50% 80%);
  border: 0.25em solid hsl(var(--hue) 50% 50%);
}

pre {
  background-color: hsl(120 50% 15%);
  border: 0.25em solid hsl(120 50% 10%);
  border-radius: 1em;
  color: hsl(120 50% 50%);
  font-family: monospace;
  padding: 1em;
  text-wrap: auto;
  word-break: break-all;
}

ul {
  padding-left: 1.5em;
}

.gallery figure {
  align-items: center;
  display: flex;
  flex-direction: row;
  margin-right: var(--body-half);
  text-align: center;
}

.wing {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: var(--body-half) 0;
}

.prose section {
  font-family: KoHo, sans-serif, sans;
}

.prose h2, .prose h3, .prose header {
  font-family: Gabriela, sans-serif, sans;
}

em {
  font-style: italic;
}