/* Cicada Works — demonstration entry hub (CW-UX-1C-A)
   Layers over shared tokens in /styles.css: #300950 · #7540F5 · #ED6942 ·
   #F7F4ED + family tints. No additional brand colours. */

.demo-body { background: var(--cw-bone); color: var(--ink); }

.demo-hero { padding: calc(var(--nav-h) + 64px) 24px 72px; }
.demo-inner { max-width: 880px; }
.demo-title {
  font-family: var(--display); font-stretch: condensed; font-weight: 800;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 18px;
}
.demo-lead { max-width: 62ch; }
.demo-toc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.demo-toc a {
  border: 1px solid rgba(185,169,242,.5); border-radius: 999px;
  padding: 8px 16px; color: var(--cw-bone); text-decoration: none;
  font-size: 14.5px; font-weight: 600; transition: border-color .15s ease, background .15s ease;
}
.demo-toc a:hover { border-color: var(--cw-bone); background: rgba(247,244,237,.08); }

.demo-entry { padding: 64px 24px; scroll-margin-top: var(--nav-h); }
.demo-card {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 38px 36px 30px;
}
.theme-wash .demo-card { border-color: #CFC4F4; background: rgba(247,244,237,.5); }
.demo-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 10px;
}
.demo-card h2 {
  font-family: var(--display); font-weight: 700; font-size: 30px; margin: 0 0 14px;
}
.demo-what { font-size: 16.5px; margin: 0 0 16px; max-width: 64ch; }
.demo-try, .demo-connects { font-size: 15px; margin: 0 0 14px; max-width: 64ch; }
.theme-purple .demo-try, .theme-purple .demo-connects,
.theme-violet .demo-try, .theme-violet .demo-connects { color: var(--ink-soft); }
.theme-wash .demo-try, .theme-wash .demo-connects { color: rgba(48,9,80,.82); }
.demo-try strong, .demo-connects strong { font-weight: 700; }
.theme-purple .demo-try strong, .theme-purple .demo-connects strong,
.theme-violet .demo-try strong, .theme-violet .demo-connects strong { color: var(--cw-bone); }
.theme-wash .demo-try strong, .theme-wash .demo-connects strong { color: var(--cw-violet); }

.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.demo-nav-links { font-size: 14px; margin: 0; }
.theme-purple .demo-nav-links a, .theme-violet .demo-nav-links a { color: var(--violet-tint); }
.theme-purple .demo-nav-links a:hover, .theme-violet .demo-nav-links a:hover { color: var(--cw-bone); }
.theme-wash .demo-nav-links a { color: var(--cw-violet); }

.demo-outro { padding: 64px 24px 80px; }
.demo-outro-title {
  font-family: var(--display); font-weight: 700; font-size: 26px; margin: 0 0 12px;
}
.demo-outro p { max-width: 62ch; }
.demo-outro a { color: var(--cw-violet); }
.demo-outro .demo-nav-links a { color: var(--muted); }

@media (max-width: 720px) {
  .demo-hero { padding: calc(var(--nav-h) + 40px) 20px 56px; }
  .demo-entry { padding: 44px 20px; }
  .demo-card { padding: 26px 20px 22px; }
  .demo-actions .btn { width: 100%; text-align: center; }
  .demo-outro { padding: 48px 20px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-toc a { transition: none; }
}

/* CW-UX-3 — in-configuration badge + workspace route */
.demo-inconfig { background: var(--violet-wash); color: var(--cw-violet); border-color: #CFC4F4; }
.theme-purple .demo-inconfig, .theme-violet .demo-inconfig {
  background: rgba(247,244,237,.16); color: var(--cw-bone); border-color: rgba(247,244,237,.4);
}
.demo-toc-ws { border-color: var(--cw-persimmon) !important; color: var(--persimmon-ink) !important; }
.theme-purple .demo-toc-ws { color: var(--cw-bone) !important; }

/* CW-UX-4-R3 — body.theme-bone beats .theme-purple/.theme-violet .btn-quiet
   by source order at equal specificity, leaving dark text on dark cards;
   scope the light-text rule to the demo entries themselves. */
.demo-entry.theme-purple .btn-quiet, .demo-entry.theme-violet .btn-quiet {
  border: 1px solid rgba(185,169,242,.55); color: var(--cw-bone);
}
.demo-entry.theme-purple .btn-quiet:hover, .demo-entry.theme-violet .btn-quiet:hover {
  border-color: var(--cw-bone);
}
