/* static/css/base.css */

/* -------------------------
   Root Design Tokens
------------------------- */

:root {

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Base font sizing */
  --font-base: 16px;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 3rem;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}


/* -------------------------
   Global Reset
------------------------- */

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


/* -------------------------
   Font Rendering
------------------------- */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* -------------------------
   Base HTML
------------------------- */

html {
  font-size: var(--font-base);
}

body {
  font-family: var(--font-system);
  font-weight: 400;
  font-size: var(--text-md);
  line-height: 1.5;
  margin: 0;
  padding: 0;
}


/* -------------------------
   Default Typography
------------------------- */

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-sm); }

p {
  font-size: var(--text-md);
  margin: 0;
}


/* -------------------------
   Images
------------------------- */


button {
  font-family: inherit;
}