/* ============================================================
   BASE.CSS
   Design tokens (CSS custom properties), modern CSS reset,
   and global page-level layout.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {

  /* --- Colour palette --- */
  --clr-page-bg:        #f0f2f4;
  --clr-card-dark:      #1f1f1f;
  --clr-card-navy:      #021326;
  --clr-card-blue:      #16263f;
  --clr-card-black:     #0d0d0d;
  --clr-white:          #ffffff;
  --clr-text-muted:     #dcdce0;
  --clr-text-dim:       #d2d2d2;
  --clr-tag-text:       rgba(193, 193, 193, 0.6);
  --clr-tag-border:     rgba(193, 193, 193, 0.6);
  --clr-tag-light-text: rgba(255, 255, 255, 0.9);
  --clr-tag-light-border: rgba(255, 255, 255, 0.8);
  --clr-overlay-dark:   rgba(0, 0, 0, 0.2);
  --clr-arrow-bg:       #f0f2f4;
  --clr-arrow-btn:      #333333;
  --clr-nav-active-bg:  #ffffff;
  --clr-nav-active-txt: #333333;

  /* --- Typography --- */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Manrope', sans-serif;

  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;
  --fw-extrabold:  800;

  --fs-logo:     22px;
  --fs-nav:      10.5px;
  --fs-tag:      9px;
  --fs-body:     13.5px;
  --fs-label:    16px;
  --fs-heading:  clamp(22px, 2.2vw, 30px);
  --fs-hero:     clamp(32px, 3.9vw, 54px);

  --lh-tight:    1.1;
  --lh-snug:     1.25;
  --lh-normal:   1.5;
  --lh-relaxed:  1.556;

  /* --- Spacing scale (4px base) --- */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-7:   28px;
  --sp-8:   32px;
  --sp-9:   36px;
  --sp-10:  40px;
  --sp-11:  44px;
  --sp-12:  48px;

  /* --- Border radius --- */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 9999px;

  /* --- Shadows --- */
  --shadow-mockup: 20px 24px 3px 0 rgba(0, 0, 0, 0.25);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.4);

  /* --- Transitions --- */
  --ease-default:  0.2s ease;
  --ease-smooth:   0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Z-index layers --- */
  --z-bg:      0;
  --z-content: 5;
  --z-ui:      10;
  --z-nav:     20;
  --z-modal:   100;
}


/* ------------------------------------------------------------
   2. MODERN CSS RESET
   Inspired by Andy Bell's reset + Josh Comeau's additions
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--clr-page-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-normal);
  color: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Remove default list styling */
ul,
ol {
  list-style: none;
}

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

/* Block-level media */
img,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

/* Inherit fonts in form elements */
button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Headings don't bold by default — controlled per-component */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
}

/* Remove animation for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------------------------------------------------
   3. PAGE LAYOUT
   ------------------------------------------------------------ */
.page-wrapper {
  padding: var(--sp-4) var(--sp-4) 0;
  max-width: 1440px;
  margin-inline: auto;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
  .page-wrapper {
    padding: 12px 12px 0;
  }
}
