/* The Chremora homepage. The app's palette (app/src/ui/theme.ts), light or
   dark from the system setting; system fonts; one column. */

:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f4f4f5;
  --text: #18181b;
  --text-muted: #52525b;
  --border: #a1a1aa;
  --primary: #1d4ed8;
  --on-primary: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #18181b;
    --surface: #27272a;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: #71717a;
    --primary: #93b4fd;
    --on-primary: #0b1b3f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

main,
footer {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding-top: 3rem;
}

.mark {
  display: block;
  margin-bottom: 1rem;
}

.mark-card {
  fill: var(--primary);
}

.mark-bars {
  fill: var(--on-primary);
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.2;
}

.tagline {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.lead {
  margin: 1rem 0 0;
  font-size: 1.125rem;
}

section {
  margin-top: 2.5rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

p {
  margin: 0.5rem 0 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.5rem;
}

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

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

.action {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 0.5rem;
}
