/* Rowdar site. Colours follow docs/ui.md: Day is black on white, Dawn is white on black.
   No external fonts, scripts or images. The header lockup and favicon come from brand/ (docs/brand.md). */

:root {
  --bg: #ffffff;
  --text: #000000;
  --secondary: #4a4a4a;
  --divider: #000000;
  --alert: #d50000;
  --alert-text: #ffffff;
  --placeholder: #d0d0d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ffffff;
    --secondary: #b0b0b0;
    --divider: #ffffff;
    --placeholder: #303030;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-wrap: break-word;
}

header,
footer {
  border-color: var(--divider);
  border-style: solid;
  border-width: 0;
}

header {
  border-bottom-width: 2px;
  padding: 0.5rem 0;
}

footer {
  border-top-width: 2px;
  margin-top: 2rem;
  padding: 1rem 0 2rem;
  color: var(--secondary);
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}

nav .brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

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

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

nav a,
footer a {
  display: inline-block;
  min-height: 3rem;
  line-height: 3rem;
}

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

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

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.25rem;
}

.safety {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 4px solid var(--alert);
}

.safety strong {
  font-weight: 700;
}

.safety p:last-child {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  margin: 0.5rem 0 0.25rem;
  padding: 0.75rem 1.25rem;
  min-height: 3rem;
  background: var(--placeholder);
  color: var(--text);
  font-weight: 700;
}

.note {
  color: var(--secondary);
  font-size: 1rem;
}

@media (prefers-contrast: more) {
  .note,
  footer {
    color: var(--text);
  }
}
