[data-typography="standard"] .article-content {
  text-indent: 0;
}

body:is([data-typography="literary"], [data-typography="poem"]) .content-page {
  background-image: url("../images/paper-grain.svg");
  background-size: 240px 240px;
  background-repeat: repeat;
}

[data-typography="literary"] .article-content {
  text-indent: 2em;
}

[data-typography="literary"] .article-content p {
  margin: 0.75em;
}

[data-typography="literary"] .article-content :is(h1, h2, h3, h4, h5, h6, blockquote, pre, .highlight, figure, .poem, li, td, th) {
  text-indent: 0;
}

[data-typography="literary"] .article-content hr {
  margin-block: 1.75rem;
}

[data-typography="poem"] .article-content {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 2;
  text-align: left;
  text-indent: 0;
}

[data-typography="poem"] .article-content p {
  margin: 0 0 1.5em;
}

[data-typography="poem"] .article-content > :last-child {
  margin-bottom: 0;
}

[data-typography="poem"] .page-header {
  text-align: center;
}

[data-typography="enhanced"] .article-content :is(h1, h4) {
  color: rgb(var(--heading-1));
}

[data-typography="enhanced"] .article-content :is(h2, h5) {
  color: rgb(var(--heading-2));
}

[data-typography="enhanced"] .article-content :is(h3, h6) {
  color: rgb(var(--heading-3));
}

[data-typography="enhanced"] .article-content strong {
  color: rgb(var(--strong));
}

[data-typography="enhanced"] .article-content em {
  color: rgb(var(--emphasis));
}

:root:has(body[data-palette="sepia"]),
body[data-palette="sepia"] {
  --brand: 112 56 30;
  --heading-1: 112 56 30;
  --heading-2: 85 100 41;
  --heading-3: 17 103 100;
  --strong: 43 79 151;
  --emphasis: 117 61 137;
  --bg: 244 238 226;
  --paper: 252 248 238;
  --ink: 62 50 40;
  --muted: 118 103 90;
  --accent: 146 84 47;
  --line: 228 218 200;
  --nav-active: 240 228 208;
  --header-bg: 238 212 176;
  --code-bg: 238 230 214;
  --shadow: 70 50 30;
}

:root:has(body[data-palette="tech"]),
body[data-palette="tech"] {
  --brand: 37 54 75;
  --heading-1: 37 54 75;
  --heading-2: 32 79 171;
  --heading-3: 14 105 103;
  --strong: 143 77 10;
  --emphasis: 138 59 146;
  --bg: 246 247 248;
  --paper: 255 255 255;
  --ink: 36 43 52;
  --muted: 101 109 120;
  --accent: 37 91 165;
  --line: 220 225 230;
  --nav-active: 231 238 247;
  --header-bg: 223 230 239;
  --code-bg: 241 244 247;
  --shadow: 26 39 55;
}

:root:has(body[data-palette="wanderers"]),
body[data-palette="wanderers"] {
  --brand: 126 91 31;
  --heading-1: 124 85 24;
  --heading-2: 33 85 54;
  --heading-3: 139 63 54;
  --strong: 43 77 148;
  --emphasis: 111 59 135;
  --bg: 224 233 216;
  --paper: 245 248 235;
  --ink: 43 57 46;
  --muted: 96 103 86;
  --accent: 57 94 66;
  --line: 211 211 185;
  --nav-active: 229 232 211;
  --header-bg: 183 187 138;
  --code-bg: 235 236 220;
  --shadow: 39 57 37;
}

:root:has(body[data-palette="ink"]),
body[data-palette="ink"],
:root[data-mode="dark"]:root,
:root[data-mode="dark"] body {
  color-scheme: dark;
  --brand: 228 216 197;
  --heading-1: 228 216 197;
  --heading-2: 229 189 112;
  --heading-3: 104 193 196;
  --strong: 185 169 245;
  --emphasis: 245 154 185;
  --bg: 23 26 30;
  --paper: 31 35 40;
  --ink: 225 225 218;
  --muted: 155 161 169;
  --accent: 175 164 218;
  --line: 58 64 71;
  --nav-active: 48 52 65;
  --header-bg: 64 66 92;
  --code-bg: 39 44 51;
  --shadow: 0 0 0;
  --edge-light: rgb(255 255 255 / 9%);
}

body[data-palette="wanderers"] .page-title,
body[data-palette="wanderers"]:not([data-typography="enhanced"]) .article-content :is(h1, h2, h3, h4, h5, h6) {
  color: rgb(var(--brand));
}

body[data-palette="wanderers"] :is(.home-section h2, .home-section h3, .taxonomy-card h2) {
  color: rgb(var(--brand));
}

body[data-palette="wanderers"] .page-header .page-title::after {
  background: rgb(var(--brand) / 60%);
}
