/* ======= VARIABLES ======= */
:root {
    /* Color palette */
    --ghost-black: #1D1D1D;
    --midnight-black: #000000;
    --crimson-red: #E63946;
    --gold-sparkle: #FFC300;
    --ivory-beige: #FDF6EC;
    --blush-pink: #F4A7B9;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-accent: 'Caveat', cursive;
    --font-chinese: 'Noto Serif SC', serif;
    
    /* Font sizes */
    --fs-xl: 3.33rem;  /* h1 */
    --fs-lg: 2.22rem;  /* h2 */
    --fs-md: 1.11rem;  /* h3, tagline */
    --fs-sm: 1.11rem;  /* body large */
    --fs-xs: 1.11rem;    /* body normal */
    --fs-xxs: 0.9rem; /* footer */
    
    /* Spacing with calc*/
    --space-xs: calc(1.11rem * 0.5);
    --space-sm: calc(1.11rem * 0.7);
    --space-md: calc(1.11rem * 0.9);
    --space-lg: calc(1.11rem * 1);
    --space-xl: calc(1.11rem * 1.11);
    --space-xxl: calc(1.11rem * 2.22);
    
    /* Border radius */
    --radius-sm: 4px;
    
    /* Box shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ======= RESET & BASE STYLES ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--ivory-beige);
    color: var(--ghost-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

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

a {
    color: var(--crimson-red);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover, a:focus {
    color: #c62b37;
    text-decoration: underline;
}

img, svg {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
}

/* ======= UTILITY CLASSES ======= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.hidden {
    display: none !important;
}

/* ======= LAYOUT COMPONENTS ======= */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-lg);
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-border {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    border: 12px solid transparent;
    box-shadow: inset 0 0 0 1px var(--crimson-red);
}

/* ======= HEADER & BRAND COMPONENTS ======= */
.brand-header {
    margin-bottom: var(--space-xxl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.ghost-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    position: relative;
    background: url('../img/line-logo2.png') no-repeat center;
    background-size: contain;
}

h1 {
    font-size: var(--fs-xl);
    letter-spacing: 1px;
    color: var(--ghost-black);
}

.chinese-title {
    display: inline-block;
    font-family: var(--font-chinese);
    font-size: calc(var(--fs-xl) * 0.8);
    opacity: 0.8;
    margin-left: var(--space-xs);
}

.tagline {
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    font-weight: 400;
    margin-bottom: var(--space-xl);
    color: var(--crimson-red);
}

.language-toggle {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.language-toggle button {
    background: none;
    border: 1px solid var(--ghost-black);
    color: var(--ghost-black);
    font-family: var(--font-secondary);
    font-size: var(--fs-xxs);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.language-toggle button.active {
    background-color: var(--ghost-black);
    color: var(--ivory-beige);
}

.language-toggle button:hover:not(.active) {
    border-color: var(--crimson-red);
    color: var(--crimson-red);
}

/* ======= CONTENT SECTIONS ======= */
.brand-story {
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto var(--space-xxl);
    line-height: 1.8;
    text-align: center;
}

.zh-content {
    font-family: var(--font-chinese);
    line-height: 1.8;
}

.coming-soon {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.coming-soon h2 {
    font-size: var(--fs-lg);
}

.coming-soon p {
    font-size: var(--fs-sm);
}

/* ======= POLICY PAGES ======= */
.policy-container {
    max-width: 900px;
    justify-content: flex-start;
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
}

.policy-content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xl);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xxl);
}

.policy-content h1 {
    font-size: var(--fs-xl);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.policy-effective {
    text-align: center;
    font-style: italic;
    margin-bottom: var(--space-xl);
    color: var(--ghost-black);
    opacity: 0.7;
}

.policy-content h2 {
    font-size: var(--fs-md);
    margin-top: var(--space-xl);
    color: var(--crimson-red);
}

.policy-content ul, .policy-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.policy-content li {
    margin-bottom: var(--space-xs);
}

.home-link {
    color: var(--ghost-black);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-link:hover {
    color: var(--ghost-black);
    text-decoration: none;
}

/* ======= NEWSLETTER COMPONENT ======= */
.newsletter {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.newsletter h2 {
    font-size: var(--fs-lg);
}

.newsletter p {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-lg);
}

.disclaimer {
    font-size: var(--fs-xxs);
    margin-top: var(--space-md);
    color: var(--ghost-black);
    opacity: 0.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer strong {
    color: var(--crimson-red);
    opacity: 1;
}

.newsletter-form {
    margin-bottom: var(--space-lg);
}

.form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: var(--space-xs);
}

.form-message {
    margin-top: var(--space-sm);
    font-size: var(--fs-xs);
    min-height: 20px;
}

.form-message.success {
    color: green;
}

.form-message.error {
    color: var(--crimson-red);
}

input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ghost-black);
    background-color: var(--ivory-beige);
    color: var(--ghost-black);
    font-family: var(--font-secondary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: var(--fs-xs);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--crimson-red);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

input[type="email"]::placeholder {
    color: rgba(29, 29, 29, 0.5);
}

button {
    background-color: var(--crimson-red);
    color: var(--ivory-beige);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-secondary);
    font-weight: 500;
    transition: background-color var(--transition-normal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--fs-xs);
}

button:hover, button:focus {
    background-color: #c62b37;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.4);
}

/* ======= DECORATIVE ELEMENTS ======= */
.personal-note {
    font-family: var(--font-accent);
    font-size: var(--fs-md);
    text-align: center;
    margin-top: var(--space-xxl);
    color: var(--crimson-red);
}

.star {
    position: absolute;
    width: 20px;
    height: 20px;
    color: var(--crimson-red);
    animation: twinkle 4s infinite ease-in-out;
    opacity: 0.8;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* ======= FOOTER ======= */
footer {
    text-align: center;
    padding: var(--space-md);
    font-size: var(--fs-xxs);
    color: var(--ghost-black);
    opacity: 0.7;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--ghost-black);
    text-decoration: none;
    font-size: var(--fs-xxs);
    transition: color var(--transition-normal);
}

.footer-links a:hover, .footer-links a.active {
    color: var(--crimson-red);
    text-decoration: none;
}

.divider {
    color: var(--ghost-black);
    opacity: 0.5;
}

/* ======= MEDIA QUERIES ======= */
@media (max-width: 768px) {
    :root {
        --fs-xl: 2.5rem;
        --fs-lg: 1.8rem;
        --fs-md: 1rem;
    }
    
    .page-border {
        border-width: 8px;
    }
    
    .container {
        padding: var(--space-md);
    }
    
    .ghost-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-xl: 2rem;
        --fs-lg: 1.5rem;
        --fs-md: 0.9rem;
        --fs-sm: 0.9rem;
        --fs-xs: 0.8rem;
    }
    
    .logo {
        width: 100px;
    }
    
    .ghost-logo {
        width: 80px;
        height: 80px;
    }
    
    .chinese-title {
        display: block;
        margin-left: 0;
        margin-top: var(--space-xs);
    }
}

/* ======= PRINT STYLES ======= */
@media print {
    .page-border, .star {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 1cm;
    }
} 