/* ============================================================
   BASE.CSS — Reset, design tokens, base element styles
   WilArndt.com
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* -- Colours -- */
  --c-bg:           #111214;
  --c-surface:      #1a1c1f;
  --c-border:       #2c2e33;
  --c-text:         #f0ece6;
  --c-text-muted:   #6b6870;
  --c-text-faint:   #3a3840;
  --c-white:        #ffffff;

  /* -- Typography -- */
  --f-mono: 'Space Mono', monospace;
  --f-sans: 'DM Sans', sans-serif;

  /* -- Type Scale -- */
  --t-xs:    0.75rem;     /*  12px */
  --t-sm:    0.875rem;    /*  14px */
  --t-base:  1rem;        /*  16px */
  --t-lg:    1.125rem;    /*  18px */
  --t-xl:    1.375rem;    /*  22px */
  --t-2xl:   1.875rem;    /*  30px */
  --t-3xl:   2.5rem;      /*  40px */
  --t-4xl:   3.5rem;      /*  56px */

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

  /* -- Layout -- */
  --max-w:          1400px;
  --max-w-narrow:   680px;
  --container-px:   clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

strong {
  font-weight: 700;
}
