:root {
  --ivory: #f3f6f1;
  --paper: #fffefb;
  --ink: #1f2a24;
  --muted: #6f6a61;
  --plum: #714764;
  --deep-plum: #27212c;
  --jade: #2f5d50;
  --rose: #d88291;
  --gold: #e4b951;
  --sky: #b9d8d0;
  --line: rgba(31, 42, 36, 0.16);
}

/* 2026-09-07 ChiFlow palette: ivory foundation with amethyst accents. */
:root {
  --ivory: #fffaf2;
  --paper: #fffdf8;
  --ink: #2d2431;
  --muted: #6b6269;
  --plum: #704b68;
  --deep-plum: #4f3349;
  --jade: #42665d;
  --rose: #c98292;
  --gold: #b48742;
  --sky: #ded0e6;
  --line: rgba(79, 51, 73, 0.16);
}
body { background: var(--ivory); }
.kicker { color: var(--plum); }
.hero { background: var(--ivory); }
.ritual-board { background: #eee5f1; border-color: rgba(79, 51, 73, 0.22); }
.button.primary { background: var(--plum); border-color: var(--plum); }
.button.secondary { background: var(--paper); border-color: var(--plum); color: var(--deep-plum); }
.band.soft { background: #eee7f2; }
.status { background: #eee7f2; color: var(--deep-plum); }
.offer.featured { background: var(--deep-plum); }
.footer { background: var(--deep-plum); }
.compact-hero { padding-top: 42px; padding-bottom: 34px; min-height: calc(100vh - 72px); }
.compact-hero h1 { font-size: clamp(42px, 5.2vw, 68px); }
.compact-hero .ritual-board img { max-height: 470px; }
@media (max-width: 900px) {
  .compact-hero { min-height: 0; }
  .compact-hero .ritual-board img { max-height: 520px; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(247, 241, 231, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav { max-width: 1180px; margin: 0 auto; padding: 18px 22px; display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 26px; color: var(--deep-plum); }
.brand small { display: block; margin-top: -7px; color: var(--muted); font-family: Inter, sans-serif; font-size: 11px; letter-spacing: 0.08em; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--plum); }
.hero { max-width: 1180px; margin: 0 auto; padding: 72px 22px 46px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr); gap: 46px; align-items: center; }
.kicker { color: var(--jade); font-weight: 700; font-size: 14px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; color: var(--deep-plum); }
h1 { font-size: clamp(42px, 6vw, 76px); margin: 14px 0 22px; }
h2 { font-size: clamp(30px, 4vw, 48px); margin: 0 0 18px; }
h3 { font-size: 24px; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 19px; max-width: 670px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--deep-plum); font-weight: 750; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--deep-plum); color: #fff; }
.button.gold { background: var(--gold); border-color: var(--gold); color: #22180c; }
.button.ghost { background: transparent; }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #27776a; outline-offset: 3px; }
.ritual-board { background: #efe4d4; border: 1px solid rgba(79, 58, 103, 0.2); padding: 18px; box-shadow: 0 26px 70px rgba(38, 24, 51, 0.16); }
.ritual-board img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e9dfd2; }
.caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; color: var(--muted); font-size: 13px; }
.band { border-top: 1px solid var(--line); padding: 64px 22px; }
.band.dark { background: var(--deep-plum); color: #f7f1e7; }
.band.dark h2, .band.dark h3 { color: #fff7e9; }
.inner { max-width: 1180px; margin: 0 auto; }
.section-head { max-width: 780px; margin-bottom: 32px; }
.grid-5, .grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intention, .product, .note, .quiz-panel { background: var(--paper); border: 1px solid var(--line); padding: 22px; }
.intention { min-height: 230px; }
.intention strong, .price { color: var(--plum); }
.product { display: flex; flex-direction: column; gap: 16px; }
.product img { aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid rgba(31, 42, 36, 0.1); background: #eadfce; }
.product p, .note p { color: var(--muted); margin: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: 13px; }
.story-columns { columns: 2 330px; column-gap: 44px; color: var(--muted); }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fffaf2; padding: 14px 16px; color: var(--ink); font: inherit; cursor: pointer; }
.quiz-options button:hover { border-color: var(--plum); background: #f2e9ef; }
.result-box { margin-top: 18px; border-left: 4px solid var(--gold); padding: 16px; background: #fff7e8; color: var(--muted); }
.status { display:inline-flex; align-items:center; gap:7px; width:max-content; padding:6px 10px; background:#e4f0eb; color:#22584c; font-size:12px; font-weight:800; text-transform:uppercase; }
.product .actions { margin-top:auto; display:grid; }
.product .button { border-radius:6px; }
.product-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:13px; color:var(--muted); }
.product-meta strong { display:block; color:var(--ink); }
.journey { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.journey article { background:var(--paper); padding:28px; }
.step { color:var(--jade); font-weight:800; font-size:13px; text-transform:uppercase; }
.offer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.offer { padding:28px; border:1px solid var(--line); background:var(--paper); }
.offer.featured { background:#243d36; color:#f4f8f5; }
.offer.featured h3,.offer.featured .price { color:white; }
.offer ul { padding-left:20px; color:var(--muted); }
.offer.featured ul { color:#d7e2de; }
.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.choice { min-height:62px; border:1px solid var(--line); background:var(--paper); padding:12px; text-align:left; cursor:pointer; font:inherit; }
.choice[aria-pressed="true"] { border-color:var(--jade); background:#dcece7; box-shadow:inset 0 0 0 1px var(--jade); }
.quiz-stage { display:none; }
.quiz-stage.active { display:block; }
.progress { height:5px; background:#d8ded9; margin:0 0 24px; }
.progress span { display:block; height:100%; background:var(--rose); transition:width .25s ease; }
.result-layout { display:grid; grid-template-columns:180px 1fr; gap:22px; align-items:center; }
.result-layout img { aspect-ratio:1; object-fit:cover; }
.trust-strip { display:flex; flex-wrap:wrap; gap:12px 28px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); font-size:13px; }
.profile-story { display:grid; grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr); gap:48px; align-items:center; }
.profile-story img { width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center top; }
.principles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.principles article { padding:24px; border-top:3px solid var(--rose); background:var(--paper); }
.small { font-size:13px; color:var(--muted); }
.notice { padding:16px 18px; border:1px solid #d6c17c; background:#fff9df; color:#51451e; }
.library-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.library-search { max-width:720px; margin:28px 0 18px; }
.library-search label { display:block; margin-bottom:8px; font-size:13px; font-weight:750; color:var(--muted); }
.library-search input { width:100%; min-height:52px; padding:0 16px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); font:inherit; box-shadow:0 8px 24px rgba(31,42,36,.05); }
.library-search input:focus { outline:3px solid rgba(116,71,104,.18); border-color:var(--plum); }
.filter-row { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.filter-button { min-height:40px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); font:650 13px/1 Inter,ui-sans-serif,system-ui,sans-serif; cursor:pointer; }
.filter-button:hover,.filter-button.active { background:#dcece7; border-color:var(--jade); color:var(--deep-plum); }
.actions.center { justify-content:center; margin-top:30px; }
.story-card { display:flex; flex-direction:column; min-height:260px; padding:26px; background:var(--paper); border:1px solid var(--line); }
.story-card h3 { margin-top:12px; }
.story-card p { color:var(--muted); }
.story-card .quiet-link { margin-top:auto; color:var(--jade); font-weight:750; }
.article-shell { max-width:1120px; margin:0 auto; padding:64px 22px; display:grid; grid-template-columns:minmax(0,760px) 260px; gap:64px; align-items:start; }
.article h1 { font-size:clamp(40px,5vw,68px); }
.article h2 { margin-top:52px; font-size:34px; }
.article h3 { margin-top:30px; }
.article p,.article li { font-size:17px; color:#414a45; }
.article a { color:#146b5b; text-decoration:underline; text-underline-offset:3px; }
.quick-answer { padding:24px; margin:30px 0; background:#dfeee9; border-left:5px solid var(--jade); }
.quick-answer h2 { margin:0 0 10px; font-size:24px; }
.comparison { width:100%; border-collapse:collapse; margin:24px 0; }
.comparison th,.comparison td { padding:13px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.article-aside { position:sticky; top:110px; padding:22px; background:var(--paper); border:1px solid var(--line); }
.article-aside a { display:block; padding:8px 0; color:var(--muted); }
.article-aside strong { color:var(--deep-plum); }
.source-list { font-size:14px; padding:20px; background:#eef0ec; }
.source-list li { font-size:14px; }
.footer { padding: 46px 22px; background: #18111f; color: #d8d0c7; }
.footer .inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fineprint { font-size: 13px; color: #a59a91; max-width: 760px; }
@media (max-width: 900px) {
  .hero, .grid-5, .grid-3, .grid-2, .journey, .offer-grid, .profile-story, .principles, .library-grid, .article-shell { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
}
@media (max-width:560px) {
  h1 { font-size:40px; }
  .hero,.band { padding-left:18px; padding-right:18px; }
  .choice-grid,.result-layout { grid-template-columns:1fr; }
  .nav-links { gap:10px 14px; }
  .button { width:100%; }
  .article-shell { padding-top:36px; }
  .article-aside { position:static; }
  .comparison { display:block; overflow-x:auto; }
}
