/* Plain document pages (privacy, 404). Theme tokens only: see /themes.css. */

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--link-hover);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}

.doc-header,
.doc-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.doc-header {
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  color: var(--accent);
}
.doc-header nav a {
  color: var(--text-soft);
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
}
h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0 0 8px;
}
h2 {
  font-size: 1.375rem;
  margin: 40px 0 8px;
  color: var(--text);
}
p,
li {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}
.updated {
  color: var(--text-muted);
  margin-top: 0;
}
.lede {
  font-size: 1.1875rem;
  color: var(--text);
}
strong {
  color: var(--text);
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 16px 0;
}
.note p {
  margin: 0;
}

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-md);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-shadow);
}
.button:hover {
  color: var(--accent-ink);
  background: var(--link-hover);
}

.big-code {
  font-family: var(--font-lcd);
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1;
  color: var(--lcd-ink);
  background: var(--lcd);
  border: 10px solid var(--bezel);
  border-radius: var(--r-lg);
  padding: 8px 24px;
  display: inline-block;
  margin: 8px 0 24px;
}

.doc-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.doc-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.doc-footer p,
.doc-footer li {
  color: var(--text-muted);
  margin: 0;
}
