/* Interface colors are separate from the brand assets and palette previews. */
:root {
  color-scheme: light;
  --text: #000000;
  --surface: #faf9f5;
  --surface-soft: #eaece1;
  --surface-raised: #ffffff;
  --focus: #835c00;
  --landing-width: 1480px;
  --landing-gutter: clamp(24px, 3.3vw, 64px);
}
/* The announcement strip stays black above the light navigation. */
.preview-ribbon {
  background: #000000;
  color: #ffffff;
  --text: #ffffff;
  --muted: #ffffff;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.preview-ribbon .status-dot { background: #c6d4af; }
.preview-ribbon .ribbon-divider { color: #ffffff; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: .875rem;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { background: var(--surface-soft); }
.theme-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-toggle .theme-sun { display: none; }
.preview-ribbon .theme-toggle { background: #000000; border-color: #777777; color: #ffffff; }
.preview-ribbon .theme-toggle:hover { background: #252525; }
.preview-ribbon [data-theme-label] { display: inline; }
.theme-toggle:focus-visible, a:focus-visible, button:focus-visible,
summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.preview-ribbon .theme-toggle:focus-visible, footer :focus-visible { outline-color: #f2c75b; }

/* Wider desktop canvas, with consistent gutters and comfortable line lengths. */
@media (min-width: 1024px) {
  .marketing :is(.site-header, .landing-hero, .experience-section, .pricing-section) {
    width: calc(100% - var(--landing-gutter) * 2);
    max-width: var(--landing-width);
    margin-inline: auto;
  }
  .marketing .site-header { gap: 24px; }
  .marketing .site-header nav { gap: clamp(16px, 1.6vw, 28px); }
}

/* Every page footer uses the same black surface. */
footer {
  --text: #ffffff;
  --muted: #ffffff;
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
footer p, footer span, footer small, footer strong, footer a { color: #ffffff; }
.site-footer, .signup-footer, .account-footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 36px max(var(--landing-gutter), calc((100% - var(--landing-width)) / 2));
}
.site-footer { margin-top: 56px; }
.account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 1rem;
}
.account-footer img { width: 151px; height: auto; }
.account-footer p { margin-top: 12px; font-size: 1rem; }
.app-shell main > footer { padding: 32px; border-radius: 6px 6px 0 0; }

/* Brand artwork is a faithful light/dark sample, independent of interface mode. */
:is(.hero-composition, .brand-canvas, .mini-logo-stage, .mini-colors, .mini-type,
    .logo-preview, .usage-visual, .asset-art, .dialog-asset-art,
    .dashboard-card.mustard, .workspace-card > div:first-child) {
  --text: #000000;
  --muted: #000000;
  color: #000000;
  color-scheme: light;
}
.hero-composition :is(.floating-label, .floating-palette) { background: #faf9f5; }
.asset-art.guide .mini-guide, .dialog-asset-art.guide .mini-guide { color: #f4f1e8; }
.save-asset { color: #000000; }
.mini-colors button { color: inherit; }


@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .theme-toggle [data-theme-label] { display: none; }
  .topbar-actions .theme-toggle { padding: 10px; }
}
@media (max-width: 600px) {
  .preview-ribbon { justify-content: space-between; padding: 10px 20px; }
  .preview-ribbon > .status-dot { display: none; }
  .preview-ribbon > a { margin-left: 0; }
  .preview-ribbon .theme-toggle { margin-left: auto; }
  .signup-header { gap: 16px; }
  .account-header { gap: 14px; }
  .account-header .theme-toggle [data-theme-label] { display: none; }
  .site-footer, .signup-footer, .account-footer { padding: 32px 24px; }
  .app-shell main > footer { padding: 28px 20px; }
}
