/* Kareeb interactive guides — shared styles (no build step). */
:root {
  --plum: #3B2A4A; --plum-deep: #2A1B36; --plum-light: #6B5780;
  --sand: #F4EDE3; --sand-dark: #E5DACA;
  --ink: #1F1B24; --ink-soft: #5C5663;
  --cream: #FBF7F1; --cream-warm: #F8F2E8;
  --accent: #C8945A; --accent-deep: #A67742;
  --sage: #5E8C6A; --stop: #B5534B;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(42,27,54,.06), 0 10px 30px rgba(42,27,54,.08);
  --shadow-lg: 0 2px 4px rgba(42,27,54,.06), 0 24px 60px rgba(42,27,54,.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  background-image: radial-gradient(1200px 600px at 100% -10%, rgba(200,148,90,.10), transparent 60%),
                    radial-gradient(900px 500px at -10% 10%, rgba(107,87,128,.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif { font-family: 'Fraunces', Georgia, serif; }
.hi { font-family: 'Noto Sans Devanagari', 'Inter', sans-serif; }
.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
nav.top {
  padding: 16px 0;
  background: rgba(251,247,241,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-dark);
  position: sticky; top: 0; z-index: 20;
}
nav.top .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
nav.top .brand { font-family: 'Fraunces', serif; font-size: 22px; color: var(--plum); text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; }
nav.top .brand .lat { font-size: 15px; opacity: .6; }
nav.top .links { display: flex; gap: 2px; }
nav.top .links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 7px 12px; border-radius: 999px; transition: background .2s, color .2s; }
nav.top .links a:hover { background: rgba(59,42,74,.06); color: var(--plum); }

/* Header */
header.hero { padding: 36px 0 8px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-deep); font-weight: 600; }
.tag::before { content: ''; width: 18px; height: 1.5px; background: var(--accent); }
h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(30px, 7.4vw, 46px); line-height: 1.12; letter-spacing: -.5px; margin-top: 12px; color: var(--ink); }
h1 em { font-style: italic; color: var(--plum-light); }
.lead { font-size: 17px; color: var(--ink-soft); margin-top: 12px; max-width: 600px; }
.disclaimer { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--ink-soft); background: var(--sand); border: 1px solid var(--sand-dark); padding: 6px 12px; border-radius: 999px; }
.disclaimer svg { flex: none; }

h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 26px; letter-spacing: -.2px; margin: 44px 0 12px; }
section p, section li { font-size: 16px; }
section p + p { margin-top: 12px; }

/* Card / stage */
.card {
  background: linear-gradient(180deg, #fff 0%, var(--cream-warm) 100%);
  border: 1px solid var(--sand-dark);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  margin-top: 24px;
}
@media (min-width: 640px) { .card { padding: 28px; } }

/* Buttons */
.btn {
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--sand-dark);
  background: #fff; color: var(--plum); cursor: pointer;
  box-shadow: 0 1px 2px rgba(42,27,54,.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(42,27,54,.12); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 1px 2px rgba(42,27,54,.08); }
.btn:focus-visible, .dot:focus-visible, .chip:focus-visible, .lvl:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: linear-gradient(180deg, #4A3759, var(--plum)); color: var(--cream); border-color: transparent; }
.btn.primary:hover { box-shadow: 0 8px 22px rgba(59,42,74,.32); }
.btn.ghost { background: transparent; box-shadow: none; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-soft); user-select: none; min-height: 44px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--sand-dark); position: relative; transition: background .3s var(--ease); flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.switch input:checked + .track { background: var(--plum-light); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* Chips (segmented) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--sand-dark); background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .25s var(--ease); }
.chip:hover { border-color: var(--plum-light); color: var(--plum); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--plum); border-color: var(--plum); color: var(--cream); box-shadow: 0 6px 14px rgba(59,42,74,.22); }

/* Lists */
.list { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--sand-dark); border-radius: 14px; padding: 12px 14px; font-size: 15.5px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.list li:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.list .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.list.bad .ic { background: rgba(181,83,75,.12); color: var(--stop); }
.list.good .ic { background: rgba(94,140,106,.14); color: var(--sage); }

.callout { background: var(--sand); border-left: 3px solid var(--accent); padding: 16px 18px; border-radius: 12px; margin-top: 16px; }
.callout strong { color: var(--plum); }

/* CTA */
.cta {
  margin: 56px 0 24px; padding: 28px 22px; border-radius: 24px; color: var(--cream);
  background: radial-gradient(600px 300px at 100% 0%, rgba(200,148,90,.35), transparent 60%), linear-gradient(160deg, #4A3759, var(--plum-deep));
  box-shadow: var(--shadow-lg);
}
.cta h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px; line-height: 1.2; }
.cta p { color: var(--sand-dark); margin-top: 8px; font-size: 15.5px; }
.cta .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cta a { text-decoration: none; }
.cta .btn.gold { background: linear-gradient(180deg, #D4A36D, var(--accent)); color: #2A1B36; border-color: transparent; }
.cta .btn.outline { background: transparent; color: var(--cream); border-color: rgba(251,247,241,.35); }

footer.site { padding: 40px 0 56px; border-top: 1px solid var(--sand-dark); color: var(--ink-soft); font-size: 13px; margin-top: 48px; text-align: center; line-height: 2; }
footer.site a { color: var(--ink-soft); text-underline-offset: 3px; }
footer.site a:hover { color: var(--plum); }

@media (max-width: 420px) {
  nav.top .links a.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
