/* A theme is a set of colours under its id. Anything left out keeps the value from style.css. */
[data-theme="5yb-light"] { color-scheme: light; }
[data-theme="5yb-dark"] { color-scheme: dark; }

/* The classic: guava red, on plum when dark. */
[data-theme="light"], [data-theme="dark"] {
  --pulp: #ff665b;
  --pulp-text: light-dark(#c4332c, #ff8278);
  --on-pulp: #33100d;
  --blush: light-dark(#fff0ee, #30222a);
  --ink: light-dark(#2b2532, #dcd6e2);
  --seed: light-dark(#6a6074, #9a92a6);
  --paper: light-dark(#fff, #1f1b24);
  --ground: light-dark(#f4f2f6, #110f14);
  --thread: light-dark(#e3dee8, #362f3f);
  --leaf: light-dark(#19783f, #7cf5b6);
  --sprout: var(--leaf);
}
[data-theme="light"] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

/* Seu tema: the seven colours come from the visitor (js/theme.js), the rest follows from them. */
[data-theme="custom"] {
  --pulp-text: var(--pulp);
  --thread: color-mix(in oklab, var(--ink) 18%, var(--paper));
  --blush: color-mix(in oklab, var(--pulp) 14%, var(--paper));
}

[data-theme="lain"] {
  color-scheme: dark;
  --font: Vt323, ui-monospace, monospace;
  --pulp: #d0d0d0;
  --pulp-text: #e5e5e5;
  --on-pulp: #080808;
  --leaf: #0f0;
  --sprout: var(--leaf);
  --quote: #0f0;
  --ink: #f2f2f2;
  --seed: #9a9a9a;
  --paper: #0d0d0d;
  --ground: #000;
  --thread: #2e2e2e;
  --blush: #1c1c1c;
  --backdrop: radial-gradient(circle at top, #141414, #000 55%);
}
[data-theme="lain"] .gt { text-shadow: 0 0 8px rgb(0 255 0 / .5); }
:root[data-theme="lain"] body::after { content: ''; position: fixed; right: 20px; bottom: 0; width: 200px; height: 200px; background: url(/img/lain.webp) center / contain no-repeat; opacity: .7; pointer-events: none; }
/* The size adjustment makes this small-bodied face read at the same size as the others. */
@font-face { font-family: Vt323; font-display: swap; size-adjust: 120%; src: url(/fonts/vt323.woff2) format('woff2'); }

[data-theme="cyberpunk"] {
  color-scheme: dark;
  --pulp: #ff3c8a;
  --pulp-text: #ff66a8;
  --on-pulp: #0d001c;
  --leaf: #00f6ff;
  --sprout: var(--leaf);
  --quote: #32ffdd;
  --link: #00f6ff;
  --ink: #f3e8ff;
  --seed: #a795de;
  --paper: #1a0b2e;
  --ground: #0a0120;
  --thread: #372461;
  --blush: #2d1360;
  --backdrop: linear-gradient(135deg, #050014, #240046 45%, #001f3f);
  --glow: 0 0 6px rgb(255 60 138 / .55), 0 0 14px rgb(0 246 255 / .4);
}
[data-theme="cyberpunk"] .primary { background: linear-gradient(120deg, var(--pulp), var(--leaf)); box-shadow: 0 0 14px rgb(255 60 138 / .35), 0 0 26px rgb(0 246 255 / .3); }
[data-theme="cyberpunk"] .gt { text-shadow: 0 0 12px rgb(50 255 221 / .4); }
[data-theme="cyberpunk"] .text a { text-shadow: 0 0 10px rgb(0 246 255 / .35); }
:root[data-theme="cyberpunk"] body::after { content: ''; position: fixed; z-index: 8; inset: 0; background: repeating-linear-gradient(rgb(0 0 0 / .16) 0 1px, transparent 1px 3px); mix-blend-mode: soft-light; pointer-events: none; }

/* No room for the corner picture beside the column on narrower screens. */
@media (max-width: 1280px) { :root[data-theme="lain"] body::after { display: none; } }
