/* SPDX-FileCopyrightText: 2026 Curtis Galloway */
/* SPDX-License-Identifier: Apache-2.0 */

:root {
  color-scheme: light dark;
  --bg: #fdfdf8;
  --fg: #1a1a1a;
  --accent: #006a4e;
  --rule: #c9c9bd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c120e;
    --fg: #d8f0dc;
    --accent: #6fe3a0;
    --rule: #2c3b30;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 1rem;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

pre.logo {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  color: var(--accent);
  /* The logo is 78 columns, about 47em of monospace: scale it to fit the
     viewport (less the page gutters) so a phone shows all of it. */
  font-size: min(0.85rem, calc((100vw - 2.5rem) / 48));
  line-height: 1.1;
}

h1,
h2 {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  margin-top: 0;
}

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

code {
  overflow-wrap: anywhere;
}
