/*! Solarized (light) - a Textus theme by @CatVinci-Studio
 *  Palette: Solarized by Ethan Schoonover (MIT), https://ethanschoonover.com/solarized/
 *  License: MIT
 *  Source: https://github.com/CatVinci-Studio/textus-themes
 */

/* Ethan Schoonover's precision colours: Solarized light by day and Solarized dark at night, for long reading. */

:root {
  --editor-bg: #fdf6e3;
  --editor-text: #073642;
  --editor-muted: #586e75;
  --editor-border: #eee8d5;
  --editor-quote-border: #93a1a1;
  --editor-accent: #268bd2;
  --editor-code-bg: #eee8d5;
  --editor-highlight-bg: rgba(181, 137, 0, 0.2);
  --editor-font: "Charter", "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --theme-heading-font: "Charter", "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --theme-mono: var(--font-mono, monospace);
  --theme-link: #268bd2;
  --theme-strong: #073642;
  --theme-quote-bg: transparent;
  --theme-quote-text: #586e75;
  --theme-code-text: #073642;
  --theme-pre-bg: #eee8d5;
  --theme-th-bg: #eee8d5;
  --theme-th-text: #073642;
  --theme-selection: rgba(181, 137, 0, 0.2);
  --theme-h1: #073642;
  --theme-h2: #268bd2;
  --theme-h3: #2aa198;
  --theme-h4: #859900;
  --theme-h5: #b58900;
  --theme-h6: #586e75;
  --tone-blue: #268bd2;
  --tone-green: #859900;
  --tone-orange: #cb4b16;
  --tone-purple: #6c71c4;
  --tone-red: #dc322f;
  --tone-teal: #2aa198;
  --tone-yellow: #b58900;
  --tone-pink: #d33682;
  --tone-gray: #839496;
}

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

#write {
  color: var(--editor-text);
  font-family: var(--editor-font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color-scheme: light;
  --token-keyword: #859900;
  --token-function: #268bd2;
  --token-string: #2aa198;
  --token-number: #d33682;
  --token-tag: #cb4b16;
  --token-comment: #93a1a1;
}

#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);
}


