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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body), var(--font-zh), serif;
    background-color: var(--ivory);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Damask Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../textures/damask.svg');
    background-size: 600px;
    /* Large pattern */
    opacity: 0.04;
    /* 4% opacity */
    pointer-events: none;
    z-index: -1;
}

/* Paper Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/paper/paper-texture.svg');
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 0.4;
    pointer-events: none;
    z-index: 9999;
    /* Top overlay */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading), serif;
    font-weight: 400;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--space-2);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-burgundy {
    color: var(--burgundy);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}