/* Direction: Saltroad — printed-magazine editorial. Warm ivory paper,
   near-black high-contrast serif headlines, one oxblood accent. */
/* 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: #f8f4ea;
  --surface: #fdfbf5;
  --surface-2: #efe8d9;
  --border: #d9cfbc;
  --border-strong: #b2aca6;
  --ink: #15110e;
  --muted: #655c51;
  --accent: #6d1f2b;
  --accent-hover: #5d1a25;
  --accent-ink: #ffffff;
  --accent-text: #7c2533;
  --accent-strong: #58161f;
  --accent-soft: #f0e3e1;
  --accent-border: #b99494;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dde6d5;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f0e1cf;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f0dad1;
  --danger-strong: #b91c1c;
  --chart-1: #6d1f2b;
  --chart-2: #754f07;
  --chart-3: #0c5c32;
  --chart-4: #055490;
  --chart-5: #623481;
  --chart-6: #9a416d;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Spectral", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-tracking: -0.024em;
  --radius-card: 2px;
  --radius-btn: 2px;
  --radius-input: 2px;
  --shadow-card: 0 18px 40px -28px rgb(21 17 14 / 0.4);
  --x-on-photo: #ffffff;
  --font-sans: "Spectral", Georgia, serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #0f0406;
  --surface: #271d1f;
  --surface-2: #1b1112;
  --border: #312729;
  --border-strong: #574f51;
  --ink: #f8f4ea;
  --muted: #9b948f;
  --accent: #6d1f2b;
  --accent-hover: #83414b;
  --accent-ink: #ffffff;
  --accent-text: #ae8288;
  --accent-strong: #a7777e;
  --accent-soft: #240a0e;
  --accent-border: #391017;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #101f12;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #331507;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #34090b;
  --danger-strong: #d16969;
  --chart-1: #a7535b;
  --chart-2: #b87e11;
  --chart-3: #5c913c;
  --chart-4: #1f95aa;
  --chart-5: #8270c7;
  --chart-6: #ca7abc;
}

/* Saltroad — editorial texture, page entrance, reading progress */

@keyframes saltroad-enter {
  from {
    opacity: 0.4;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-enter {
  animation: saltroad-enter 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

html.reduced-motion .page-enter {
  animation: none;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Drop cap on the opening paragraph of an article */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  font-size: 4rem;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent-text);
}

.lift {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lift:hover {
  transform: translateY(-6px);
}

.lift img {
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lift:hover img {
  transform: scale(1.04);
}

html.reduced-motion .lift:hover,
html.reduced-motion .lift:hover img {
  transform: none;
}

/* Paper grain over the ivory page */
.paper::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: radial-gradient(rgb(21 17 14 / 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* A picked story's star is filled in oxblood */
.star-on svg {
  fill: currentColor;
}

.chip-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
