/* ============================================
   ENLIVEL DESIGN TOKENS
   Editorial Portfolio Style System
   ============================================ */

:root {
  /* ===== BACKGROUNDS ===== */
  --bg-default: #FDFDFE;         /* Porcelain - main site background (85% usage) */
  --bg-section: #EFEFF2;         /* Soft Warm Grey - optional section separation */
  --bg-hero: #0F0F11;            /* Off-Black - hero + footer only */
  --bg-ink: #1D1D1F;             /* Graphite - deep surfaces (rare) */
  --bg-berry-deep: #380715;      /* Berry Deep - case study cover (rare) */

  /* ===== TEXT ===== */
  --txt-primary: #1D1D1F;        /* Headlines on light */
  --txt-body: #3A3A3C;           /* Paragraphs on light */
  --txt-muted: #75757A;          /* Captions/meta */
  --txt-on-dark: #FFFFFF;        /* Headlines on dark */
  --txt-on-dark-body: #FAFAFB;   /* Body on dark */

  /* ===== ACCENTS ===== */
  --acc-primary: #9D2544;        /* Wine - primary accent (CTA/hover/underline) */
  --acc-secondary: #8D3850;      /* Muted Wine - secondary accent */
  --acc-deep: #68162C;           /* Wine Ink - deep accent */
  --acc-soft: #F5E4E9;           /* Wine Wash - very small surfaces only */
  --acc-soft-2: #FAF2F5;         /* Wine Mist - chips/badges only */
  --acc-cool: #6EA0B9;           /* Sky Blue - links/hover (rare), NOT backgrounds */

  /* ===== BORDERS ===== */
  --border-light: rgba(29,29,31,0.12);
  --border-dark: rgba(255,255,255,0.18);

  /* ===== TYPOGRAPHY ===== */
  /* Font family */
  --font-primary: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  /* Micro text only (captions/meta/tiny labels) */
  --font-micro: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Font weights (allowed: 400 / 500 / 600 only) */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Font sizes */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 28px;
  --fs-4xl: 32px;
  --fs-5xl: 40px;
  --fs-6xl: 48px;
  --fs-7xl: 56px;
  --fs-8xl: 64px;

  /* Line heights (unitless so they scale predictably) */
  --lh-tight: 1.1;   /* 110% */
  --lh-snug: 1.2;    /* 120% */
  --lh-normal: 1.4;  /* 140% */
  --lh-relaxed: 1.55;/* 155% */
  --lh-loose: 1.65;  /* 165% */

  /* Letter spacing */
  --ls-normal: 0em;
  --ls-caps: 0.04em;
}

/* ===== GLOBAL BASE STYLES ===== */

html, body {
  background: var(--bg-default);
  color: var(--txt-body);
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-normal);
}

/* ===== SECTION BACKGROUNDS ===== */

section {
  background: transparent;
}

.section--alt {
  background: var(--bg-section);
}

.hero,
footer {
  background: var(--bg-hero);
  color: var(--txt-on-dark);
}

/* ===== TYPOGRAPHY SYSTEM ===== */

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-normal);
}

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  color: var(--txt-primary);
  margin: 0 0 0.6em 0;
}

h1 {
  font-size: clamp(44px, 5vw, var(--fs-8xl));
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

h2 {
  font-size: clamp(26px, 2.6vw, var(--fs-4xl));
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
}

h3 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
}

h4 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
}

p {
  color: var(--txt-body);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  max-width: 70ch; /* makes it look like a pro portfolio */
}

.small,
.meta {
  font-size: var(--fs-sm);
  color: var(--txt-muted);
  line-height: var(--lh-loose);
  font-family: var(--font-micro);
}

/* Hero typography override */
.hero h1,
.hero h2,
.hero h3,
.hero h4 {
  color: var(--txt-on-dark);
}

.hero p {
  color: var(--txt-on-dark-body);
}

/* ===== LINKS ===== */

a {
  color: var(--txt-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--acc-primary);
}

.accent {
  color: var(--acc-primary);
}

.underline-accent {
  text-decoration-color: var(--acc-primary);
  text-decoration: underline;
}

/* ===== BUTTONS ===== */

.btn-primary {
  background: var(--acc-primary);
  color: #fff;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(0.95);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--txt-primary);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--acc-primary);
  color: var(--acc-primary);
}

/* ===== LAYOUT RESTRAINT ===== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

.hero {
  padding: 120px 0 96px;
}

/* ===== RESPONSIVE RHYTHM (mobile) ===== */
@media (max-width: 768px) {
  html, body {
    font-size: var(--fs-md);
  }

  p {
    font-size: var(--fs-md);
  }

  h3 {
    font-size: clamp(20px, 3.6vw, var(--fs-2xl));
  }

  h4 {
    font-size: clamp(18px, 3.2vw, var(--fs-xl));
  }

  section {
    padding: 56px 0;
  }

  .hero {
    padding: 88px 0 72px;
  }
}
/* ===== UTILITY CLASSES ===== */

.text-color404 {
  color: var(--acc-primary);
}

.text-color-black {
  color: var(--txt-primary);
}

.text-color-grey,
.text-color-gray {
  color: var(--txt-muted);
}

