/* Generated from the light and dark themes (@quenote/ui) by apps/site's build. */
:root {
  --accent: #1765F2;
  --accent-pressed: #1D2BC0;
  --background: #FFFFFF;
  --surface: #F5F7FA;
  --text: #111827;
  --text-muted: #4B5563;
  --separator: #D9DEE5;
  --deadline: #B45309;
  --danger: #C81E1E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #18A6FF;
    --accent-pressed: #1D2BC0;
    --background: #0D1117;
    --surface: #1A1F27;
    --text: #F3F4F6;
    --text-muted: #9CA3AF;
    --separator: #30363D;
    --deadline: #F5A524;
    --danger: #F87171;
  }
}

/* The public site's stylesheet (QNOTE-98). The build writes the themes' colors above it as
   custom properties, the dark theme's in dark appearance, and every rule takes its colors from
   those (QNOTE-R31). No width is fixed wider than a phone, so a page fits a 375-pixel window. */

*,
*::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,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  /* A long word or address wraps rather than widen the page. */
  overflow-wrap: break-word;
}

.site-header,
main,
.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.site-header {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-block;
}

.brand img {
  display: block;
  width: auto;
  height: 1.75rem;
}

main {
  padding-bottom: 3rem;
}

h1 {
  margin: 1.5rem 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.lead {
  font-size: 1.2rem;
}

.meta,
.note {
  color: var(--text-muted);
}

/* The landing page's main action. Its label takes the page's background color, which is
   white on the light accent and near black on the dark one. */
.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--accent);
  color: var(--background);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--separator);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer [aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}
