/* 
   AESTHETIC REDESIGN - GLOBAL DESIGN SYSTEM
   Inspired by paper.html
*/

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Playfair+Display:ital,wght@0,600;1,600;1,700&display=swap');

:root {
    --bg-color: #f8f5f2;
    --pink: #ffb7c5;
    --cherry: #d9385e;
    --cherry-hover: #b82b4a;
    --text-dark: #2a2022;
    --text-muted: #8a7c7e;
    --white: #ffffff;
    --paper-shadow: 0 15px 35px rgba(217, 56, 94, 0.15);
    
    /* Legacy / Compatibility Mapping */
    --accent: var(--cherry);
    --accent-light: var(--pink);
    --border: rgba(217, 56, 94, 0.1);
    --radius-card: 20px;
    --radius-btn: 100px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(217, 56, 94, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 56, 94, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* FILM GRAIN OVERLAY - GLOBAL */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15; /* Subtler than paper.html for app usability */
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    mix-blend-mode: multiply;
}

/* Standard Hover Feedback */
a, button, [role="button"], .interactive {
    cursor: pointer;
}

/* FLASH EFFECT */
.flash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease-out;
}
.flash-active { opacity: 1; transition: none; }

/* SHARED TYPOGRAPHY */
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }
em { font-style: italic; color: var(--cherry); position: relative; display: inline-block; z-index: 1; }
em::after {
    content: ''; position: absolute;
    bottom: 0.1em; left: -0.1em; right: -0.1em; height: 0.3em;
    background: var(--pink); z-index: -1; opacity: 0.6;
    border-radius: 4px; transform: rotate(-1deg);
}

.handwritten { font-family: 'Caveat', cursive; }

/* SHARED BUTTONS */
.btn-aesthetic {
    display: inline-flex; align-items: center; gap: 0.8rem;
    background: var(--cherry); color: var(--white);
    font-size: 1rem; font-weight: 600;
    padding: 0.8rem 2rem; border-radius: 100px;
    text-decoration: none; border: none; outline: none;
    box-shadow: 0 10px 30px rgba(217, 56, 94, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
    cursor: pointer;
}
.btn-aesthetic:hover {
    transform: translateY(-3px) scale(1.03);
    background: var(--cherry-hover);
    box-shadow: 0 15px 40px rgba(217, 56, 94, 0.4);
}

.btn-secondary-aesthetic {
    font-family: 'Caveat', cursive; font-size: 1.4rem;
    color: var(--text-muted); text-decoration: underline; background: none; border: none;
    transition: color 0.3s; cursor: pointer;
}
.btn-secondary-aesthetic:hover { color: var(--cherry); }

/* FLOATING NAV */
nav.floating-nav {
    position: fixed;
    top: 25px; left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 800px;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 183, 197, 0.5);
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(217, 56, 94, 0.08);
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-style: italic; font-weight: 700; font-size: 1.3rem;
    color: var(--cherry); text-decoration: none;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
    font-weight: 500; color: var(--text-dark); text-decoration: none;
    transition: color 0.3s; font-size: 0.9rem;
}
.nav-links a:hover { color: var(--cherry); }
.nav-cta {
    background: var(--text-dark); color: var(--white) !important;
    padding: 0.5rem 1.2rem; border-radius: 100px;
    transition: all 0.3s;
}
.nav-cta:hover { background: var(--cherry); transform: scale(1.05); }

@media (max-width: 768px) {
    nav.floating-nav { top: 15px; padding: 0.5rem 1rem; width: 95%; }
    .nav-links { display: none; }
}