/* ============================================================
   Casel Marketing — Reset + Base (R6)
   Typography roles moved to typography.css. This file holds only
   the reset, containers, buttons, and shared atoms (brand-dot,
   chamber-line).
   ============================================================ */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--color-chamber-navy);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-fg);
  background: var(--color-chamber-navy);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---------- Containers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: var(--fs-cta);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.5rem;
  min-height: 48px;
  transition: transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(233, 69, 96, 0.4);
}
.btn-primary:hover {
  background: var(--color-red-700);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px rgba(233, 69, 96, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border: 1px solid var(--color-border-strong);
}
.btn-ghost:hover {
  color: var(--color-fg);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

/* small inline link-button (footer meta etc.) */
.link-quiet {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
.link-quiet:hover {
  color: var(--color-fg);
}

/* ---------- Brand dot — static (R6 locked: only the Ask Alex pill pulses) ---------- */

.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 12px var(--color-red-glow);
  vertical-align: middle;
}

/* ---------- Chamber line motif (§05 + footer-meta only) ---------- */

.chamber-line {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 280px;
}
.chamber-line::before,
.chamber-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(233, 69, 96, 0.35),
    transparent
  );
}
.chamber-line__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 8px var(--color-red-glow);
  margin-inline: 0.5rem;
  flex-shrink: 0;
}
