/**
 * Custom Fonts for forstars Theme
 * 
 * 本地字体文件定义
 */

/* ITC Avant Garde Gothic Pro Bold - 用于重要标题 */
@font-face {
    font-family: 'ITC Avant Garde Gothic Pro';
    src: url('./fonts/fonnts.com-ITC_Avant_Garde_Gothic_Pro_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Proxima Nova Condensed Bold - 用于副标题和强调文字 */
@font-face {
    font-family: 'Proxima Nova Condensed';
    src: url('./fonts/fonnts.com-Mark-Simonson-Proxima-Nova-Condensed-Bold-TheFontsMaster.com_.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Trend Sans W00 One - 细体，用于正文 */
@font-face {
    font-family: 'Trend Sans';
    src: url('./fonts/fonnts.com-Trend_Sans_W00_One.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Trend Sans W00 Five - 中等粗细，用于正文加强 */
@font-face {
    font-family: 'Trend Sans';
    src: url('./fonts/fonnts.com-Trend_Sans_W00_Five.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* CSS 变量定义 */
:root {
    /* 字体家族 */
    --font-heading-bold: 'ITC Avant Garde Gothic Pro', 'Arial Black', sans-serif;
    --font-heading-condensed: 'Proxima Nova Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Trend Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* 字体粗细 */
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* 字体大小 */
    --font-size-small: 0.875rem;   /* 14px */
    --font-size-base: 1rem;        /* 16px */
    --font-size-lg: 1.125rem;      /* 18px */
    --font-size-xl: 1.25rem;       /* 20px */
    --font-size-2xl: 1.5rem;       /* 24px */
    --font-size-3xl: 1.875rem;     /* 30px */
    --font-size-4xl: 2.25rem;      /* 36px */
    --font-size-5xl: 3rem;         /* 48px */
}

/* 基础字体应用 */
body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* 标题字体层级 */
h1 {
    font-family: var(--font-heading-bold);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-4xl);
    line-height: 1.2;
}

h2 {
    font-family: var(--font-heading-condensed);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-3xl);
    line-height: 1.3;
}

h3 {
    font-family: var(--font-heading-condensed);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-2xl);
    line-height: 1.4;
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
    line-height: 1.4;
}

/* 站点标题 */
.site-title {
    font-family: var(--font-heading-bold);
    font-weight: var(--font-weight-bold);
}

/* 导航菜单 */
.nav-menu a {
    font-family: var(--font-condensed);
    font-weight: var(--font-weight-bold);
}

/* 工具类 */
.font-heading-bold {
    font-family: var(--font-heading-bold);
    font-weight: var(--font-weight-bold);
}

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

.font-body-light {
    font-family: var(--font-body);
    font-weight: var(--font-weight-light);
}

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

/* 响应式字体大小 */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 1.875rem;  /* 30px */
        --font-size-3xl: 1.5rem;    /* 24px */
        --font-size-2xl: 1.25rem;   /* 20px */
    }
    
    body {
        font-size: var(--font-size-small);
    }
}
