/* css/base.css — MăBucur Studio Base Styles & Reset */
/* Requires: css/tokens.css (custom properties) */

/* ============================================================
   MODERN CSS RESET
   ============================================================ */

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   BODY DEFAULTS
   ============================================================ */

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background-color: var(--bg-primary);
  line-height: var(--line-height-normal);
  overflow-x: hidden; /* safety net — prevents horizontal scroll (DSGN-02) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile menu open state — prevents body scroll */
body.menu-open {
  overflow: hidden;
}

/* ============================================================
   HEADING STYLES (mobile-first)
   ============================================================ */

h1 {
  font-size: var(--font-size-4xl);       /* 36px on mobile */
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-heading);
  text-transform: uppercase;
}

h2 {
  font-size: var(--font-size-2xl);       /* 24px on mobile */
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-normal);
}

h3 {
  font-size: var(--font-size-xl);        /* 20px on all */
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

h5,
h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

/* ============================================================
   LINK DEFAULTS
   ============================================================ */

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

/* Container — max-width wrapper with horizontal padding */
.container {
  max-width: var(--container-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
}

/* Section — vertical rhythm spacing between page sections */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first: base → tablet (768px) → desktop (1024px)
   ============================================================ */

/* Tablet and up */
@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-5xl);     /* 48px on tablet+ */
  }

  h2 {
    font-size: var(--font-size-3xl);     /* 30px on tablet+ */
  }

  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-5xl);     /* 48px on desktop */
  }

  h2 {
    font-size: var(--font-size-3xl);     /* 30px on desktop */
  }

  :root {
    --container-padding: var(--space-8);  /* wider padding on large screens */
  }
}
