/* Direction: Pop Art Comic Universe — paper-white stock, hard ink outlines,
   comic yellow + electric blue accents, poster-black display lettering */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #fffdf5;
  --surface: #ffffff;
  --surface-2: #f4f0e2;
  --border: #171717;
  --border-strong: #b4b5b5;
  --ink: #171717;
  --muted: #5c584f;
  --accent: #2864dc;
  --accent-hover: #2255bb;
  --accent-ink: #ffffff;
  --accent-text: #1f52b8;
  --accent-strong: #163e8c;
  --accent-soft: #ded5ff;
  --accent-border: #9eb8ea;
  --success: #1c7f46;
  --success-ink: #ffffff;
  --success-soft: #e4eee0;
  --success-strong: #1a7540;
  --warning: #ffd43b;
  --warning-ink: #171717;
  --warning-soft: #fff8df;
  --warning-strong: #846d1e;
  --danger: #d32f2f;
  --danger-ink: #ffffff;
  --danger-soft: #fae4dd;
  --danger-strong: #c22b2b;
  --chart-1: #2864dc;
  --chart-2: #bc57cc;
  --chart-3: #a40b24;
  --chart-4: #a57a18;
  --chart-5: #056700;
  --chart-6: #1b979f;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --x-font-pow: "Bangers", "Archivo Black", sans-serif;
  --x-yellow: #ffd43b;
  --x-red: #f04444;
  --x-lavender: #c9b8ff;
  --x-grey: #eaeaea;
  --x-band: #171717;
  --x-on-dark: #fffdf5;
  --x-on-photo: #ffffff;
  --radius-card: 18px;
  --radius-btn: 999px;
  --radius-input: 12px;
  --card-pad: 1.25rem;
  --shadow-card: 5px 5px 0 #171717;
  --display-tracking: 0.005em;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Nunito Sans", system-ui, sans-serif;
  --display-weight: 700;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #030810;
  --surface: #1c2128;
  --surface-2: #10141c;
  --border: #262b31;
  --border-strong: #4f5258;
  --ink: #fffdf5;
  --muted: #9a9b99;
  --accent: #2864dc;
  --accent-hover: #487be1;
  --accent-ink: #ffffff;
  --accent-text: #5886e4;
  --accent-strong: #5886e4;
  --accent-soft: #0b1c3d;
  --accent-border: #14316c;
  --success: #1c7f46;
  --success-ink: #ffffff;
  --success-soft: #09221c;
  --success-strong: #4e9b6f;
  --warning: #ffd43b;
  --warning-ink: #ffffff;
  --warning-soft: #3a3519;
  --warning-strong: #ffd43b;
  --danger: #d32f2f;
  --danger-ink: #ffffff;
  --danger-soft: #311117;
  --danger-strong: #dd5d5d;
  --chart-1: #2864dc;
  --chart-2: #bc57cc;
  --chart-3: #dc3e48;
  --chart-4: #a57a18;
  --chart-5: #1d9b13;
  --chart-6: #1b979f;
}

/* PanelPop — comic-universe details: hard ink shadows, halftone, speech bubbles */

.font-pow {
  font-family: var(--x-font-pow);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.pow {
  box-shadow: 5px 5px 0 var(--ink);
}
.pow-sm {
  box-shadow: 3px 3px 0 var(--ink);
}
.pow-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pow-hover:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
html.reduced-motion .pow-hover:hover {
  transform: none;
}

.halftone {
  background-image: radial-gradient(currentColor 1.5px, transparent 1.6px);
  background-size: 12px 12px;
}

.stripes {
  background-image: repeating-linear-gradient(
    135deg,
    var(--x-yellow) 0 14px,
    var(--ink) 14px 28px
  );
}

.speech {
  position: relative;
}
.speech::after {
  content: "";
  position: absolute;
  left: 2.2rem;
  bottom: -18px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 18px solid var(--ink);
}
.speech::before {
  content: "";
  position: absolute;
  left: 2.35rem;
  bottom: -12px;
  z-index: 1;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 13px solid var(--surface);
}

.reader-page img {
  display: block;
  width: 100%;
  height: auto;
}

.scroll-x {
  scrollbar-width: thin;
}
