/* 
 * AESTHEREAL - Global Styles
 * Minimalist Design System
 * 2026 Edition
 */

/* =========================================
   1. Typography & Reset
   ========================================= */

/* Import Fonts: Inter (English), LXGW WenKai / Noto Serif SC (Chinese) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Noto+Serif+SC:wght@300;400;500&display=swap');
@import url('https://npm.elemecdn.com/lxgw-wenkai-screen-webfont/style.css');

:root {
    /* Color Palette */
    --bg-color: #fcfcfc;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --accent-color: #d4d4d4;
    --border-color: #eeeeee;

    /* Fonts */
    --font-en: 'Inter', Helvetica, Arial, sans-serif;
    --font-cn: 'LXGW WenKai Screen', 'Noto Serif SC', 'Songti SC', serif;

    /* Spacing & Layout */
    --page-padding: 4rem;
    --nav-height: 80px;

    /* Animation */
    --transition-base: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-cn);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =========================================
   2. Shared Components
   ========================================= */

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

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-cn);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.en-font {
    font-family: var(--font-en);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    color: #fff;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.25rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.4s var(--transition-base);
}

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

/* Section Container */
section {
    padding: 8rem var(--page-padding);
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: #a0a0a0;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border-color);
}

/* =========================================
   3. Page Specific Styles
   ========================================= */

/* --- Home: Hero --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Override section padding */
    margin: 0;
    max-width: none;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.5s var(--transition-base) forwards 0.5s;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem); /* Responsive typography */
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.9;
}

@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Home: Featured Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.card-item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    cursor: pointer;
}

.img-frame {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f0f0f0;
}

.img-frame img {
    width: 100%;
    height: 100%;
    transition: transform 0.8s var(--transition-base), filter 0.5s ease;
}

.card-item:hover .img-frame img {
    transform: scale(1.06);
    filter: contrast(1.05);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.05em;
}

/* --- Home: About Block --- */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    background-color: #faf9f6; /* Warm off-white */
    width: 100%;
    max-width: none;
    padding: 8rem var(--page-padding);
}

.about-img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* --- Collections Page --- */
.theme-nav {
    position: fixed;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 50;
    mix-blend-mode: difference;
    color: #fff;
}

.theme-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: pointer;
}

.theme-link.active, .theme-link:hover {
    opacity: 1;
}

.collection-section {
    min-height: 100vh;
    padding-top: 8rem;
    border-bottom: 1px solid transparent;
}

.collection-header {
    margin-bottom: 4rem;
    text-align: center;
}

.collection-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.collection-header p {
    font-family: var(--font-en);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Staggered Grid for Collections */
.staggered-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    align-items: center;
}

/* Specific item placement for variety */
.staggered-grid .item-large {
    grid-column: 2 / span 5;
    grid-row: 1 / span 2;
}

.staggered-grid .item-small-1 {
    grid-column: 8 / span 4;
    grid-row: 1;
    align-self: end;
}

.staggered-grid .item-small-2 {
    grid-column: 8 / span 3;
    grid-row: 2;
    padding-top: 2rem;
}

.tag-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-family: var(--font-en);
    color: #888;
    text-align: right;
    display: block;
}

/* --- Journal Page --- */
.journal-container {
    max-width: 1200px;
    margin: 0 auto;
}

.journal-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 10rem;
    align-items: center;
}

.journal-article:nth-child(even) {
    direction: rtl; /* Swap layout order */
}

.journal-article:nth-child(even) > * {
    direction: ltr; /* Reset text direction */
}

.journal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1.5rem;
}

.journal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.journal-img-box {
    box-shadow: 20px 20px 0 var(--border-color);
    transition: transform 0.5s ease;
}

.journal-article:hover .journal-img-box {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0 #e5e5e5;
}

/* =========================================
   4. Utilities & Animations
   ========================================= */

.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);
}

/* =========================================
   5. Responsive Design
   ========================================= */

@media (max-width: 1024px) {
    :root { --page-padding: 2rem; }
    .grid-3 { gap: 1.5rem; }
    .staggered-grid .item-large { grid-column: 1 / span 6; }
    .staggered-grid .item-small-1 { grid-column: 8 / span 5; }
    .journal-article { gap: 3rem; }
}

@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        mix-blend-mode: normal;
        color: var(--text-primary);
        box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    }
    
    .nav-links {
        margin-top: 1rem;
        gap: 1.5rem;
        font-size: 0.85rem;
    }
    
    .logo { font-size: 1.1rem; }

    /* Sections */
    section, .about-block { padding: 5rem 1.5rem; }
    
    /* Grids */
    .grid-3 { grid-template-columns: 1fr; gap: 3rem; }
    .about-block { grid-template-columns: 1fr; gap: 3rem; }
    .about-block .about-img { min-height: 300px; order: -1; }
    
    .theme-nav { display: none; } /* Hide side nav */
    
    .staggered-grid { display: flex; flex-direction: column; gap: 3rem; }
    .staggered-grid > div { width: 100%; margin: 0 !important; }
    
    .journal-article, .journal-article:nth-child(even) {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
        direction: ltr;
        margin-bottom: 6rem;
    }
    
    .journal-img-box { box-shadow: 10px 10px 0 var(--border-color); }
    .journal-content h3 { font-size: 1.25rem; }
}