/* ============================================
   TOKENS.CSS — Design Tokens
   Nelson Medina Portfolio
   Import first, before all other stylesheets
============================================ */

:root {

  /* ==========================================
     COLOR
  =========================================== */

  --color-bg:               #FAFAFA;
  --color-surface:          #FFFFFF;
  --color-surface-subtle:   #F5F5F5;

  --color-text-primary:     #1A1A1A;
  --color-text-secondary:   #555550;
  --color-text-tertiary:    #888780;

  --color-accent:           #4A7C59;
  --color-accent-tint:      #EAF3DE;
  --color-accent-hover:     #3D6849;

  --color-border:           #E4E4E0;
  --color-border-subtle:    #EFEFEB;

  /* ==========================================
     TYPOGRAPHY
  =========================================== */

  --font-display:   'DM Serif Display', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;

  /* Scale */
  --text-xs:    0.6875rem;   /* 11px */
  --text-sm:    0.8125rem;   /* 13px */
  --text-base:  0.9375rem;   /* 15px */
  --text-md:    1.0625rem;   /* 17px */
  --text-lg:    1.25rem;     /* 20px */
  --text-xl:    1.5rem;      /* 24px */
  --text-2xl:   2rem;        /* 32px */
  --text-3xl:   2.75rem;     /* 44px */
  --text-4xl:   3.5rem;      /* 56px */

  /* Weight */
  --weight-regular: 400;
  --weight-medium:  500;

  /* Line height */
  --leading-tight:  1.2;
  --leading-snug:   1.4;
  --leading-normal: 1.6;
  --leading-loose:  1.75;

  /* Tracking */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;

  /* ==========================================
     SPACING
  =========================================== */

  --space-1:   0.25rem;   /* 4px  */
  --space-2:   0.5rem;    /* 8px  */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */

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

  --container-max:       1120px;
  --max-width-text:      720px;
  --max-width-narrow:    540px;

  /* ==========================================
     BORDERS
  =========================================== */

  --border-thin:    1px solid var(--color-border);
  --border-subtle:  1px solid var(--color-border-subtle);

  /* ==========================================
     RADIUS
  =========================================== */

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-xl:   12px;
  --radius-2xl:  16px;

  /* ==========================================
     TRANSITIONS
  =========================================== */

  --transition-fast:    150ms ease;
  --transition-normal:  250ms ease;

  /* ==========================================
     SHADOWS
  =========================================== */

  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.08);

}

/* ==========================================
   BASE RESET & GLOBALS
=========================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: var(--leading-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================
   CONTAINER
=========================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 600px) {
  .container {
    padding-inline: var(--space-4);
  }
}

/* ==========================================
   SECTION SPACING
=========================================== */

.section {
  padding-block: var(--space-20);
}

.section--lg {
  padding-block: var(--space-24);
}

.section--sm {
  padding-block: var(--space-12);
}
