/*
 * The one stylesheet for evermore.sk: a narrow, readable column in the app's
 * mauve and fuchsia colors (src/colors.json), with a dark version.
 */
:root {
  --background: #fdf4ff;
  --text: #2a0a2e;
  --muted: #8a768d;
  --accent: #a21caf;
  --line: #e7dde8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #2a0a2e;
    --text: #faf7fa;
    --muted: #a996ac;
    --accent: #e879f9;
    --line: #47354b;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

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

h1 {
  font-size: 34px;
  line-height: 1.2;
}

h2 {
  margin-top: 40px;
  font-size: 22px;
}

h3 {
  margin-top: 28px;
  font-size: 18px;
}

hr {
  margin: 56px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/*
 * The logo is the wordmark plus the fuchsia sparkle above its end, placed like
 * the app does it (src/ui/wordmark-sparkle.tsx): a tenth of the wordmark's
 * width, centered at 103% across and 2% down.
 */
.logo {
  position: relative;
  display: inline-block;
}

.wordmark {
  display: block;
  width: 200px;
}

.sparkle {
  position: absolute;
  left: 196px;
  top: -6px;
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.muted {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

@media (prefers-color-scheme: dark) {
  .wordmark {
    filter: invert(1);
  }
}
