/*
Theme Name: NordicTimeline
Theme URI: https://example.com/nordic-timeline
Author: NordicTimeline
Description: 极简北欧风单用户日记主题，支持时间轴、AJAX互动、加密日记等功能。
Version: 1.0.0
Text Domain: nordic-timeline
*/

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

ul,
ol {
    list-style: none;
}

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

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   CSS Variables
   ======================================== */

:root {
    /* 里维埃拉蔚蓝体系 */
    --color-gold: #4A8DB7;
    --color-gold-light: #6BAED6;
    --color-gold-muted: rgba(74, 141, 183, 0.10);
    --color-bg: #F6F9FC;
    --color-bg-warm: #F0F5FA;
    --color-card: #FFFFFF;
    --color-accent: #2E6E8F;
    --color-text: #1A2B3C;
    --color-text-light: #6B7D8E;
    --color-border: #DCE5EE;
    --color-divider: #C8D5E0;
    --color-sun-gold: #D4A855;
    --color-sun-gold-light: #E8C878;

    /* 字体栈 */
    --font-display: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
    --font-body: 'Inter', -apple-system, 'Noto Sans SC', sans-serif;
    --font-stack: 'Inter', -apple-system, 'Noto Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* 圆角 */
    --radius: 16px;
    --radius-sm: 8px;
    --radius-xs: 4px;

    /* 多层阴影体系 */
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-elevated: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);

    /* 动效曲线 */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* 间距（保持不变） */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* 容器宽度 */
    --container-max: 800px;
}

/* ========================================
   Utility Classes
   ======================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
