/* Plagx Writer 0.1.0 for Obsidian. Generated by build.mjs; edit tokens/colors.json, not this file.
   Calm light (Plagx Paper) and dark (Plagx Ink) themes for long-form writing.
   MIT License (c) 2026 Plagiarism Checker X */

body {
  --line-height-normal: 1.7;
  --file-line-width: 42rem;
  --font-text-theme: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --h1-size: 1.9em;
  --h2-size: 1.5em;
  --h3-size: 1.25em;
  --h1-weight: 700;
  --h2-weight: 700;
  --h3-weight: 650;
  --blockquote-font-style: italic;
  --blockquote-border-thickness: 3px;
  --link-decoration: none;
  --link-external-decoration: none;
}

.theme-light {
  --accent-h: 210;
  --accent-s: 49%;
  --accent-l: 36%;

  --background-primary: #FBF8F1;
  --background-primary-alt: #F3EEE3;
  --background-secondary: #F3EEE3;
  --background-secondary-alt: #ECE5D7;
  --background-modifier-border: #DED6C6;
  --background-modifier-hover: #F3EDE1;
  --background-modifier-active-hover: #D6E2EE;
  --text-selection: #D6E2EE;
  --titlebar-background: #ECE5D7;
  --titlebar-background-focused: #ECE5D7;

  --text-normal: #2B2A27;
  --text-muted: #6B665C;
  --text-faint: #A39C8E;
  --text-on-accent: #FFFFFF;
  --text-accent: #2F5D8A;
  --text-error: #B3261E;
  --text-warning: #8E5300;
  --text-success: #4A7034;
  --interactive-accent: #2F5D8A;

  --h1-color: #7A3E1D;
  --h2-color: #7A3E1D;
  --h3-color: #7A3E1D;
  --h4-color: #2B2A27;
  --h5-color: #2B2A27;
  --h6-color: #6B665C;
  --inline-title-color: #7A3E1D;

  --bold-color: #2B2A27;
  --italic-color: #5B4A86;
  --link-color: #2F5D8A;
  --link-color-hover: #2F5D8A;
  --link-external-color: #2F5D8A;
  --link-unresolved-color: #6B665C;
  --tag-color: #2F5D8A;
  --tag-background: #D6E2EE;
  --blockquote-border-color: #55663F;
  --blockquote-color: #55663F;
  --hr-color: #DED6C6;
  --list-marker-color: #2F5D8A;
  --checkbox-color: #2F5D8A;
  --table-border-color: #DED6C6;
  --table-header-background: #F3EEE3;

  --code-background: #F3EEE3;
  --code-normal: #2B2A27;
  --code-comment: #736C60;
  --code-string: #4A7034;
  --code-keyword: #8B3A62;
  --code-value: #8E5300;
  --code-function: #2F5D8A;
  --code-property: #2F5D8A;
  --code-tag: #8B3A62;
  --code-operator: #6B665C;
  --code-punctuation: #6B665C;
  --code-important: #8E5300;

  --color-red: #B3261E;
  --color-orange: #8E5300;
  --color-yellow: #8E5300;
  --color-green: #4A7034;
  --color-cyan: #55663F;
  --color-blue: #2F5D8A;
  --color-purple: #5B4A86;
  --color-pink: #8B3A62;
}

.theme-dark {
  --accent-h: 208;
  --accent-s: 57%;
  --accent-l: 68%;

  --background-primary: #1C1F24;
  --background-primary-alt: #22262C;
  --background-secondary: #22262C;
  --background-secondary-alt: #191C20;
  --background-modifier-border: #30353D;
  --background-modifier-hover: #24292F;
  --background-modifier-active-hover: #2E4359;
  --text-selection: #2E4359;
  --titlebar-background: #191C20;
  --titlebar-background-focused: #191C20;

  --text-normal: #DAD5C8;
  --text-muted: #9A9588;
  --text-faint: #6A665E;
  --text-on-accent: #10161C;
  --text-accent: #7FB0DC;
  --text-error: #F2847B;
  --text-warning: #E6B36A;
  --text-success: #A8C98A;
  --interactive-accent: #7FB0DC;

  --h1-color: #E3AA70;
  --h2-color: #E3AA70;
  --h3-color: #E3AA70;
  --h4-color: #DAD5C8;
  --h5-color: #DAD5C8;
  --h6-color: #9A9588;
  --inline-title-color: #E3AA70;

  --bold-color: #DAD5C8;
  --italic-color: #BBA6E6;
  --link-color: #7FB0DC;
  --link-color-hover: #7FB0DC;
  --link-external-color: #7FB0DC;
  --link-unresolved-color: #9A9588;
  --tag-color: #7FB0DC;
  --tag-background: #2E4359;
  --blockquote-border-color: #AABA8F;
  --blockquote-color: #AABA8F;
  --hr-color: #30353D;
  --list-marker-color: #7FB0DC;
  --checkbox-color: #7FB0DC;
  --table-border-color: #30353D;
  --table-header-background: #22262C;

  --code-background: #22262C;
  --code-normal: #DAD5C8;
  --code-comment: #938F83;
  --code-string: #A8C98A;
  --code-keyword: #E59DC0;
  --code-value: #E6B36A;
  --code-function: #7FB0DC;
  --code-property: #7FB0DC;
  --code-tag: #E59DC0;
  --code-operator: #9A9588;
  --code-punctuation: #9A9588;
  --code-important: #E6B36A;

  --color-red: #F2847B;
  --color-orange: #E6B36A;
  --color-yellow: #E6B36A;
  --color-green: #A8C98A;
  --color-cyan: #AABA8F;
  --color-blue: #7FB0DC;
  --color-purple: #BBA6E6;
  --color-pink: #E59DC0;
}


.markdown-rendered a:hover,
.cm-s-obsidian .cm-hmd-internal-link:hover,
.cm-s-obsidian span.cm-link:hover {
  text-decoration: underline;
}


.cm-s-obsidian .cm-formatting {
  color: var(--text-faint);
}
