/* Direction: Quiet Studio — bone paper, clay accent, editorial serif display */
/* 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: #f7f2eb;
  --surface: #fffaf4;
  --surface-2: #eee2d5;
  --border: #e0d1c0;
  --border-strong: #b3ada7;
  --ink: #221a15;
  --muted: #6b584b;
  --accent: #8f4b33;
  --accent-hover: #7a402b;
  --accent-ink: #ffffff;
  --accent-text: #7c3f29;
  --accent-strong: #6b3321;
  --accent-soft: #f3e3d9;
  --accent-border: #c8a798;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dce4d6;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #efdfd0;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f0d8d2;
  --danger-strong: #b91c1c;
  --chart-1: #8f4b33;
  --chart-2: #8b7b04;
  --chart-3: #055c3b;
  --chart-4: #04829d;
  --chart-5: #424091;
  --chart-6: #a95690;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --radius-card: 18px;
  --radius-btn: 999px;
  --radius-input: 12px;
  --card-pad: 1.5rem;
  --x-on-photo: #ffffff;
  --x-band: #241b15;
  --gradient-paper: linear-gradient(180deg, #fffaf4 0%, #f2e8dc 100%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #140b07;
  --surface: #2c2320;
  --surface-2: #201713;
  --border: #352d2a;
  --border-strong: #5b5451;
  --ink: #f7f2eb;
  --muted: #9c9690;
  --accent: #8f4b33;
  --accent-hover: #a06652;
  --accent-ink: #ffffff;
  --accent-text: #b58779;
  --accent-strong: #af7d6d;
  --accent-soft: #2f1911;
  --accent-border: #4b281b;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #142513;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #371b07;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #380f0c;
  --danger-strong: #d16969;
  --chart-1: #a25c44;
  --chart-2: #9f8d0d;
  --chart-3: #199764;
  --chart-4: #0f95b3;
  --chart-5: #7176cc;
  --chart-6: #bc67a2;
}

.paper {
  background-image: var(--gradient-paper);
}

.rule-label {
  @apply flex items-center gap-3 text-xs uppercase tracking-[0.22em] text-muted;
}
.rule-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.scrim {
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.1) 0%, rgba(20, 14, 10, 0.7) 100%);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.live-dot {
  animation: pulse-dot 2.4s ease-in-out infinite;
}
html.reduced-motion .live-dot {
  animation: none;
}
