/* ==============================
   TYPOGRAPHY.CSS (BASE)
   Sito:
   Richiede: reset.css + variables.css
   ============================== */

/* ● base */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary, sans-serif);
  color: var(--color-text);
  background: var(--color-bg);
}

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

p {
  font-family: var(--font-secondary, sans-serif);
}

.ff-secondary {
  font-family: var(--font-secondary);
}

/* ● role-based typography */
.text-1 {
  font-size: var(--fs-1); /* 62px */
  line-height: auto;
}

.text-2 {
  font-size: var(--fs-2); /* 44px */
  line-height: auto;
}

.text-3 {
  font-size: var(--fs-3); /* 34px */
  text-align: center;
  font-style: normal;
  font-weight: 700;
  line-height: 2.625rem; /* 123.529% */
  letter-spacing: -0.0275rem;
}

.text-4 {
  font-size: var(--fs-4); /* 24px */
  font-style: normal;
  font-weight: 700;
  line-height: 1.875rem; /* 125% */
  letter-spacing: -0.0075rem;
}

.text-5 {
  font-size: var(--fs-5); /* 18px */
  font-style: normal;
  font-weight: 400;
  line-height: 1.875rem;
}

.text-6 {
  font-size: var(--fs-6); /* 14px */
  line-height: auto;
}

/* ● font weight utilities */

.fw-black {
  font-weight: var(--fw-black);
}

.fw-extrabold {
  font-weight: var(--fw-extrabold);
}
.fw-bold {
  font-weight: var(--fw-bold);
}
.fw-semibold {
  font-weight: var(--fw-semibold);
}
.fw-medium {
  font-weight: var(--fw-medium);
}
.fw-regular {
  font-weight: var(--fw-regular);
}
.fw-light {
  font-weight: var(--fw-light);
}

/* ● text alignment */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* ● color utilities */
.cl-primary {
  color: var(--color-primary);
}
.cl-secondary {
  color: var(--color-secondary);
}
.cl-accent {
  color: var(--color-accent);
}
.cl-bg {
  color: var(--color-bg);
}
.cl-text {
  color: var(--color-text);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-variant {
  background-color: var(--color-bg-variant);
}

.bg-secondary {
  background-color: var(--color-secondary);
}
.bg-accent {
  background-color: var(--color-accent);
}
.bg-text {
  background-color: var(--color-text);
}

.bg-bg {
  background-color: var(--color-bg);
}

.cl-gradient {
  background: linear-gradient(90deg, #47cf73 0%, #e4d944 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
