/* Dream Vault site. No web fonts, no images, no scripts: system fonts only.
   Colours meet WCAG AA (4.5:1) for body text and links in both schemes. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1d1b26;
  --muted: #4c4860;
  --accent: #4b3aa8;
  --rule: #dcd8e6;
  --note-bg: #f1eefb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121c;
    --fg: #ece9f5;
    --muted: #b7b2c9;
    --accent: #b9adff;
    --rule: #34304a;
    --note-bg: #211d33;
  }
}

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

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

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

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

header.site a {
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.125rem;
}

main {
  padding: 2rem 0 3rem;
}

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

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

h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 1.25rem 0 0.4rem;
}

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

li {
  margin-bottom: 0.35rem;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.1rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.note {
  background: var(--note-bg);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
}

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

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer.site li {
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--bg);
  padding: 0.25rem 0.5rem;
}
