@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap");

:root {
  --paper: #f5f0e8;
  --paper-deep: #ece4d7;
  --ink: #171717;
  --muted: #6d6a65;
  --line: rgba(23, 23, 23, 0.14);
  --accent: #ff5c8a;
  --accent-2: #7058ff;
  --mint: #8fe7c9;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px var(--sans); }
body::before {
  content: ""; position: fixed; inset: 0; opacity: 0.24; pointer-events: none;
  background-image: linear-gradient(rgba(23,23,23,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(23,23,23,.06) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 84%);
}
a { color: inherit; text-decoration: none; }
.mureka-app { min-height: 100vh; position: relative; z-index: 1; }

.mureka-app header {
  height: 74px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; background: rgba(245,240,232,.86);
  backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 4;
}
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; }
.logo b { width: 31px; height: 31px; border-radius: 50%; display: inline-block; background: conic-gradient(from 210deg,#ffc96b,#ff6d9d 28%,#8f7eff 58%,#65d4db 82%,#ffc96b); box-shadow: 0 5px 18px rgba(112,88,255,.2); }
.logo span { display: grid; line-height: 1; font-size: 18px; }
.logo small { margin-top: 5px; color: var(--muted); font: 700 8px var(--sans); letter-spacing: .18em; }
.mureka-app nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; font-weight: 700; }
.mureka-app nav a:hover { color: var(--ink); }
.cta, .primary { border-radius: 999px; background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 700; transition: transform 180ms ease, box-shadow 180ms ease; }
.cta:hover, .primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23,23,23,.16); }

.library, .mureka-app main { max-width: 1440px; margin: 0 auto; }
.library { padding: 0 clamp(20px, 5vw, 84px) 80px; }
.library-hero { min-height: 540px; padding: clamp(52px,8vw,112px) 0 60px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: clamp(32px,7vw,120px); align-items: center; }
.library-hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 16px; color: #ab355a; font: 700 10px var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.library h1, .hero h1 { margin: 0; font: 700 clamp(54px,8vw,124px)/.92 var(--serif); letter-spacing: -.065em; }
.library h1 em, .hero h1 em { color: var(--accent-2); font-style: italic; }
.intro { max-width: 660px; margin: 28px 0 0; color: #4d4a45; font-size: clamp(18px,2vw,23px); line-height: 1.55; }
.policy-feature { max-width: 760px; margin-top: 26px; padding: 18px 20px 20px; border: 1px solid rgba(164,59,93,.24); border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(246,224,232,.72)); box-shadow: 0 14px 34px rgba(164,59,93,.08); }
.policy-feature-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.policy-feature .eyebrow { margin: 0; color: #a43b5d; }
.policy-count { color: #6d6a65; font: 700 10px var(--sans); letter-spacing: .16em; }
.policy-feature h2 { margin: 8px 0 6px; font: 700 clamp(22px,2.4vw,32px)/1.05 var(--serif); letter-spacing: -.035em; }
.policy-feature > p { max-width: 620px; margin: 0 0 14px; color: #5b4b51; font-size: 13px; line-height: 1.55; }
.policy-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; }
.policy-links a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid rgba(164,59,93,.18); border-radius: 10px; color: #5d3343; font-size: 12px; font-weight: 700; line-height: 1.25; background: rgba(255,255,255,.52); transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.policy-links a:hover { border-color: rgba(164,59,93,.46); background: rgba(255,255,255,.86); transform: translateY(-1px); }
.policy-links a span { flex: 0 0 auto; color: #a43b5d; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.text-link { color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }

.hero-art { min-height: 380px; border-radius: 28px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative;
  background: radial-gradient(circle at 22% 24%, rgba(255,201,107,.92), transparent 26%), radial-gradient(circle at 80% 22%, rgba(112,88,255,.9), transparent 28%), linear-gradient(145deg,#f6a7bf,#6b52d9 56%,#1b2137);
  box-shadow: 0 24px 70px rgba(112,88,255,.18);
}
.hero-art::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 21px; pointer-events: none; }
.hero-art-caption { display: flex; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 700; letter-spacing: .14em; position: relative; z-index: 1; }
.hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; mix-blend-mode: screen; }
.article-art > .visualizer { position: relative; z-index: 1; opacity: .62; }
.visualizer { min-height: 290px; display: flex; align-items: flex-end; justify-content: center; gap: 7px; padding: 30px 18px 42px; position: relative; }
.visualizer span { width: 9px; min-height: 22px; border-radius: 8px 8px 2px 2px; opacity: .84; transform-origin: bottom; animation: sound-rise 4s ease-in-out infinite alternate; }
.visualizer span:nth-child(3n) { animation-delay: -1.4s; }
.visualizer span:nth-child(4n) { animation-delay: -2.6s; }
.visualizer i { position: absolute; left: 8%; right: 8%; bottom: 28%; height: 2px; background: rgba(255,255,255,.8); transform: rotate(-5deg); box-shadow: 0 0 16px rgba(255,255,255,.7); }
@keyframes sound-rise { from { transform: scaleY(.72); } to { transform: scaleY(1.08); } }

.library-note { max-width: 870px; margin: 0 0 38px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.42); color: #4b4842; line-height: 1.65; }
.library-browse { display: grid; grid-template-columns: minmax(220px,260px) minmax(0,1fr); gap: clamp(24px,4vw,58px); align-items: start; }
.category-rail { position: sticky; top: 98px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.48); box-shadow: 0 16px 38px rgba(23,23,23,.07); }
.category-rail-head h2, .library-controls h2 { margin: 0; font: 700 28px/1 var(--serif); letter-spacing: -.035em; }
.category-rail-head > p:last-child { margin: 12px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.library-results { min-width: 0; }
.library-controls { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin: 0 0 22px; }
.library-controls .eyebrow { margin-bottom: 8px; }
.filters { display: grid; gap: 7px; }
.filters button { width: 100%; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--muted); padding: 11px 12px; cursor: pointer; font: 600 12px var(--sans); margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
.filters button span { display: grid; gap: 3px; }
.filters button b { color: inherit; font-size: 12px; }
.filters button small { color: inherit; opacity: .72; font-size: 9px; font-weight: 500; line-height: 1.25; }
.filters button em { min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--paper-deep); color: var(--muted); font-size: 10px; font-style: normal; }
.filters button:hover { border-color: var(--line); background: rgba(255,255,255,.58); color: var(--ink); }
.filters button.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters button.active em { background: var(--accent); color: #fff; }
.hero button { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); padding: 9px 13px; cursor: pointer; font: 600 12px var(--sans); margin: 0; }
.search-box { display: grid; gap: 7px; min-width: min(100%,250px); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.search-box input { width: 100%; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.52); padding: 12px 16px; color: var(--ink); font: 14px var(--sans); outline: none; }
.search-box input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(112,88,255,.12); }

.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.55); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(23,23,23,.35); box-shadow: 0 20px 42px rgba(23,23,23,.12); }
.card-art { min-height: 178px; position: relative; overflow: hidden; background: linear-gradient(135deg,#2a1e45,#735fe4 50%,#fa759a); }
.card-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; filter: saturate(.9) contrast(1.04); }
.card-art > .visualizer { position: relative; z-index: 1; mix-blend-mode: screen; }
.card:nth-child(3n+2) .card-art { background: linear-gradient(135deg,#183f48,#55a7b2 48%,#f7c674); }
.card:nth-child(3n) .card-art { background: linear-gradient(135deg,#301e32,#b45581 52%,#ffb680); }
.card-art .visualizer { min-height: 178px; padding: 24px 20px 32px; gap: 4px; }
.card-art .visualizer span { width: 6px; opacity: .9; }
.card-art .visualizer i { bottom: 31%; left: 5%; right: 5%; }
.card-index { position: absolute; right: 14px; top: 12px; color: rgba(255,255,255,.72); font: 700 11px var(--sans); letter-spacing: .1em; }
.card-body { padding: 18px 18px 20px; }
.card-body > span { color: #a43b5d; font: 700 10px var(--sans); letter-spacing: .15em; }
.card h2 { margin: 10px 0; font: 700 24px/1.04 var(--serif); letter-spacing: -.035em; }
.card p { min-height: 74px; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card b { font-size: 12px; }
.empty-state { padding: 34px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }

.crumb { max-width: 1440px; margin: 0 auto; padding: 38px clamp(20px,5vw,84px) 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.mureka-app main:not(.library) { padding-bottom: 60px; }
.hero { max-width: 1440px; margin: 0 auto; min-height: 540px; padding: 56px clamp(20px,5vw,84px) 70px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr); align-items: center; gap: clamp(30px,6vw,90px); }
.hero .lead { max-width: 720px; margin: 26px 0 0; color: #4d4a45; font-size: 20px; line-height: 1.65; }
.article-art { min-height: 420px; }
.article-art .disc { position: absolute; right: 28px; bottom: 28px; }
.disc { width: 120px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle,#fbf3e8 0 4%,#141318 4.5% 12%,#050507 12.5% 60%,#f7b773 60.5% 61.5%,#09090d 62%); box-shadow: 0 18px 34px rgba(0,0,0,.24); }
.disc span { position: absolute; margin-top: 86px; color: rgba(255,255,255,.75); font-size: 8px; letter-spacing: .14em; white-space: nowrap; }
.disc button { width: 36px; height: 36px; margin: 0; border: 0; border-radius: 50%; background: var(--mint); color: var(--ink); padding: 0; }
.disc.spin { animation: turn 8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.wave { border-block: 1px solid var(--line); color: var(--accent-2); text-align: center; padding: 20px; overflow: hidden; letter-spacing: 7px; opacity: .8; }
.quick-answer { max-width: 860px; margin: 0 auto; padding: 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.46); }
.quick-answer h2 { margin: 4px 0 12px; }
.takeaways, .section-bullets { margin: 18px 0 0; padding-left: 20px; color: #4d4a45; line-height: 1.8; }
.takeaways li, .section-bullets li { margin: 5px 0; }
article { max-width: 900px; margin: 0 auto; padding: 72px clamp(20px,5vw,84px); }
article section { margin-bottom: 72px; }
article h2 { margin: 0 0 16px; font: 700 clamp(30px,4vw,48px)/1.04 var(--serif); letter-spacing: -.045em; }
article h3 { margin: 28px 0 8px; font-size: 18px; }
article p { margin: 0; color: #514d47; font-size: 17px; line-height: 1.85; }
.subsection { padding-top: 2px; }
.prompt { padding: 24px; border: 1px solid #d8c6ce; border-radius: 18px; background: #eee2e7; }
.prompt pre { margin: 12px 0 0; white-space: pre-wrap; color: #3c2531; font: 15px/1.75 var(--sans); }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 700; }
.faq details p { padding-top: 10px; }
.related, .keyword-map { border-top: 1px solid var(--line); padding-top: 28px; }
.article-figure { margin: -22px 0 72px; }
.article-figure img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 48px rgba(23,23,23,.12); }
.article-figure figcaption { margin-top: 10px; color: var(--muted); font: 700 10px var(--sans); letter-spacing: .16em; }
.anchor-map { border-top: 1px solid var(--line); padding-top: 28px; }
.anchor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.anchor-grid a { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.36); color: var(--ink); font-weight: 700; line-height: 1.35; }
.anchor-grid a span { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.anchor-grid a:hover { border-color: var(--ink); transform: translateY(-1px); }
.related a { display: inline-block; margin: 5px 6px 0 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.related a:hover { border-color: var(--ink); color: var(--ink); }
.keyword-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-chips span { padding: 8px 12px; border-radius: 999px; background: var(--paper-deep); color: #5c5750; font-size: 12px; }

footer { border-top: 1px solid var(--line); padding: 26px clamp(20px,5vw,84px); display: flex; justify-content: space-between; color: var(--muted); }
footer a { color: var(--ink); font-weight: 700; }
.skip-link { position: absolute; left: -9999px; top: 12px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { left: 12px; }
.mureka-app button:focus-visible, .mureka-app a:focus-visible, .mureka-app summary:focus-visible, .mureka-app input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }

@media (max-width: 980px) {
  .library-hero, .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 330px; }
  .library-browse { grid-template-columns: 1fr; }
  .category-rail { position: static; padding: 18px; }
  .category-rail-head > p:last-child { max-width: 620px; }
  .filters { grid-template-columns: repeat(4,minmax(150px,1fr)); overflow-x: auto; padding-bottom: 4px; }
  .library-controls { align-items: stretch; flex-direction: column; }
  .search-box { max-width: 420px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .mureka-app header { height: 66px; }
  .mureka-app nav a:not(.cta) { display: none; }
  .cta { padding: 10px 13px; font-size: 12px; }
  .library-hero { padding-top: 62px; }
  .library h1, .hero h1 { font-size: 58px; }
  .policy-links { grid-template-columns: 1fr; }
  .category-rail { margin-inline: -4px; }
  .category-rail-head { display: none; }
  .filters { grid-template-columns: repeat(8, minmax(142px, 1fr)); }
  .filters button { min-height: 58px; }
  .filters button small { display: none; }
  .cards { grid-template-columns: 1fr; }
  .anchor-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 38px; }
  .hero-art { min-height: 300px; }
  .article-art .disc { right: 20px; bottom: 20px; }
  .visualizer { gap: 4px; }
  .visualizer span { width: 6px; }
  article { padding-top: 52px; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}
