/* What every page of a10r.app shares: the fonts, the colours, the logo, the header and the footer.
   The logo font is JetBrains Mono ExtraBold with only a, 1, 0 and r, and the zero without its dot (art/a10r). */
@font-face {
  font-family: 'a10r Logo';
  src: url(fonts/a10rLogo-Regular.ttf) format('truetype');
  font-weight: 800;
  font-display: block;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(fonts/JetBrainsMono-wght.woff2) format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

/* The Violeta palette of the logo canvas and the splash. */
:root {
  --paper: #f3f3ef;
  --ink: #17171c;
  --surface: #e6e6e0;
  --line: #d6d6ce;
  --muted: #55555e;
  --accent: #7c4dff;
  --on-accent: #f3f3ef;
  --accent-text: #5b2ee0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #17171c;
    --ink: #f3f3ef;
    --surface: #212128;
    --line: #303039;
    --muted: #a9a9b2;
    --on-accent: #17171c;
    --accent-text: #a98bff;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #17171c;
  --ink: #f3f3ef;
  --surface: #212128;
  --line: #303039;
  --muted: #a9a9b2;
  --on-accent: #17171c;
  --accent-text: #a98bff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 1rem/1.7 'JetBrains Mono',
    ui-monospace,
    'Cascadia Mono',
    Menlo,
    Consolas,
    monospace;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--accent-text);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) {
  .wrap {
    padding: 0 2rem;
  }
}

/* The mark: a·10·r, with "10" selected like text in an editor. Monospaced, so each letter advances .6em. */
.logo {
  font-family: 'a10r Logo', 'JetBrains Mono', monospace;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}
.chip {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 0.06em;
}

header.site {
  padding: 1.25rem 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
header.site .home {
  font-size: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.25rem 0;
}
header.site nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}
header.site nav a {
  display: inline-block;
  padding: 0.6rem 0;
  text-decoration: none;
}
header.site nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

footer.site {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
}
footer.site .logo {
  font-size: 1.125rem;
  vertical-align: -0.1em;
  margin-right: 0.5rem;
  color: var(--ink);
}
