/* Shared by every page in site/ (D-034). No build step, no scripts. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #11201e;
  --muted: #55645f;
  --accent: #0f766e;
  --line: #d4dedb;
}

/* Follows the phone or computer, like the app (D-026). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1211;
    --text: #e6efed;
    --muted: #a2b3ae;
    --accent: #5eead4;
    --line: #24332f;
  }
}

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 1rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

h1 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

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

.meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

li {
  margin-bottom: 0.5rem;
}

address {
  font-style: normal;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

/* License texts: keep the line breaks, but wrap instead of scrolling sideways. */
pre {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
