/* ==========================================================================
   Base — Reset, Typography, Global Styles
   ========================================================================== */

/* @font-face — Satoshi Variable (add woff2 files to assets/fonts/) */
@font-face {
  font-family: 'Satoshi Variable';
  src: url('../fonts/Satoshi-Variable.woff2?v=1') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi Variable';
  src: url('../fonts/Satoshi-VariableItalic.woff2?v=1') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  font-style: italic;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--dark-blue);
  background-color: var(--white);
}

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

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

ul,
ol {
  list-style: none;
}

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

/* Typography */
h1,
.display {
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

h2 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

h3 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

p {
  color: var(--dark-blue-2);
}

/* Global container */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 40px;
}

/* Section spacing */
.section {
  padding-block: var(--section-padding-y);
}

/* Colored keyword spans for display text */
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-white { color: var(--white); }
.text-gray { color: #6f7c87; }
.text-white-muted { color: rgba(255, 255, 255, 0.8); }
.text-muted { color: var(--dark-blue-2); }

/* Responsive */
@media (max-width: 1200px) {
  :root {
    --fs-display: 72px;
    --lh-display: 80px;
    --ls-display: -3px;
    --fs-h2: 34px;
    --lh-h2: 42px;
    --section-padding-y: 80px;
    --content-padding: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-display: 48px;
    --lh-display: 54px;
    --ls-display: -2px;
    --fs-h2: 28px;
    --lh-h2: 34px;
    --fs-h3: 22px;
    --lh-h3: 28px;
    --fs-body: 17px;
    --lh-body: 24px;
    --fs-nav: 17px;
    --section-padding-y: 60px;
    --content-padding: 40px;
    --card-padding: 24px;
    --card-gap: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-display: 36px;
    --lh-display: 42px;
    --ls-display: -1.5px;
    --fs-h2: 24px;
    --lh-h2: 30px;
    --fs-h3: 20px;
    --lh-h3: 26px;
    --fs-body: 16px;
    --lh-body: 23px;
    --fs-nav: 16px;
    --section-padding-y: 48px;
    --content-padding: 20px;
    --card-padding: 20px;
    --card-gap: 16px;
  }
}
