/* Modern Intellectual Theme - Shared Styles */

:root {
    /* Colors */
    --bg-body: #FDF8F3;
    --bg-card: #FFFFFF;
    --text-primary: #2C2825;
    --text-secondary: #6B6661;
    --accent-line: #EBE5DE;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Font Sizes */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 48px;
    --text-5xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 40, 37, 0.02);
    --shadow-md: 0 4px 12px rgba(44, 40, 37, 0.05);
    --shadow-lg: 0 8px 24px rgba(44, 40, 37, 0.08);
    --shadow-xl: 0 20px 40px rgba(44, 40, 37, 0.03);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Typography */
    --font-serif: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

/* NAV */
.nav {
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--accent-line);
    color: var(--text-secondary);
    font-size: 13px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 40px;
    border-radius: var(--radius-pill);
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: none;
}

/* Full-width buttons on mobile for forms */
@media (max-width: 600px) {

    form .btn,
    .modal-footer .btn {
        width: 100%;
    }
}

.btn-primary {
    background-color: var(--text-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(44, 40, 37, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(44, 40, 37, 0.2);
}

/* UTILITIES */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.0s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}