.keylab-home { display: contents; }

html[data-keylab-brand]:root,
html[data-keylab-brand][data-accent]:root {
  --color-ink: #1c1721;
  --color-paper: #f8f5f9;
  --color-on-accent: #1c1721;
  --color-bg-primary: #1c1721;
  --color-bg-secondary: #26202c;
  --color-bg-card: #302935;
  --color-bg-hover: #3e3445;
  --color-text-primary: #f8f5f9;
  --color-text-secondary: #ebd8f4;
  --color-text-muted: #c1b3c7;
  --color-accent: #a95ad0;
  --color-accent-hover: #c38ddc;
  --color-accent-light: rgb(169 90 208 / 12%);
  --color-accent-glow: rgb(169 90 208 / 25%);
  --color-border: #514558;
  --color-border-light: #706078;
  --color-line: #f8f5f9;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --site-signature: url('/brand/horizontal-negativo.svg');
  --site-wordmark: url('/brand/keylab-negativo.svg');
}

html[data-keylab-brand][data-theme="light"]:is(:root, [data-accent]) {
  --color-on-accent: #f8f5f9;
  --color-bg-primary: #f8f5f9;
  --color-bg-secondary: #f1eaf4;
  --color-bg-card: #fff;
  --color-bg-hover: #ebd8f4;
  --color-text-primary: #1c1721;
  --color-text-secondary: #45394b;
  --color-text-muted: #635469;
  --color-accent: #65337d;
  --color-accent-hover: #53246a;
  --color-border: #cbbdd2;
  --color-border-light: #b39dbd;
  --color-line: #1c1721;
  --site-signature: url('/brand/horizontal-cor.svg');
  --site-wordmark: url('/brand/keylab-cor.svg');
}

html[data-keylab-brand]:root .site-brand-signature::before,
html[data-keylab-brand]:root .site-brand-wordmark::before {
  content: '';
  display: block;
  background: var(--site-signature) left center / contain no-repeat;
  width: clamp(96px, 8vw, 120px);
  aspect-ratio: 1528 / 446;
}

html[data-keylab-brand]:root .site-brand-wordmark::before {
  background-image: var(--site-wordmark);
  width: clamp(205px, 43vw, 650px);
  aspect-ratio: 1008 / 330;
}

/* Keep the original accessible link name when the outlined artwork is visible. */
html[data-keylab-brand]:root :is(.site-brand-signature, .site-brand-wordmark) > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
