/* Witchcraft page (approved mock-up "Witchcraft Apothecary" v11, owner 12 Oct), scoped under .scw */
.scw {
  --bg: #FBF8F6; --card: #ffffff; --ink: #2A1B36; --muted: #655A70; --line: #ECE4EC; --accent: #4B40B8; --soft: #F4EFF2;
  --plum: #21152C; --plum2: #2E1E3D; --on-plum: #F3EEF6; --on-plum-muted: #C9BCD6; --gold: #E9C46A;
  --display: 'Fraunces', Georgia, serif; --body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
.scw * { box-sizing: border-box; }
.scw { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; }
.scw-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; padding-block: 20px 72px; display: flex; flex-direction: column; gap: 40px; }
.scw .scw-note { background: #ECE9FB; border-radius: 14px; padding: 14px 18px; font-size: 14px; line-height: 1.55; }
.scw .note b { color: var(--accent); }
.scw .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.scw h1, .scw h2, .scw h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
.scw h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; }
.scw h1 em, .scw h2 em { font-style: italic; color: var(--accent); }
.scw h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.scw .lead { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 60ch; margin: 0; }
.scw .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 820px) {.scw .hero { grid-template-columns: minmax(0, 1fr); }}
.scw .hero-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.scw .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scw .chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 14px var(--body); color: var(--ink); text-decoration: none; }
.scw .hero-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scw .hero-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; background: var(--soft); }
.scw .maker { background: var(--plum); color: var(--on-plum); border-radius: 28px; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.scw .maker .eyebrow { color: var(--gold); }
.scw .maker h2 em { color: var(--gold); }
.scw .maker .lead { color: var(--on-plum-muted); }
.scw .tabs { display: flex; gap: 6px; background: var(--plum2); border-radius: 999px; padding: 5px; align-self: flex-start; flex-wrap: wrap; }
.scw .tab { border: 0; background: transparent; color: var(--on-plum-muted); font: 600 15px var(--body); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.scw .tab[aria-selected="true"] { background: var(--on-plum); color: var(--plum); }
.scw .tab:focus-visible, .scw .ing:focus-visible, .scw .want:focus-visible, .scw .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.scw .mix { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) {.scw .mix { grid-template-columns: minmax(0, 1fr); }}
.scw .shelf { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.scw .shelf h3 { font-size: 18px; font-family: var(--body); font-weight: 700; color: var(--on-plum); }
.scw .shelf h3 span { font-weight: 500; color: var(--on-plum-muted); font-size: 14px; margin-left: 6px; }
.scw .ings { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.scw .ing { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: var(--plum2); color: var(--on-plum); font: 600 14px var(--body); cursor: pointer; text-align: left; min-height: 48px; }
.scw .ing i { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.scw .ing img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.scw .ing[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.scw .ing:disabled { opacity: .4; cursor: default; }
.scw .pot { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; min-width: 0; }
.scw .bottle { width: 190px; height: 240px; position: relative; }
.scw .bottle svg { width: 100%; height: 100%; display: block; }
.scw #liquid { transition: fill .6s ease; }
.scw .bubble { animation: rise 2.6s ease-in infinite; opacity: 0; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(-70px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {.scw .bubble { animation: none; }
.scw #liquid { transition: none; }}
.scw .inpot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 32px; }
.scw .inpot span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--plum2); color: var(--on-plum); }
.scw .hint { color: var(--on-plum-muted); font-size: 14px; margin: 0; }
.scw .btn { border: 0; border-radius: 999px; padding: 15px 24px; font: 700 15px var(--body); cursor: pointer; }
.scw .btn-gold { background: var(--gold); color: var(--plum); }
.scw .btn-gold:disabled { opacity: .45; cursor: default; }
.scw .btn-ink { background: var(--ink); color: #fff; }
.scw .btn-line { background: transparent; color: var(--on-plum); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.scw .result { background: var(--card); color: var(--ink); border-radius: 22px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) {.scw .result { grid-template-columns: minmax(0, 1fr); }}
.scw .result h3 { font-size: 30px; }
.scw .result .what { color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.scw .steps { margin: 12px 0 0; padding-left: 20px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }
.scw .fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.scw .basket { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.scw .basket b.t { font-family: var(--display); font-weight: 500; font-size: 19px; }
.scw .line { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.scw .line img, .scw .line i { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.scw .line div { flex-grow: 1; min-width: 0; font-size: 15px; }
.scw .line small { display: block; color: var(--muted); font-size: 13px; }
.scw .line span { font-weight: 700; font-variant-numeric: tabular-nums; }
.scw .total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.scw .wants { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.scw .wgroup { display: flex; flex-direction: column; gap: 8px; }
.scw .wgroup b { color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.scw .wgroup > div { display: flex; flex-wrap: wrap; gap: 6px; }
.scw .want { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: var(--plum2); color: var(--on-plum); font: 600 15px var(--body); cursor: pointer; }
.scw .want i { width: 14px; height: 14px; border-radius: 50%; }
.scw .want[aria-pressed="true"] { background: var(--on-plum); color: var(--plum); }
.scw .row { display: flex; flex-direction: column; gap: 16px; }
.scw .row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.scw .row-head a { color: var(--accent); font-weight: 600; text-decoration: none; }
.scw .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) {.scw .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
.scw .card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.scw .ph { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px; }
.scw .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scw .ph.stripe { background: repeating-linear-gradient(135deg, #EFE7F2 0 14px, #E7DDEC 14px 28px); }
.scw .cardrow { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.scw .cardrow b { white-space: nowrap; }
.scw .card small { color: var(--muted); font-size: 13px; }
.scw .disc { font-size: 13px; color: var(--muted); text-align: center; }
.scw .ings { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.scw .ing span { display: flex; flex-direction: column; min-width: 0; }
.scw .ing span b { font-weight: 600; }
.scw .ing span small { font-weight: 500; font-size: 12px; color: var(--on-plum-muted); }
.scw .wishbox { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 340px; font-size: 13px; color: var(--on-plum-muted); text-align: left; }
.scw .wishbox input { height: 48px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: var(--plum2); color: var(--on-plum); font: italic 18px var(--display); padding: 0 14px; }
.scw .wishbox input:focus { outline: 2px solid var(--gold); }
.scw .wishq { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--accent); margin: 10px 0 0; }
.scw .bottle { width: 200px; height: 260px; }
.scw .pouch { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--soft); border-radius: 22px; padding: 18px; }
.scw .pouch img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; }
.scw .pouch h3 { font-size: 26px; margin: 6px 0; }
.scw .pouch p { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 560px) {.scw .pouch { grid-template-columns: minmax(0, 1fr); }}

.scw a.card { color: inherit; text-decoration: none; }
.scw .scl-crumb { padding-inline: 0; }
.scw-wrap { padding-block: 8px 72px; }
