/* Shared by the ahmelle.me pages. The colours are Show Tracker's
   (src/client/styles.css). */
:root {
  color-scheme: light dark;
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #66665f;
  --border: #e4e4df;
  --link: #1c4a87;

  --watched-bg: #e2f3e6;
  --watched-fg: #17602e;
  --watching-bg: #e1ecfa;
  --watching-fg: #1c4a87;
  --want-bg: #fbefd6;
  --want-fg: #6f4a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1d1d1b;
    --text: #ecece8;
    --muted: #a3a39b;
    --border: #2f2f2c;
    --link: #9fc4f5;

    --watched-bg: #15321d;
    --watched-fg: #90dba5;
    --watching-bg: #172a45;
    --watching-fg: #9fc4f5;
    --want-bg: #3a2c0e;
    --want-fg: #f0c86e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

.prose {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.prose h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 24px 0 4px;
}

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

.prose p,
.prose li {
  margin: 0 0 12px;
}

.home-link {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

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

/* A link that looks like Show Tracker's dark buttons. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

/* A second, lighter button next to the main one. */
.button--outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
