/*! Outline (light) - a Textus theme by @CatVinci-Studio
 *  Look after Things by colineckert (MIT), https://github.com/colineckert/obsidian-things - our own CSS
 *  License: MIT
 *  Source: https://github.com/CatVinci-Studio/textus-themes
 */

/* Clean lists and plans: a light sans, blue headings, coloured bullets and roomy list items. */

:root {
  --editor-bg: #f9fafb;
  --editor-text: #2b3036;
  --editor-muted: #6b7480;
  --editor-border: #e3e7ec;
  --editor-quote-border: #3eb4bf;
  --editor-accent: #2e80f2;
  --editor-code-bg: #edf0f2;
  --editor-highlight-bg: hsla(50, 100%, 50%, 0.25);
  --editor-font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --theme-heading-font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --theme-mono: var(--font-mono, monospace);
  --theme-link: #2e80f2;
  --theme-strong: #e0558f;
  --theme-quote-bg: transparent;
  --theme-quote-text: #4d5560;
  --theme-code-text: #2b3036;
  --theme-pre-bg: #edf0f2;
  --theme-th-bg: #edf0f2;
  --theme-th-text: #2b3036;
  --theme-selection: hsla(50, 100%, 50%, 0.25);
  --theme-h1: #1f2328;
  --theme-h2: #1f2328;
  --theme-h3: #2e80f2;
  --theme-h4: #c99a3a;
  --theme-h5: #e83e3e;
  --theme-h6: #6b7480;
  --tone-blue: #2e80f2;
  --tone-green: #3a9f6a;
  --tone-orange: #e87d3e;
  --tone-purple: #9e86c8;
  --tone-red: #e83e3e;
  --tone-teal: #2fa3ad;
  --tone-yellow: #c99a3a;
  --tone-pink: #e0558f;
  --tone-gray: #7d8590;
  --theme-em: #e0558f;
}

body {
  background-color: var(--editor-bg);
  color: var(--editor-text);
}

#write {
  color: var(--editor-text);
  font-family: var(--editor-font);
  font-size: 16px;
  line-height: 1.65;
  color-scheme: light;
  --token-keyword: #9e86c8;
  --token-function: #2e80f2;
  --token-string: #3a9f6a;
  --token-number: #e87d3e;
  --token-tag: #e83e3e;
  --token-comment: #9aa1a9;
}

#write h1,
#write h2,
#write h3,
#write h4,
#write h5,
#write h6 {
  font-family: var(--theme-heading-font);
  font-weight: 700;
  line-height: 1.3;
}

#write h1 { font-size: 2.1em; color: var(--theme-h1); }
#write h2 { font-size: 1.55em; color: var(--theme-h2); }
#write h3 { font-size: 1.25em; color: var(--theme-h3); }
#write h4 { font-size: 1.08em; color: var(--theme-h4); }
#write h5 { font-size: 1em; color: var(--theme-h5); }
#write h6 { font-size: 0.92em; color: var(--theme-h6); }

#write a {
  color: var(--theme-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

#write strong {
  color: var(--theme-strong);
}

#write blockquote {
  margin: 1.2em 0;
  padding: 0.5em 1.1em;
  border: 0;
  border-left: 3px solid var(--editor-quote-border);
  background-color: var(--theme-quote-bg);
  color: var(--theme-quote-text);
}

#write code {
  padding: 0.12em 0.38em;
  border-radius: 5px;
  background-color: var(--editor-code-bg);
  color: var(--theme-code-text);
  font-family: var(--theme-mono);
  font-size: 0.88em;
}

#write pre,
#write .md-fences {
  background-color: var(--theme-pre-bg);
  border: 1px solid var(--editor-border);
  border-radius: 8px;
  font-family: var(--theme-mono);
}

#write pre code {
  padding: 0;
  background: transparent;
  color: var(--editor-text);
}

#write table {
  border-collapse: collapse;
}

#write th,
#write td {
  padding: 0.5em 0.85em;
  border: 1px solid var(--editor-border);
}

#write th {
  background-color: var(--theme-th-bg);
  color: var(--theme-th-text);
  font-weight: 600;
}

#write hr {
  height: 1px;
  border: 0;
  background-color: var(--editor-border);
}

#write mark {
  background-color: var(--editor-highlight-bg);
  color: inherit;
}

#write input[type="checkbox"] {
  accent-color: var(--editor-accent);
}

#write ::selection {
  background-color: var(--theme-selection);
}

#write a { text-decoration: none; border-bottom: 1px solid currentColor; }
#write li { margin: 0.35em 0; }
#write li::marker { color: var(--editor-accent); font-weight: 600; }
#write em { color: var(--theme-em); }
#write h1 { font-size: 1.9em; }
#write h2 { font-size: 1.35em; padding-bottom: 0.2em; border-bottom: 1px solid var(--editor-border); }
#write blockquote { border-left: 3px solid var(--editor-accent); color: var(--theme-quote-text); }
