/* Papercraft Design System - Based on Etsy aesthetic with paper texture */

/* --- 1. DESIGN TOKENS --- */
:root {
    /* Backgrounds - 'See Cream' (Cream Color) */
    --bg-paper: #FDFBF7; 
    --bg-card: #FFFFFF;
    --bg-texture-overlay: #F5F1E8;
    
    /* Etsy Style Orange */
    --accent-orange: #F1641E; 
    --accent-orange-hover: #D85616;
    
    /* Text - Warm Brown/Grey instead of harsh black */
    --text-charcoal: #423B35; 
    --text-pencil: #756B61;
    
    /* Borders */
    --border-color: #E6E1D6;
    
    /* Status Colors */
    --success-green: #5A9367;
    --error-red: #C44536;
}

/* --- 2. GLOBAL STYLES --- */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-charcoal);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ROUGH PAPER TEXTURE */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.12;
    background-image: 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.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: var(--text-charcoal);
    margin-top: 0;
    line-height: 1.3;
}

h1 {
    color: var(--accent-orange);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-pencil);
}

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

/* --- 3. LAYOUT UTILITIES --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section-spacer {
    padding: 60px 0;
}

/* --- 4. HEADER --- */
header {
    padding: 24px 0;
    border-bottom: 2px solid var(--border-color);
    background-color: rgba(253, 251, 247, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-links a {
    margin-left: 32px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-charcoal);
}

.nav-links a:hover {
    color: var(--accent-orange);
}

/* --- 5. BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 1rem;
    position: relative;
    border: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: white;
    border: 2px solid var(--accent-orange);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    border-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-charcoal);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-charcoal);
    background-color: rgba(0,0,0,0.02);
}

/* --- 6. CARDS --- */
.paper-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.paper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 16px -4px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-orange);
}

/* --- 7. DIVIDERS --- */
.cut-line {
    border: 0;
    border-bottom: 2px dashed var(--border-color);
    margin: 40px 0;
    opacity: 0.8;
    position: relative;
}

.cut-line::after {
    content: '✂';
    position: absolute;
    right: 0;
    top: -12px;
    font-size: 14px;
    color: var(--accent-orange);
    background: var(--bg-paper);
    padding-left: 8px;
}

/* --- 8. FORMS --- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-charcoal);
    background-color: var(--bg-card);
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-charcoal);
}

/* --- 9. TOAST NOTIFICATIONS --- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- 10. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-spacer {
        padding: 40px 0;
    }
}

/* --- 11. UTILITY CLASSES --- */
.text-center {
    text-align: center;
}

.mt-24 {
    margin-top: 24px;
}

.mb-24 {
    margin-bottom: 24px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-16 {
    gap: 16px;
}

.hidden {
    display: none;
}
