/* ============================================================
   DOCHMO PORTFOLIO — base.css
   Design tokens, reset, typography scale, layout utilities
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Brand */
  --c-bg-deep: #050B17;
  --c-bg-dark: #060C14;
  --c-bg-card: #0A1630;
  --c-bg-panel: #0D1E3A;

  --c-blue-900: #0D47A1;
  --c-blue-800: #1565C0;
  --c-blue-600: #1E88E5;
  --c-blue-400: #42A5F5;
  --c-blue-200: #90CAF9;
  --c-blue-100: #BBDEFB;
  --c-blue-50: #E3F2FD;

  --c-text: #BBD9F5;
  --c-text-muted: rgba(179, 219, 255, 0.55);
  --c-text-dim: rgba(100, 181, 246, 0.45);
  --c-border: rgba(30, 136, 229, 0.12);
  --c-border-glow: rgba(66, 165, 245, 0.4);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Spacing */
  --section-pad: 6rem 0;
  --max-w: 1320px;
  --gutter: 2rem;

  /* Radius */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 14.4px;
  /* Equivalente a 90% de zoom padrão */
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg-deep);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: rgba(30, 136, 229, 0.35);
  color: #E3F2FD;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(30, 136, 229, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 136, 229, 0.55);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
}

/* ─── TYPOGRAPHY SCALE ───────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.heading-md {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

.body-md {
  font-size: 1rem;
  line-height: 1.7;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.65;
}

.caption {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-mono);
}

.italic-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* Color utilities */
.text-primary {
  color: var(--c-blue-50);
}

.text-muted {
  color: var(--c-text-muted);
}

.highlight-word {
  color: rgba(179, 219, 255, 0.85);
  font-weight: 500;
  text-shadow: 0 0 15px rgba(179, 219, 255, 0.15);
  letter-spacing: 0.02em;
}

.text-accent {
  color: var(--c-blue-400);
}

.text-dim {
  color: var(--c-text-dim);
}

.text-gradient {
  background: linear-gradient(135deg, #90CAF9 0%, #42A5F5 40%, #E3F2FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 1.25rem;
    --section-pad: 4rem 0;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm {
  gap: 0.75rem;
}

.gap-md {
  gap: 1.5rem;
}

.gap-lg {
  gap: 3rem;
}