/**
 * FORMA — Base Styles
 * Reset, global defaults, utility classes
 * ─────────────────────────────────────────
 */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.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;
}

/* ── Utility: Visuals ── */
.u-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

.u-divider--heavy {
  height: 2px;
  background: var(--color-ink);
}

.u-divider--accent {
  height: 2px;
  background: var(--color-primary);
}

/* ── Utility: Typography ── */
.u-font-display  { font-family: var(--font-display); }
.u-font-mono     { font-family: var(--font-mono); }
.u-text-muted    { color: var(--color-muted); }
.u-text-accent   { color: var(--color-primary); }
.u-text-upper    { text-transform: uppercase; letter-spacing: .14em; }
.u-text-balance  { text-wrap: balance; }

/* ── Utility: Layout ── */
.u-flex          { display: flex; }
.u-flex-col      { display: flex; flex-direction: column; }
.u-items-center  { align-items: center; }
.u-justify-between { justify-content: space-between; }
.u-gap-2         { gap: var(--space-2); }
.u-gap-4         { gap: var(--space-4); }
.u-gap-6         { gap: var(--space-6); }
.u-wrap          { flex-wrap: wrap; }

/* ── Utility: Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.badge--ats      { background: #dcfce7; color: #166534; }
.badge--html     { background: #dbeafe; color: #1e40af; }
.badge--css      { background: #fef9c3; color: #854d0e; }
.badge--dark     { background: #1a1a1a; color: #e0e0e0; }
.badge--gold     { background: #fffbeb; color: #92400e; }
.badge--ghost    {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.anim-fade-up { animation: fadeUp .6s ease both; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }
.anim-delay-4 { animation-delay: .4s; }
.anim-delay-5 { animation-delay: .5s; }