/* Auto Localize — "Spellbook" theme for every page of the site (loaded after /assets/site.css).
   The app's own identity: a deep teal night, the gold of the wand, letters of many scripts in the air. */
:root {
  --night: #061a1f; --night-2: #0a252c; --deep: #0d313a; --card: #0f2d35; --card-2: #133842;
  --teal: #2bb3a6; --mint: #7fe6cf; --gold: #f6c45c; --amber: #f0963c; --rose: #ff7a8a; --violet: #9b8cff;
  --bg: var(--night); --bg-soft: var(--night-2); --bg-card: var(--card); --text: #eef8f6; --text-2: #b4d2cd; --text-3: #7fa29c;
  --line: rgba(127, 230, 207, .12); --nav-bg: rgba(6, 26, 31, .72); --accent: var(--teal); --accent-2: var(--gold); --accent-ink: #04201c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 40px 90px -30px rgba(0,0,0,.85);
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
body {
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(43,179,166,.20), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(240,150,60,.10), transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3, .display, .h1, .h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
.display { font-weight: 800; }
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; font-weight: 800; color: var(--mint); }
.grad-text, .gold-text { background: linear-gradient(100deg, #ffe39a, var(--gold) 40%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.teal-text { background: linear-gradient(100deg, var(--mint), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { border-bottom: 1px solid var(--line); }
.brand span { font-family: var(--font-display); font-weight: 800; }
.nav-cta, .btn-primary { background: linear-gradient(100deg, #ffe39a, var(--gold) 45%, var(--amber)); color: #2a1a02 !important; box-shadow: 0 10px 26px -10px rgba(246,196,92,.75); }
.btn-ghost { color: var(--mint); }
.soft { background: color-mix(in srgb, var(--night-2) 80%, transparent); }
.card, .faq details, .contact-form, .guide { background: var(--card); border-color: var(--line); }
.card p, .guide p { color: var(--text-2); }
.page-head .h1 { font-size: clamp(36px, 5vw, 60px); }
.prose h2 { font-family: var(--font-display); }
.prose a { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(127,230,207,.35); text-underline-offset: 3px; }
.prose code { background: rgba(127,230,207,.08); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose .callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 18px; }
.prose figure { margin: 22px 0; }
.prose figure img, .prose img.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); width: 100%; height: auto; }
.prose figcaption { color: var(--text-3); font-size: 14px; margin-top: 8px; text-align: center; }
.prose .al-numbered { counter-reset: step; list-style: none; padding: 0; }
.prose .al-numbered > li { counter-increment: step; position: relative; padding-left: 46px; margin: 14px 0; }
.prose .al-numbered > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #2a1a02; background: linear-gradient(140deg, #ffe39a, var(--gold)); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { color: var(--mint); font-weight: 700; }
.prose kbd { font-family: var(--font); font-size: .85em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; background: var(--card-2); }
.toc a.active { color: var(--gold); }
.footer { background: var(--night-2); border-top: 1px solid var(--line); }
::selection { background: rgba(246,196,92,.35); }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.guide { display: block; border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--text); transition: transform .2s, border-color .2s; }
.guide:hover { transform: translateY(-2px); border-color: rgba(246,196,92,.45); text-decoration: none; }
.guide h3 { font-size: 18px; margin: 0 0 6px; }
.guide span { color: var(--gold); font-weight: 700; font-size: 14px; }
