/* ===========================================
   TYPOGRAPHY - Satoshi Font Family
   =========================================== */

/* Font Face Declarations */
@font-face {
    font-family: 'Satoshi';
    src: url('https://raw.githubusercontent.com/holypug1274/pie-assets/main/fonts/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('https://raw.githubusercontent.com/holypug1274/pie-assets/main/fonts/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('https://raw.githubusercontent.com/holypug1274/pie-assets/main/fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('https://raw.githubusercontent.com/holypug1274/pie-assets/main/fonts/Satoshi-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Base Typography */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-body);
    font-weight: var(--weight-regular);
    line-height: var(--line-body);
    color: var(--pie-neutral-2);
    background-color: var(--pie-primary);
}

/* Headings */
h1,
.h1 {
    font-size: var(--font-h1);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    letter-spacing: -0.02em;
}

h2,
.h2 {
    font-size: var(--font-h2);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    letter-spacing: -0.01em;
}

h3,
.h3 {
    font-size: var(--font-h3);
    font-weight: var(--weight-medium);
    line-height: var(--line-heading);
}

h4,
.h4 {
    font-size: var(--font-h4);
    font-weight: var(--weight-medium);
    line-height: var(--line-heading);
}

/* Hero Text */
.hero-title {
    font-size: var(--font-hero);
    font-weight: var(--weight-black);
    line-height: var(--line-hero);
    letter-spacing: -0.03em;
}

/* Body Text */
.text-body {
    font-size: var(--font-body);
    line-height: var(--line-body);
}

.text-small {
    font-size: var(--font-small);
    line-height: var(--line-body);
}

.text-xs {
    font-size: var(--font-xs);
    line-height: var(--line-body);
}

/* Lead/Intro Text */
.text-lead {
    font-size: 1.25rem;
    font-weight: var(--weight-regular);
    line-height: 1.7;
    color: rgba(253, 254, 254, 0.8);
}

/* Font Weights */
.font-regular {
    font-weight: var(--weight-regular);
}

.font-medium {
    font-weight: var(--weight-medium);
}

.font-bold {
    font-weight: var(--weight-bold);
}

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

/* Text Colors */
.text-primary {
    color: var(--pie-neutral-2);
}

.text-secondary {
    color: rgba(253, 254, 254, 0.7);
}

.text-muted {
    color: rgba(253, 254, 254, 0.5);
}

.text-accent-1 {
    color: var(--pie-accent-1);
}

.text-accent-2 {
    color: var(--pie-accent-2);
}

.text-blue {
    color: var(--pie-secondary);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--pie-secondary) 0%, var(--pie-accent-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Text Transform */
.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Links */
.link {
    color: var(--pie-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.link:hover {
    color: var(--pie-accent-1);
}

/* Custom underline effect */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pie-secondary);
    transition: width var(--transition-base);
}

.link-underline:hover::after {
    width: 100%;
}
