/* Shared by the workshop's pages and the UI it adds to the source readers. */
:root {
  --workshop-reading-ink: #243d34;
  --workshop-paper: #f6f3f7;
  --workshop-surface: #fffdfd;
  --workshop-ink: #211827;
  --workshop-muted: #62576a;
  --workshop-accent: #4d0099;
  --workshop-accent-hover: #2a103d;
  --workshop-focus: #995d04;
  --workshop-focus-width: 3px;
  --workshop-focus-offset: 2px;
  --workshop-touch-target: 44px;
  --workshop-excerpt-rule: #d5c6db;
  --workshop-comment-rule: #a184af;
  --workshop-comment-border: #ded6e3;
}

/* Studio has its own surface palette. Readers only consume namespaced properties. */
:where([data-workshop-ui="portal"], [data-workshop-ui="entry"]) {
  color-scheme: light;
  --paper: var(--workshop-paper);
  --sheet: var(--workshop-surface);
  --ink: var(--workshop-ink);
  --muted: var(--workshop-muted);
  --violet: var(--workshop-accent);
  --plum: var(--workshop-accent-hover);
  --focus: var(--workshop-focus);
}

/* Each shell can tune the outline to its control density. */
:where([data-workshop-ui]) :focus-visible {
  outline: var(--workshop-focus-width) solid var(--focus);
  outline-offset: var(--workshop-focus-offset);
}

:where([data-workshop-ui]) :is(.btn, .button, .entry-primary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
}

:where([data-workshop-ui]) :is(.btn.primary, .button.primary, .entry-primary) {
  color: var(--sheet);
  background: var(--workshop-accent);
}

:where([data-workshop-ui]) :is(.btn.primary, .button.primary, .entry-primary):hover {
  background: var(--workshop-accent-hover);
}
