/* Generated by generate.sh from ddlc-palette's colours — do not edit */

/* The DDLC report stylesheet: link it and write prose. The matplotlib theme spoken in CSS:
   the same grounds, rules between table rows only, and the series as --ddlc-series-1 to -5,
   five on paper and three on ink, where -4 and -5 collapse into the muted grey. A code
   block is a small kitty window, .ddlc-inform is the game's "Just Monika." pop-up and a
   quote is a note taped on, as in the DDLC Obsidian theme. Light or dark follows the
   system until data-theme="light|dark" on <html> pins a side.
   MyaNunito.woff2 and MyaNunito-Italic.woff2 are expected beside this file */

:root {
  --ddlc-paper: #FFFFFF;
  --ddlc-dot: #FFDBF0;
  --ddlc-blush: #FFBDE1;
  --ddlc-pink: #DD77BB;
  --ddlc-plum: #BB5599;
  --ddlc-ink: #222222;
  --ddlc-ash: #DADADA;
  --ddlc-sayori: #F1A796;
  --ddlc-monika: #D1897E;
  --ddlc-natsuki: #FFBBC3;
  --ddlc-yuri: #6C4681;
  --ddlc-monika-eye: #76C332;
  --ddlc-sayori-eye: #72D0FA;
  --ddlc-yuri-shadow: #361B39;
  --ddlc-jacket: #B59CA1;
  --ddlc-skirt: #4B669E;
  --ddlc-ribbon: #3F6B3F;
  --ddlc-rule: #6868B4;
  --ddlc-bow: #CC0C29;
  --ddlc-bow-shadow: #8C1132;
  --ddlc-base00: #222222;
  --ddlc-base01: #361B39;
  --ddlc-base02: #6C4681;
  --ddlc-base03: #B59CA1;
  --ddlc-base04: #FFBBC3;
  --ddlc-base05: #FFBDE1;
  --ddlc-base06: #FFDBF0;
  --ddlc-base07: #FFFFFF;
  --ddlc-base08: #CC0C29;
  --ddlc-base09: #F1A796;
  --ddlc-base0A: #D1897E;
  --ddlc-base0B: #76C332;
  --ddlc-base0C: #6868B4;
  --ddlc-base0D: #72D0FA;
  --ddlc-base0E: #DD77BB;
  --ddlc-base0F: #8C1132;
  --ddlc-font-prose: 'Mya Nunito', Nunito, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ddlc-font-heading: Doki, 'Mya Nunito', Nunito, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ddlc-font-data: 'Departure Mono', 'DepartureMono Nerd Font Mono', 'DepartureMono Nerd Font', ui-monospace, 'SF Mono', Menlo, monospace;
  --ddlc-font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ddlc-ground: light-dark(var(--ddlc-paper), var(--ddlc-ink));
  --ddlc-dots: light-dark(var(--ddlc-dot), color-mix(in srgb, var(--ddlc-yuri-shadow) 75%, var(--ddlc-ink)));
  --ddlc-text: light-dark(var(--ddlc-ink), var(--ddlc-paper));
  --ddlc-muted: light-dark(color-mix(in srgb, var(--ddlc-ink) 55%, var(--ddlc-jacket)), color-mix(in srgb, var(--ddlc-jacket) 75%, var(--ddlc-paper)));
  --ddlc-faint: var(--ddlc-jacket);
  --ddlc-line: light-dark(var(--ddlc-blush), var(--ddlc-yuri));
  --ddlc-line-live: light-dark(var(--ddlc-pink), var(--ddlc-plum));
  --ddlc-grid: light-dark(var(--ddlc-ash), color-mix(in srgb, var(--ddlc-yuri) 70%, var(--ddlc-ink)));
  --ddlc-accent: light-dark(var(--ddlc-plum), var(--ddlc-pink));
  --ddlc-accent-live: light-dark(var(--ddlc-pink), var(--ddlc-blush));
  --ddlc-link: light-dark(var(--ddlc-plum), var(--ddlc-blush));
  --ddlc-link-live: light-dark(var(--ddlc-pink), var(--ddlc-paper));
  --ddlc-on-accent: var(--ddlc-paper);
  --ddlc-panel: color-mix(in srgb, var(--ddlc-ground) 92%, transparent);
  --ddlc-selection: light-dark(color-mix(in srgb, var(--ddlc-blush) 80%, transparent), color-mix(in srgb, var(--ddlc-yuri) 90%, transparent));
  --ddlc-highlight: light-dark(color-mix(in srgb, var(--ddlc-blush) 85%, transparent), color-mix(in srgb, var(--ddlc-plum) 55%, transparent));
  --ddlc-code-ground: light-dark(var(--ddlc-dot), var(--ddlc-yuri-shadow));
  --ddlc-cloud: light-dark(var(--ddlc-dot), var(--ddlc-yuri-shadow));
  --ddlc-danger: var(--ddlc-bow);
  --ddlc-ok: var(--ddlc-monika-eye);
  --ddlc-switch-off: light-dark(var(--ddlc-jacket), color-mix(in srgb, var(--ddlc-jacket) 55%, var(--ddlc-ink)));
  --ddlc-popup-ground: light-dark(color-mix(in srgb, var(--ddlc-dot) 70%, var(--ddlc-paper)), var(--ddlc-dot));
  --ddlc-popup-frame: var(--ddlc-blush);
  --ddlc-popup-text: var(--ddlc-ink);
  --ddlc-popup-accent: light-dark(var(--ddlc-plum), color-mix(in srgb, var(--ddlc-plum) 70%, var(--ddlc-ink)));
  --ddlc-popup-code: light-dark(var(--ddlc-dot), color-mix(in srgb, var(--ddlc-dot) 70%, var(--ddlc-ink)));
  --ddlc-tape: light-dark(color-mix(in srgb, var(--ddlc-blush) 70%, transparent), color-mix(in srgb, var(--ddlc-pink) 60%, transparent));
  --ddlc-board: light-dark(color-mix(in srgb, var(--ddlc-dot) 50%, var(--ddlc-paper)), color-mix(in srgb, var(--ddlc-yuri) 30%, var(--ddlc-ink)));
  --ddlc-board-shade: light-dark(color-mix(in srgb, var(--ddlc-board) 80%, var(--ddlc-jacket)), color-mix(in srgb, var(--ddlc-board) 60%, var(--ddlc-ink)));
  --ddlc-board-frame: light-dark(var(--ddlc-dot), var(--ddlc-board-shade));
  --ddlc-board-drop: var(--ddlc-blush);
  --ddlc-kind-note: var(--ddlc-sayori-eye);
  --ddlc-kind-summary: var(--ddlc-rule);
  --ddlc-kind-tip: var(--ddlc-pink);
  --ddlc-kind-success: var(--ddlc-ok);
  --ddlc-kind-warning: var(--ddlc-sayori);
  --ddlc-kind-danger: var(--ddlc-danger);
  --ddlc-kind-example: var(--ddlc-yuri);
  --ddlc-kind-quote: var(--ddlc-jacket);
  --ddlc-kind-experiment: var(--ddlc-ribbon);
  --ddlc-window-ground: var(--ddlc-base00);
  --ddlc-window-text: var(--ddlc-base05);
  --ddlc-window-bar: var(--ddlc-base01);
  --ddlc-window-border: var(--ddlc-base02);
  --ddlc-window-title: color-mix(in srgb, var(--ddlc-base05) 80%, var(--ddlc-base01));
  --ddlc-window-control: color-mix(in srgb, var(--ddlc-base05) 14%, var(--ddlc-base01));
  --ddlc-window-control-hover: color-mix(in srgb, var(--ddlc-base05) 28%, var(--ddlc-base01));
  --ddlc-window-control-live: var(--ddlc-base07);
  --ddlc-window-prompt: var(--ddlc-base0E);
  --ddlc-window-selection: var(--ddlc-base02);
  --ddlc-window-caret: color-mix(in srgb, var(--ddlc-base05) 65%, transparent);
  --ddlc-series-1: var(--ddlc-plum);
  --ddlc-series-2: var(--ddlc-bow);
  --ddlc-series-3: var(--ddlc-rule);
  --ddlc-series-4: light-dark(var(--ddlc-monika-eye), var(--ddlc-jacket));
  --ddlc-series-5: light-dark(var(--ddlc-yuri), var(--ddlc-jacket));
  --ddlc-syntax-comment: var(--ddlc-base03);
  --ddlc-syntax-keyword: var(--ddlc-base0E);
  --ddlc-syntax-function: var(--ddlc-base0D);
  --ddlc-syntax-string: var(--ddlc-base0B);
  --ddlc-syntax-number: var(--ddlc-base09);
  --ddlc-syntax-type: var(--ddlc-base0A);
  --ddlc-syntax-text: var(--ddlc-base05);
  --ddlc-syntax-builtin: var(--ddlc-natsuki);
  --ddlc-syntax-special: var(--ddlc-base0C);
  --ddlc-syntax-delimiter: var(--ddlc-ash);
  --ddlc-syntax-heading: var(--ddlc-base0D);
  --ddlc-syntax-link: var(--ddlc-base0D);
  --ddlc-syntax-url: var(--ddlc-base0C);
  --ddlc-syntax-link-label: var(--ddlc-base0E);
  --ddlc-syntax-raw: var(--ddlc-base0B);
  --ddlc-syntax-list: var(--ddlc-base0E);
  --ddlc-syntax-quote: var(--ddlc-base03);
  --ddlc-polka-tile: 120px;
  --ddlc-polka-dot: 24px;
  --ddlc-polka-period: 8s;
  color-scheme: light dark;
}

:root[data-ddlc-heading="plain"] { --ddlc-font-heading: 'Mya Nunito', Nunito, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }


*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Only the root has a ground: a body ground would paint over a canvas laid behind the page */
html {
  background: var(--ddlc-ground);
  color: var(--ddlc-text);
}

::selection {
  background: var(--ddlc-selection);
}

a {
  color: var(--ddlc-link);
}

a:hover {
  color: var(--ddlc-link-live);
}

:focus-visible {
  outline: 2px solid var(--ddlc-accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

mark {
  background: var(--ddlc-highlight);
  color: inherit;
}

/* A photograph taped to the page: a warm mount in a thin frame, a strip of clear tape over
   its top edge, a hard shadow and, with .ddlc-snap-left or .ddlc-snap-right, a slight tilt.
   The caption sits under a rule inside the mount. The mount is the board role, a shade off
   the page on paper and on ink alike, so this one block serves both stylesheets and a
   consumer that vendors one of them gets the other's component unchanged. The picture keeps
   its own shape: no crop, no letterbox, no fixed height. The tape and the tilt are
   decoration, so a reader who asks for less motion loses the tilt and keeps the rest */
.ddlc-snap {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 1.75rem auto;
  padding: 0.5rem 0.5rem 0;
  border: 2px solid var(--ddlc-board-frame);
  background: var(--ddlc-board);
  box-shadow: 0.3rem 0.35rem 0 var(--ddlc-board-drop);
}

.ddlc-snap-left {
  transform: rotate(-1.4deg);
}

.ddlc-snap-right {
  transform: rotate(1.4deg);
}

.ddlc-snap::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  z-index: 1;
  width: min(5.5rem, 42%);
  height: 1.1rem;
  background: var(--ddlc-tape);
  transform: translateX(-50%) rotate(-2.5deg);
  pointer-events: none;
}

.ddlc-snap img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ddlc-line);
}

.ddlc-snap figcaption {
  margin-top: 0.5rem;
  padding: 0.45rem 0.25rem 0.6rem;
  border-top: 1px solid var(--ddlc-line);
  color: var(--ddlc-muted);
  font-size: 0.9em;
  line-height: 1.4;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .ddlc-snap-left,
  .ddlc-snap-right {
    transform: none;
  }

  .ddlc-snap::before {
    transform: translateX(-50%);
  }
}

/* A copy control in a terminal row: the visible face is the icon, while the label stays in
   the accessibility tree. It is wider than the bar's icon button so a finger finds it */
.copy-button {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.1em;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  color: var(--ddlc-text);
  cursor: pointer;
  line-height: 0;
  align-self: center;
}

.copy-button:hover {
  border-color: var(--ddlc-line);
  color: var(--ddlc-accent);
}

/* The mark is a mask so the button takes its colour from the page: the copy mark, the
   check after a successful copy and the alert after a failure */
.copy-button {
  --copy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Crect x='9' y='9' width='12' height='12'/%3E%3Cpath d='M16 9V3H3v13h6'/%3E%3C/svg%3E");
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='square'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E");
  --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M12 3L22 21H2zM12 9v5M12 17v1'/%3E%3C/svg%3E");
}

.copy-button::before {
  content: "";
  display: block;
  width: 1.15em;
  height: 1.15em;
  background: currentColor;
  -webkit-mask: var(--copy-icon) center / contain no-repeat;
  mask: var(--copy-icon) center / contain no-repeat;
}

.copy-button[data-state="copied"]::before {
  -webkit-mask-image: var(--check-icon);
  mask-image: var(--check-icon);
}

.copy-button[data-state="failed"]::before {
  -webkit-mask-image: var(--alert-icon);
  mask-image: var(--alert-icon);
}

/* Text for a screen reader only; the same utility a page uses for an icon-only control */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Mya Nunito is Nunito with the Greek, arrows and operators it lacks, drawn from Noto at
   Nunito's x-height and weight, in one variable font per style */
@font-face {
  font-family: "Mya Nunito";
  src: url("MyaNunito.woff2") format("woff2");
  font-weight: 200 1000;
}

@font-face {
  font-family: "Mya Nunito";
  src: url("MyaNunito-Italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
}

/* Prose is Mya Nunito Medium, and bold steps up to Black so it stands out from the text.
   No face is ever emboldened by the browser: Doki and Departure Mono have one weight each,
   and a synthetic bold smears them */
body {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  font: 500 1rem / 1.55 var(--ddlc-font-prose);
  font-synthesis-weight: none;
}

b,
strong {
  font-weight: 900;
}

/* A heading is Doki where it is installed, and Mya Nunito Black otherwise, or always with
   data-ddlc-heading="plain" on <html>. Doki has one weight, and a synthetic bold smears it,
   so the weight stays normal and Black comes through the weight axis, which only the
   variable font has. The pop-up's title is set the same way: it is a title, not prose */
h1,
h2,
h3,
h4,
.ddlc-inform-title {
  font-family: var(--ddlc-font-heading);
  font-weight: normal;
  font-variation-settings: "wght" 900;
  line-height: 1.25;
}

h1 {
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--ddlc-line);
}

hr {
  border: 0;
  border-top: 2px solid var(--ddlc-line);
}

/* The grid stays under the data: rules between rows only, no vertical lines */
table {
  border-collapse: collapse;
}

th,
td {
  padding: 0.3rem 1rem 0.3rem 0;
  border-bottom: 1px solid var(--ddlc-grid);
  text-align: left;
}

th {
  border-bottom-color: var(--ddlc-muted);
  color: var(--ddlc-muted);
  font: 0.75rem var(--ddlc-font-data);
}

code,
kbd,
samp {
  font-family: var(--ddlc-font-data);
}

:not(pre) > code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--ddlc-code-ground);
}

/* A code block is a kitty window opened over the page: the terminal theme's ground, text,
   selection and tab bar, dark on both sides. The bar is the top band of the window's own
   ground, with a prompt where the code starts and the language beside it, taken from
   data-lang on the <pre>. Every size is in the code's em, so the bar keeps its proportion */
pre {
  --bar-h: 2.4em;
  position: relative;
  overflow-x: auto;
  padding: calc(var(--bar-h) + 0.75em) 1rem 1lh;
  border: 1px solid var(--ddlc-window-border);
  background:
    linear-gradient(var(--ddlc-window-bar), var(--ddlc-window-bar)) top / 100% var(--bar-h) no-repeat,
    var(--ddlc-window-ground);
  color: var(--ddlc-window-text);
  font: 0.875rem / 1.5 var(--ddlc-font-data);
  box-shadow: 4px 4px 0 var(--ddlc-board-drop);
  caret-color: var(--ddlc-window-caret);
}

pre::before,
pre[data-lang]::after {
  position: absolute;
  top: 0;
  height: var(--bar-h);
  line-height: var(--bar-h);
  white-space: nowrap;
}

pre::before {
  content: ">";
  left: 1rem;
  color: var(--ddlc-window-prompt);
}

pre[data-lang]::after {
  content: attr(data-lang);
  left: calc(1rem + 2ch);
  color: var(--ddlc-window-title);
}

pre ::selection,
pre::selection {
  background: var(--ddlc-window-selection);
}

pre code {
  font: inherit;
}

/* highlight.js classes, in the syntax table's dark column */
.hljs-comment,
.hljs-quote {
  color: var(--ddlc-syntax-comment);
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
  color: var(--ddlc-syntax-keyword);
}

.hljs-title,
.hljs-title.function_,
.hljs-section {
  color: var(--ddlc-syntax-function);
}

.hljs-string,
.hljs-addition {
  color: var(--ddlc-syntax-string);
}

.hljs-number,
.hljs-symbol {
  color: var(--ddlc-syntax-number);
}

.hljs-type,
.hljs-title.class_,
.hljs-attribute,
.hljs-tag,
.hljs-meta {
  color: var(--ddlc-syntax-type);
}

.hljs-built_in,
.hljs-params,
.hljs-variable.language_,
.hljs-deletion {
  color: var(--ddlc-syntax-builtin);
}

.hljs-regexp,
.hljs-link {
  color: var(--ddlc-syntax-special);
}

.hljs-punctuation,
.hljs-char.escape_ {
  color: var(--ddlc-syntax-delimiter);
}

/* A quote is a note taped onto the page: the board's ground in a thin frame, with a strip
   of translucent tape across its top edge, clear of the text */
blockquote {
  position: relative;
  margin: 1.4em 0 1em;
  padding: 0.8em 1.2em;
  border: 2px solid var(--ddlc-board-frame);
  border-radius: 6px;
  background: var(--ddlc-board);
}

blockquote::before {
  content: "";
  position: absolute;
  top: -0.7em;
  left: 1.2em;
  width: 4em;
  height: 1.2em;
  background: var(--ddlc-tape);
  transform: rotate(-3deg);
  pointer-events: none;
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

/* The one block allowed to interrupt: the "Just Monika." pop-up, a pale ground in a plain
   thick frame. It stays pale on ink, the way the pop-up stands over the game's dark screen,
   so it writes in ink there too. .ddlc-inform-title letters its title like the pop-up's
   button, white inside a plum outline */
.ddlc-inform {
  margin: 1.2em 0;
  padding: 1.1em 1.5em;
  border: 6px solid var(--ddlc-popup-frame);
  background: var(--ddlc-popup-ground);
  color: var(--ddlc-popup-text);
  text-align: center;
}

.ddlc-inform a {
  color: var(--ddlc-popup-accent);
}

/* A list or a table centres as one block and keeps its own left edge inside, so the
   markers stand in one column; code keeps its left edge too */
.ddlc-inform > :is(ul, ol, table) {
  width: fit-content;
  margin-inline: auto;
  text-align: start;
}

.ddlc-inform pre {
  text-align: start;
}

/* The pop-up is a pale island, so code in it stands on the pop-up's own pale ground rather
   than the page's, which is dark on ink. The second selector takes code in a paragraph, the
   first one code straight in the pop-up; neither reaches a code block, which paints its own
   window */
.ddlc-inform > code,
.ddlc-inform :not(pre) > code {
  background: var(--ddlc-popup-code);
}

.ddlc-inform-title {
  display: block;
  margin-bottom: 0.3em;
  color: var(--ddlc-paper);
  font-size: 1.25em;
  letter-spacing: 0.03em;
  -webkit-text-stroke: 0.22em var(--ddlc-plum);
  paint-order: stroke fill;
}

figcaption,
.ddlc-muted {
  color: var(--ddlc-muted);
  font-size: 0.9em;
}

.ddlc-series-1 {
  color: var(--ddlc-series-1);
}

.ddlc-series-2 {
  color: var(--ddlc-series-2);
}

.ddlc-series-3 {
  color: var(--ddlc-series-3);
}

.ddlc-series-4 {
  color: var(--ddlc-series-4);
}

.ddlc-series-5 {
  color: var(--ddlc-series-5);
}
