/* Content Art Studio — Base Styles */

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

/* Canvas container: renders at full design dimensions */
.art-canvas {
  position: relative;
  overflow: hidden;
  /* Actual dimensions set by each canvas component */
}

/* Safe zone: visual guide (hidden in export, visible in dev) */
.art-canvas .safe-zone {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
}

/* Preview scaling: fit canvas in viewport */
.art-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #1a1a1a;
  padding: 24px;
}

.art-preview .art-canvas {
  transform-origin: top center;
  /* Scale is set dynamically via JS or CSS calc */
}

/* Typography scale classes for social media (×3.15 factor) */
/* These are the DESIGN dimensions (1080px canvas) */
/* Headlines: min 64px → ~20px on mobile */
/* Body: min 48px → ~15px on mobile */
/* Absolute min: 28px → ~9px on mobile */

.text-headline {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight, 700);
  font-size: 72px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-headline-sm {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight, 700);
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.text-subheadline {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight, 400);
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.5;
  letter-spacing: 0em;
}

.text-body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 0em;
}

.text-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.text-overline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-data {
  font-family: var(--font-mono, var(--font-display));
  font-weight: 700;
  font-size: 96px;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.text-data-sm {
  font-family: var(--font-mono, var(--font-display));
  font-weight: 600;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Color utilities */
.color-primary { color: var(--brand-primary); }
.color-accent { color: var(--brand-accent); }
.color-text { color: var(--brand-text); }
.color-bg { color: var(--brand-bg); }

.bg-primary { background-color: var(--brand-primary); }
.bg-accent { background-color: var(--brand-accent); }
.bg-dark { background-color: var(--brand-bg-dark); }
.bg-light { background-color: var(--brand-bg-light); }

/* Layout utilities for art composition */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.absolute-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }
