/* Showcase pages use the current production site shell. */
/* Keep source resets below the authored artwork; the shell rolls back those */
/* artwork global selectors to this canonical layer. */
@import url('../../src/styles.css') layer(showcase-site);
@import url('../../src/warm-theme.css') layer(showcase-site);
@import url('../../src/contact-form.css') layer(showcase-site);
@import url('../../src/brain-atlas.css?v=editorial-20261010-alpha') layer(showcase-site);
@import url('../../src/site-theme.css') layer(showcase-site);
@import url('../../src/site-shell.css') layer(showcase-site);

html:not(.showcase-asset) {
  background: var(--color-paper);
  color: var(--color-ink);
}
body.showcase-page {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* all: revert-layer discards only the unlayered artwork page styles here. */
/* The imported canonical header, footer, dialog and responsive rules remain. */
body.showcase-page [data-site-chrome],
body.showcase-page [data-site-chrome] * {
  all: revert-layer;
}
body.showcase-page [data-site-chrome] {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
}
body.showcase-page [data-site-chrome] ::selection {
  background: var(--color-amber-soft);
  color: var(--color-ink);
}

/* Preserve the approved canvases when the surrounding page is dark. */
body.showcase-page :is(.flow-canvas, .composition),
body.showcase-page:not(.showcase-gallery) > main[aria-label] {
  color-scheme: light;
  background: #fff8ed;
  color: #28251f;
  line-height: normal;
}
body.showcase-page :is(.flow-canvas, .composition) ::selection,
body.showcase-page:not(.showcase-gallery) > main[aria-label] ::selection {
  background: #f8d4a5;
  color: #28251f;
}

/* The gallery prose and navigation follow the selected site palette. */
body.showcase-gallery {
  font-size: 17px;
  line-height: 1.75;
}
.showcase-gallery > main {
  color: var(--color-ink);
}
.showcase-gallery > main a {
  color: var(--color-amber-deep);
}
.showcase-gallery > main aside a,
.showcase-gallery > main :is(.note, figcaption, .review-note) {
  color: var(--color-muted);
}
.showcase-gallery > main .intro p:not(.note) {
  color: var(--color-body);
}
.showcase-gallery > main :is(h1, h2) {
  color: var(--color-ink);
}
.showcase-gallery > main :is(figure img, figure iframe) {
  border-color: var(--color-rule);
  background: #fff8ed;
  color-scheme: light;
}
.showcase-gallery > main .review-note {
  border-top: 1px solid var(--color-rule);
  padding-top: 24px;
  font-size: 14px;
}
.showcase-gallery > main a:focus-visible {
  outline-color: var(--color-focus);
}

@media (max-width: 480px) {
  body.showcase-gallery { font-size: 16px; }
}
