:root {
  --cl-bg: #0e0a1a;
  --cl-bg-2: #15102a;
  --cl-bg-elev: #1c1638;
  --cl-bg-card: rgba(28, 22, 56, .72);
  --cl-ink: #f3eef7;
  --cl-ink-soft: #c8bdd8;
  --cl-muted: #8d83a5;
  --cl-line: rgba(195, 168, 230, .14);
  --cl-line-strong: rgba(195, 168, 230, .26);
  --cl-amethyst: #9d6cd8;
  --cl-amethyst-deep: #6a3a9c;
  --cl-amethyst-soft: #c9a8f0;
  --cl-gold: #d4a74a;
  --cl-gold-soft: #efd28a;
  --cl-emerald: #4ea892;
  --cl-midnight: #2a3d6e;
  --cl-rose: #d68db1;
  --cl-radius: 14px;
  --cl-radius-lg: 22px;
  --cl-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.35);
  --cl-shadow-glow: 0 0 30px rgba(157, 108, 216, .25);
  --cl-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --cl-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(106, 58, 156, .35), transparent 55%),
    radial-gradient(ellipse at 85% 5%, rgba(42, 61, 110, .35), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(78, 168, 146, .12), transparent 60%),
    linear-gradient(180deg, var(--cl-bg) 0%, var(--cl-bg-2) 100%);
  background-attachment: fixed;
  color: var(--cl-ink);
  font-family: var(--cl-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: var(--cl-amethyst-soft); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cl-gold-soft); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

h1, h2, h3 { font-family: var(--cl-serif); font-weight: 500; color: var(--cl-ink); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 3rem; margin: 0 0 .5em; font-weight: 500; }
h2 { font-size: 2rem; margin: 1.6em 0 .5em; color: var(--cl-amethyst-soft); font-weight: 500; }
h3 { font-size: 1.4rem; margin: 1.4em 0 .4em; color: var(--cl-gold-soft); font-weight: 500; }
h4 { font-size: .8rem; margin: 1.2em 0 .5em; font-family: var(--cl-sans); text-transform: uppercase; letter-spacing: .18em; color: var(--cl-gold); font-weight: 600; }
p { margin: 0 0 1.1em; color: var(--cl-ink-soft); }
em { color: var(--cl-amethyst-soft); }
strong { color: var(--cl-ink); font-weight: 600; }

.cl-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cl-muted { color: var(--cl-muted); font-size: .95rem; }
.cl-section { padding: 56px 0; }

/* Header */
.cl-site-header {
  background: rgba(14, 10, 26, .75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--cl-line);
  position: sticky; top: 0; z-index: 50;
}
.cl-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
.cl-brand { display: flex; align-items: center; gap: 12px; font-family: var(--cl-serif); font-size: 1.5rem; font-weight: 500; color: var(--cl-ink); letter-spacing: .01em; }
.cl-brand:hover { text-decoration: none; color: var(--cl-amethyst-soft); }
.cl-brand-mark {
  display: inline-block; width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--cl-amethyst) 0%, var(--cl-amethyst-deep) 60%, var(--cl-midnight) 100%);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(157, 108, 216, .55), inset 0 1px 0 rgba(255,255,255,.25);
  border-radius: 3px;
}
.cl-nav { display: flex; gap: 28px; align-items: center; }
.cl-nav a { color: var(--cl-ink-soft); font-size: .92rem; font-weight: 400; letter-spacing: .02em; }
.cl-nav a:hover { color: var(--cl-gold-soft); text-decoration: none; }

/* Main */
.cl-main { min-height: 60vh; padding: 0 0 60px; }

/* Hero */
.cl-hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--cl-line);
}
.cl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(157, 108, 216, .35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 167, 74, .18), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(78, 168, 146, .15), transparent 50%);
  pointer-events: none;
}
.cl-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.cl-hero-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--cl-gold); font-weight: 600; }
.cl-hero h1 {
  font-size: 3.8rem; margin: 16px 0 22px;
  background: linear-gradient(135deg, #f3eef7 0%, var(--cl-amethyst-soft) 60%, var(--cl-gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.cl-hero p.lead { font-size: 1.18rem; color: var(--cl-ink-soft); max-width: 540px; line-height: 1.65; }
.cl-hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.cl-hero-image {
  border-radius: var(--cl-radius-lg);
  box-shadow: var(--cl-shadow), var(--cl-shadow-glow);
  width: 100%; height: auto; display: block;
  border: 1px solid var(--cl-line-strong);
}

.cl-btn { display: inline-flex; align-items: center; padding: 13px 26px; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: all .2s ease; letter-spacing: .02em; }
.cl-btn-primary {
  background: linear-gradient(135deg, var(--cl-amethyst) 0%, var(--cl-amethyst-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(106, 58, 156, .4), inset 0 1px 0 rgba(255,255,255,.2);
}
.cl-btn-primary:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(157, 108, 216, .5), inset 0 1px 0 rgba(255,255,255,.25); color: #fff; }
.cl-btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--cl-ink);
  border: 1px solid var(--cl-line-strong);
  backdrop-filter: blur(8px);
}
.cl-btn-ghost:hover { text-decoration: none; background: rgba(255,255,255,.08); border-color: var(--cl-amethyst-soft); color: var(--cl-amethyst-soft); }

/* Cards */
.cl-card {
  background: var(--cl-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.cl-card:hover { border-color: var(--cl-line-strong); }

/* Page header */
.cl-page-header {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--cl-line);
  background: linear-gradient(180deg, rgba(157, 108, 216, .06) 0%, transparent 100%);
}
.cl-page-header h1 { font-size: 2.8rem; margin: 14px 0 12px; font-style: italic; }
.cl-page-header .cl-tagline { font-size: 1.15rem; color: var(--cl-ink-soft); max-width: 720px; }

/* Crumbs */
.cl-crumbs { font-size: .85rem; color: var(--cl-muted); letter-spacing: .04em; margin-bottom: 6px; }
.cl-crumbs a { color: var(--cl-muted); }
.cl-crumbs a:hover { color: var(--cl-amethyst-soft); }

/* Chips */
.cl-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.cl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--cl-line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--cl-ink-soft);
  font-weight: 500;
  letter-spacing: .03em;
}
.cl-chip-accent { background: rgba(157, 108, 216, .12); color: var(--cl-amethyst-soft); border-color: rgba(157, 108, 216, .3); }
.cl-chip-accent:hover { text-decoration: none; background: rgba(157, 108, 216, .2); }

/* Two-column grid */
.cl-grid-2 { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding: 48px 0; }
.cl-prose { font-size: 1.04rem; line-height: 1.8; }
.cl-prose p { color: var(--cl-ink-soft); }
.cl-prose ul { padding-left: 22px; }
.cl-prose li { margin-bottom: .5em; color: var(--cl-ink-soft); }
.cl-prose h2 { margin-top: 2em; }

/* Sidebar */
.cl-sidebar > * + * { margin-top: 22px; }

/* Properties dl */
.cl-props { display: grid; gap: 0; font-size: .92rem; }
.cl-props .row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--cl-line); }
.cl-props .row:last-child { border-bottom: none; }
.cl-props dt { color: var(--cl-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; font-weight: 600; }
.cl-props dd { margin: 0; color: var(--cl-ink); }

/* Callout */
.cl-callout {
  background: linear-gradient(135deg, rgba(157, 108, 216, .12) 0%, rgba(212, 167, 74, .08) 100%);
  border: 1px solid rgba(157, 108, 216, .25);
  border-left: 3px solid var(--cl-amethyst);
  border-radius: var(--cl-radius);
  padding: 22px 26px;
  margin: 28px 0;
}
.cl-callout h4 { margin-top: 0; color: var(--cl-amethyst-soft); }
.cl-callout p { margin-bottom: 0; }

/* Related list */
.cl-related-list { display: grid; gap: 8px; margin-top: 16px; }
.cl-related-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--cl-line);
  border-radius: 10px;
  color: var(--cl-ink);
  font-size: .95rem;
}
.cl-related-list a:hover { text-decoration: none; background: rgba(157, 108, 216, .1); border-color: var(--cl-amethyst); }
.cl-related-list .swatch {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 6px rgba(0,0,0,.3);
}

/* Crystal/index grid */
.cl-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cl-tile {
  display: block;
  background: var(--cl-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  padding: 22px;
  color: var(--cl-ink);
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.cl-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--tile-tint, transparent);
  opacity: .08;
  pointer-events: none;
}
.cl-tile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--cl-amethyst); box-shadow: var(--cl-shadow); }
.cl-tile-swatch {
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 12px rgba(0,0,0,.4);
}
.cl-tile h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--cl-ink); font-style: italic; }
.cl-tile p { font-size: .88rem; color: var(--cl-muted); margin: 0; }
.cl-tile .meta { font-size: .76rem; color: var(--cl-gold); text-transform: uppercase; letter-spacing: .12em; margin-top: 10px; }

/* Letter nav */
.cl-letter-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 32px; }
.cl-letter-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--cl-line);
  font-family: var(--cl-serif); font-weight: 600;
  color: var(--cl-ink-soft); font-size: 1rem;
}
.cl-letter-nav a:hover { text-decoration: none; background: var(--cl-amethyst); color: #fff; border-color: var(--cl-amethyst); }

/* Sections */
.cl-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 24px 0; }
.cl-feature h3 { color: var(--cl-amethyst-soft); font-style: italic; }

/* Chakra spectrum */
.cl-chakra-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; padding: 24px 0; }
.cl-chakra-cell {
  background: var(--cl-bg-card); border: 1px solid var(--cl-line); border-radius: 12px;
  padding: 18px 14px; text-align: center; color: var(--cl-ink);
  transition: all .2s ease;
  position: relative; overflow: hidden;
}
.cl-chakra-cell::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ch-color, #888); }
.cl-chakra-cell:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--ch-color); }
.cl-chakra-cell h4 { color: var(--cl-ink); margin: 0; font-family: var(--cl-serif); text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 500; }
.cl-chakra-cell .sk { font-size: .76rem; color: var(--cl-muted); display: block; margin-top: 4px; font-style: italic; }

/* Footer */
.cl-site-footer {
  margin-top: 70px;
  padding: 56px 0 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 100%);
  border-top: 1px solid var(--cl-line);
}
.cl-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.cl-site-footer h4 { color: var(--cl-gold); margin: 0 0 14px; font-size: .76rem; letter-spacing: .2em; }
.cl-site-footer ul { list-style: none; padding: 0; margin: 0; }
.cl-site-footer li { margin-bottom: 8px; font-size: .92rem; }
.cl-site-footer li a { color: var(--cl-ink-soft); }
.cl-site-footer li a:hover { color: var(--cl-amethyst-soft); text-decoration: none; }
.cl-brand-footer { margin-bottom: 12px; }
.cl-footer-brand-col { display: flex; flex-direction: column; gap: 18px; }
.cl-footer-wellness { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--cl-line); }
.cl-footer-wellness h4 { margin-bottom: 10px; }
.cl-footer-wellness p { font-size: .86rem; line-height: 1.55; }
.cl-copyright { padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--cl-line); font-size: .82rem; color: var(--cl-muted); text-align: center; }

/* Recommended Reading editorial block */
.cl-recommended {
  background: linear-gradient(135deg, rgba(157, 108, 216, .08) 0%, rgba(42, 61, 110, .12) 100%);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  padding: 22px;
}
.cl-recommended h4 {
  font-family: var(--cl-serif);
  font-size: 1rem; text-transform: none; letter-spacing: .02em;
  color: var(--cl-amethyst-soft); font-weight: 500;
  margin: 0 0 6px; font-style: italic;
}
.cl-recommended .lede { font-size: .82rem; color: var(--cl-muted); margin: 0 0 14px; font-style: italic; }
.cl-recommended ul { list-style: none; padding: 0; margin: 0; }
.cl-recommended li { padding: 8px 0; border-bottom: 1px dashed var(--cl-line); font-size: .9rem; }
.cl-recommended li:last-child { border-bottom: none; }
.cl-recommended li a { color: var(--cl-ink); }
.cl-recommended li a:hover { color: var(--cl-gold-soft); text-decoration: none; }
.cl-recommended .src { display: block; font-size: .72rem; color: var(--cl-muted); letter-spacing: .04em; margin-top: 2px; text-transform: uppercase; }

/* Inline editorial link styling */
.cl-prose a.cl-inline-rec { color: var(--cl-gold-soft); border-bottom: 1px dotted var(--cl-gold); }
.cl-prose a.cl-inline-rec:hover { color: #fff; text-decoration: none; border-bottom-color: #fff; }

/* Intention/Pairing tiles */
.cl-intent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cl-intent-card {
  display: block;
  background: var(--cl-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  padding: 28px;
  color: var(--cl-ink);
  position: relative; overflow: hidden;
  transition: all .2s ease;
}
.cl-intent-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent, var(--cl-amethyst)) 0%, var(--cl-gold) 100%);
}
.cl-intent-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent, var(--cl-amethyst)); }
.cl-intent-card h3 { margin: 0 0 8px; font-style: italic; color: var(--cl-ink); }
.cl-intent-card p { margin: 0; color: var(--cl-muted); font-size: .94rem; }

/* Mobile */
@media (max-width: 880px) {
  .cl-hero-grid, .cl-grid-2, .cl-feature-grid, .cl-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cl-hero h1 { font-size: 2.6rem; }
  .cl-page-header h1 { font-size: 2rem; }
  .cl-chakra-strip { grid-template-columns: repeat(2, 1fr); }
  .cl-nav { gap: 16px; }
  .cl-nav a { font-size: .85rem; }
  .cl-section { padding: 36px 0; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
}

/* Card grid for compendium index pages */
.cl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  padding: 48px 0;
}
.cl-card-link {
  display: block;
  background: var(--cl-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  padding: 26px 24px;
  color: inherit;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.cl-card-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cl-amethyst), var(--cl-gold), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.cl-card-link:hover {
  border-color: var(--cl-amethyst);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(106, 58, 156, .25);
}
.cl-card-link:hover::before { opacity: 1; }
.cl-card-link h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cl-amethyst-soft);
  font-weight: 500;
}
.cl-card-link p { margin: 0; color: var(--cl-ink-soft); font-size: .96rem; line-height: 1.6; }

/* Make site nav wrap on smaller widths */
.cl-nav { flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 720px) {
  .cl-nav { font-size: .9rem; }
  .cl-card-grid { grid-template-columns: 1fr; padding: 32px 0; }
}
