@layer tokens, base, layout, components, pages;

@layer tokens {
  :root {
    color-scheme: dark;
    --bg: #090909;
    --surface: #121211;
    --surface-raised: #191816;
    --header: #090909;
    --text: #f2efe9;
    --muted: #aaa59c;
    --muted-2: #74716b;
    --accent: #ec9f19;
    --link-color: var(--accent);
    --accent-hover: #bd7f14;
    --accent-soft: rgba(236, 159, 25, 0.15);
    --accent-contrast: #1b1407;
    --discussion-event-background: #5b4317;
    --discussion-event-text: #fff5dd;
    --discussion-event-link: #ffd26f;
    --link-missing: #ef4f58;
    --danger: var(--link-missing);
    --link-external: #00a000;
    --link-external-hover: #2fbd52;
    --quote-background: var(--surface-raised);
    --quote-border: var(--accent);
    --quote-edge: var(--border-strong);
    --quote-text: var(--text);
    --wiki-separator: #383b40;
    --wiki-table-border: #383b40;
    --footnote-border: var(--border-strong);
    --footnote-background: var(--surface-raised);
    --namespace-highlight: rgba(56, 189, 248, 0.3);
    --border: rgba(242, 239, 233, 0.09);
    --border-strong: rgba(242, 239, 233, 0.17);
    --input: #0d0d0c;
    --syntax-delimiter: #dcdcdc;
    --syntax-keyword: #569cd6;
    --syntax-attribute: #9cdcfe;
    --syntax-string: #ce9178;
    --syntax-comment: #6a9955;
    --syntax-brace: #d7ba7d;
    --syntax-code: #dcdcaa;
    --syntax-script: #c586c0;
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #ebeae6;
    --surface: #fdfcf9;
    --surface-raised: #fff;
    --text: #171717;
    --muted: #6f6b63;
    --muted-2: #918c83;
    --accent: #0969da;
    --accent-hover: #00224f;
    --accent-soft: rgba(9, 105, 218, 0.12);
    --accent-contrast: #fff;
    --discussion-event-background: #fff0c2;
    --discussion-event-text: #332500;
    --discussion-event-link: #7a4b00;
    --link-missing: #c21f2f;
    --link-external: #087c2f;
    --link-external-hover: #055e23;
    --quote-background: #f3f2ee;
    --wiki-separator: #ccc;
    --wiki-table-border: #ddd;
    --namespace-highlight: #bae6fd;
    --border: rgba(15, 15, 15, 0.14);
    --border-strong: rgba(15, 15, 15, 0.24);
    --input: #fff;
    --syntax-delimiter: #555;
    --syntax-keyword: #0451a5;
    --syntax-attribute: #267f99;
    --syntax-string: #a31515;
    --syntax-comment: #008000;
    --syntax-brace: #795e26;
    --syntax-code: #795e26;
    --syntax-script: #af00db;
  }
  :root[data-theme="light"] .site-header {
    --text: #f2efe9;
  }
}
