/* The store pages take the app's two brand colours: ink on paper, and the
   reverse on the dark scheme, as src/global.css does. */
:root {
  --ink: #073b4c;
  --ink-muted: rgba(7, 59, 76, 0.7);
  --ink-rule: rgba(7, 59, 76, 0.12);
  --paper: #fbfdfd;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fbfdfd;
    --ink-muted: rgba(251, 253, 253, 0.7);
    --ink-rule: rgba(251, 253, 253, 0.18);
    --paper: #073b4c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

header,
main,
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink-rule);
}

header .brand {
  font-weight: 700;
  text-decoration: none;
}

main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.25rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.updated {
  color: var(--ink-muted);
  margin-top: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.25rem;
}

code {
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

nav ul {
  list-style: none;
  padding: 0;
}

footer {
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--ink-rule);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

footer a + a {
  margin-left: 1rem;
}
