/* ═══════════════════════════════════════════════════════
   BASE: Reset, typography, global defaults
   ═══════════════════════════════════════════════════════ */

/* ── Reset & box model ── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ── Body ── */
body {
  font-family: var(--sc-font);
  font-size: 14px;
  line-height: var(--sc-leading);
  color: var(--sc-text);
  background: var(--sc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main.container,
main.container-fluid {
  flex: 1;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--sc-leading-tight);
  color: var(--sc-text);
  letter-spacing: -0.01em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.sc-display {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ── Links ── */
a {
  color: var(--sc-accent);
  text-decoration: none;
  transition: color var(--sc-duration) var(--sc-ease);
}

a:hover {
  color: var(--sc-accent-hover);
}

/* ── Selection ── */
::selection {
  background: rgba(var(--sc-accent-rgb), 0.15);
  color: var(--sc-text);
}

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--sc-border-strong);
  border-radius: var(--sc-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sc-text-muted);
}

/* ── Small utility text ── */
.sc-text-xs { font-size: 0.7rem; }
.sc-text-sm { font-size: 0.8rem; }
.sc-text-base { font-size: 0.875rem; }
.sc-text-lg { font-size: 1.05rem; }

.sc-text-muted { color: var(--sc-text-secondary) !important; }
.sc-text-hint { color: var(--sc-text-muted) !important; }
.sc-text-accent { color: var(--sc-accent) !important; }
.sc-text-danger { color: var(--sc-danger) !important; }
.sc-text-price { font-weight: 800; letter-spacing: -0.02em; }

.sc-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sc-text-muted);
}

/* ── Smooth page-level transitions ── */
@keyframes sc-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sc-animate-in {
  animation: sc-fade-in 0.4s var(--sc-ease) both;
}

/* ── Grain overlay (subtle texture) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
