:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #121212;
  color: #f4f1f8;
  --document-muted: #cbc6d7;
  --document-accent: #c7c7fa;
  --document-rule: #3a3949;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

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

a:focus-visible {
  outline: 2px solid var(--document-accent);
  outline-offset: 4px;
}

.document-width {
  width: min(48rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-document {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 1;
  background: #20212d;
  padding: .5rem 1rem;
  transform: translateY(-180%);
}

.skip-document:focus { transform: none; }

.document-header {
  background: #17171e;
  border-bottom: 1px solid var(--document-rule);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.document-brand {
  color: inherit;
  font-family: 'Bricolage Grotesque', Inter, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
}

.document-brand span { color: #c1a8f2; }

.header-content nav {
  display: flex;
  gap: .375rem;
}

.header-content nav a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--document-rule);
  border-radius: .3rem;
  text-decoration: none;
}

.header-content nav a:hover { background: #292638; }

.document-language {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  scroll-margin-top: .75rem;
}

.document-language + .document-language {
  border-top: 1px solid var(--document-rule);
}

h1, h2 {
  font-family: 'Bricolage Grotesque', Inter, sans-serif;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 6vw, 3.75rem);
  letter-spacing: -.04em;
}

h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
}

.document-language section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--document-rule);
}

p {
  margin: .7rem 0 0;
  color: var(--document-muted);
  overflow-wrap: anywhere;
}

.draft-notice {
  padding: .875rem 1.125rem;
  border-inline-start: 2px solid #aa99e0;
  background: #221e2d;
  color: #e7e0f2;
}

.storage-list {
  margin: 1rem 0;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--document-rule);
}

.storage-list div + div { margin-top: 1rem; }
.storage-list dt { font-weight: 600; }
.storage-list dd { margin: 0; color: var(--document-muted); }
code { overflow-wrap: anywhere; }

.document-footer {
  border-top: 1px solid var(--document-rule);
  background: #17171e;
}

.document-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding-block: 1.25rem;
}

.document-footer a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}
