/*
 * Colors and the font come from the Lagoon token sheet (Day and Night). This
 * site keeps only the values it uses.
 */

:root {
  --ground: #F0EEE9;
  --surface: #FFFFFF;
  --line: #DCDFD9;
  --ink: #1B2322;
  --ink-2: #56605D;
  --accent: #1F6F78;
  --butter-tint: #FBF2D2;
  --font-sans: 'Onest', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111615;
    --surface: #192120;
    --line: #2A3432;
    --ink: #EEF1EF;
    --ink-2: #A1ACA9;
    --accent: #6CC3C4;
    --butter-tint: #35301B;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--accent);
}

/* The home page: the dog, centered on butter. */
body.home {
  background: var(--butter-tint);
}

.dog {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dog svg {
  width: min(320px, 80vw);
  height: auto;
  image-rendering: pixelated;
  user-select: none;
}

.dog rect {
  fill: var(--ink);
}

.dog .eye {
  fill: var(--butter-tint);
}

/* The legal pages. */
main.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

main.doc h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

main.doc h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
}

main.doc .updated {
  color: var(--ink-2);
  margin: 0 0 24px;
}

main.doc ul {
  padding-left: 1.25rem;
}

main.doc li + li {
  margin-top: 4px;
}

header.top {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

header.top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

header.top img {
  width: 28px;
  height: 28px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

footer a {
  color: var(--ink-2);
}
