/*
  StackCMS Base Styles
  Shared across platform marketing + tenant public + tenant admin.
  Keep this file small and predictable (no framework-y magic).
*/

:root {
  --stack-maxw: 1120px;
  --stack-radius: 14px;
  --stack-shadow: 0 10px 24px rgba(0,0,0,.08);
  --stack-border: rgba(0,0,0,.12);
  --stack-muted: rgba(0,0,0,.62);
}

html, body {
  height: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Container helper for marketing + misc pages (bootstrap containers still work). */
.stack-container {
  max-width: var(--stack-maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Headings (bootstrap does some of this; we just tighten defaults). */
h1, h2, h3 {
  letter-spacing: -0.015em;
}

/* Links that respect the tenant accent color when set. */
a {
  color: var(--accent, #4f46e5);
}
a:hover {
  color: var(--accent, #4338ca);
}

/* Card primitive (works alongside Bootstrap .card). */
.stack-card {
  border: 1px solid var(--stack-border);
  border-radius: var(--stack-radius);
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/* Primary button that follows tenant accent. */
.btn-accent,
.stack-btn {
  background: var(--accent, #4f46e5);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--accent, #4f46e5) 75%, #000 25%);
  border-radius: 10px;
}
.btn-accent:hover,
.stack-btn:hover {
  filter: brightness(0.95);
  color: #fff;
}

/* Small muted text helper */
.stack-muted {
  color: var(--bs-secondary-color, var(--stack-muted));
}
