/* CraftedAura — global reset, tokens, typography (full-width shell) */

:root {
  --ca-primary: #4f46e5;
  --ca-primary-light: #6366f1;
  --ca-primary-dark: #4338ca;
  --ca-secondary: #06b6d4;
  --ca-accent: #06b6d4;

  --ca-bg: #ffffff;
  --ca-surface: #ffffff;
  --ca-surface-2: #f3f4f6;
  --ca-surface-glass: rgba(255, 255, 255, 0.82);
  --ca-text: #111827;
  --ca-muted: #6b7280;
  --ca-border: #e5e7eb;

  --ca-radius: 16px;
  --ca-radius-md: 12px;
  --ca-radius-sm: 10px;
  --ca-radius-pill: 9999px;

  --ca-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --ca-shadow: 0 4px 20px rgb(0 0 0 / 0.08);
  --ca-shadow-lg: 0 8px 30px rgb(0 0 0 / 0.1);
  --ca-shadow-xl: 0 20px 40px rgb(0 0 0 / 0.12);
  --ca-shadow-hover: 0 24px 48px rgb(0 0 0 / 0.14);

  --ca-focus: 0 0 0 3px color-mix(in srgb, var(--ca-primary) 30%, transparent);

  --ca-container: 1200px;
  --ca-gutter: 20px;
  --ca-section-y: 2.5rem;
  --ca-space-1: 0.5rem;
  --ca-space-2: 1rem;
  --ca-space-3: 1.5rem;
  --ca-space-4: 2.5rem;
  --ca-space-5: 3.5rem;
  --ca-transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

html.dark {
  --ca-bg: #0f172a;
  --ca-surface: #1e293b;
  --ca-surface-2: #334155;
  --ca-surface-glass: rgba(30, 41, 59, 0.88);
  --ca-text: #e5e7eb;
  --ca-muted: #9ca3af;
  --ca-border: #334155;
  --ca-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.35);
  --ca-shadow: 0 4px 20px rgb(0 0 0 / 0.35);
  --ca-shadow-lg: 0 8px 30px rgb(0 0 0 / 0.4);
  --ca-shadow-xl: 0 20px 40px rgb(0 0 0 / 0.45);
  --ca-shadow-hover: 0 24px 48px rgb(0 0 0 / 0.5);
  --ca-focus: 0 0 0 3px color-mix(in srgb, var(--ca-primary-light) 35%, transparent);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--ca-bg);
  color: var(--ca-text);
  line-height: 1.65;
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Generic full-width wrappers (use .ca-container inside when you need a max-width column) */
.container,
.wrapper,
.main {
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--ca-transition);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  border-radius: var(--ca-radius-sm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Inter", inherit;
  line-height: 1.2;
  margin: 0 0 var(--ca-space-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ca-text);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin: 0 0 var(--ca-space-2);
  color: var(--ca-muted);
}

ul, ol {
  margin: 0 0 var(--ca-space-2);
  padding-left: 1.35rem;
}

li { margin-bottom: 0.35em; }

input, select, textarea, button {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ca-focus);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ca-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--ca-border);
  border-radius: 5px;
  border: 2px solid var(--ca-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ca-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
