/* ========= FONT IMPORTS ========= */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* NOTE: Ingrid Darling is a premium font from MyFonts/Adobe Fonts
   You'll need to either:
   1. Use Adobe Fonts (typekit) - sign up at fonts.adobe.com
   2. Purchase and self-host the font
   3. Use a free alternative like 'Great Vibes' or 'Tangerine'

   For now, I've included a fallback to Great Vibes (free Google Font)
*/
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* ========= COLOR VARIABLES ========= */
:root {
    --sky-blue: #A8C8E1;
    --dusty-pink: #DCC9CD;
    --cream: #FFF9F8;
    --mauve: #89495A;
    --deep-teal: #0D2E3D;
    --deep-maroon: #3B1B1F;

    /* FONT FAMILIES */
    --font-script: 'Ingrid Darling', 'Great Vibes', cursive; /* Fallback to Great Vibes */
    --font-serif: 'IM Fell English SC', serif;
    --font-sans: 'Lora', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    overflow-x: hidden;
    color: var(--deep-teal);
    line-height: 1.8; /* Increased from 1.6 for better readability */
    font-size: 18px;
    letter-spacing: 0.03em; /* Slightly reduced for tighter text */
    word-spacing: 0.1em; /* Reduced from 0.16em */
    padding-bottom: 2rem; /* Added bottom padding to body */
}

/* ========= TYPOGRAPHY - DYSLEXIA FRIENDLY ========= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3; /* Tighter line height for headings */
    margin-bottom: 1.25rem; /* Increased from 1rem */
}

/* Elegant script for names */
.hero-card h1,
.password-content h1 {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 3.5rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Small caps serif for headings */
.info-card h2,
.page-header h1,
.timeline-section h2,
.venue-section h2,
.form-container h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.3;
}

/* Subtitles and dates */
.hero-card .subtitle,
.hero-card .date,
.tier-label {
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 0.08em; /* Slightly reduced */
    line-height: 1.6;
}

/* Body text - improved spacing */
p, 
.timeline-desc, 
.venue-details,
.info-card p {
    font-family: var(--font-sans);
    line-height: 1.8;
    margin-bottom: 1.25rem; /* Added consistent bottom margin */
}

p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph */
}

/* Headings sizes with improved spacing */
h1 { 
    font-size: 2.4rem; 
    margin-bottom: 1.5rem;
}
h2 { 
    font-size: 2rem; 
    margin-bottom: 1.25rem;
}
h3 { 
    font-size: 1.6rem; 
    margin-bottom: 1rem;
}
h4 { 
    font-size: 1.3rem; 
    margin-bottom: 0.75rem;
}

/* Avoid italics and underlines per dyslexia guidelines */
em, i {
    font-style: normal;
    font-weight: 700;
}

strong, b {
    font-weight: 700;
}

a {
    color: var(--mauve);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--deep-maroon);
    text-decoration: none;
}

/* ========= NAVIGATION ========= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    z-index: 998;
    border-bottom: 2px solid rgba(220, 201, 205, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--deep-teal);
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

nav a:hover {
    color: var(--mauve);
}

nav a.active {
    color: var(--mauve);
}

/* ========= BUTTONS - HIGH CONTRAST ========= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: var(--font-serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background-color: var(--mauve);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.btn:hover {
    background-color: var(--deep-maroon);
    transform: translateY(-2px);
    color: white;
}

/* ========= CONTENT CARDS - SVG BACKGROUND ========= */
.content-card {
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    background-image: url('images/card-border.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.content-card h2 {
    text-align: center;
    color: var(--deep-teal);
    margin-bottom: 1.5rem;
}

.content-card p {
    text-align: center;
    margin-bottom: 1.25rem; /* Increased from 1rem */
}

.content-card .btn {
    display: block;
    margin: 1.5rem auto 0;
    max-width: 300px;
}

/* ========= IMPROVED TEXT BLOCKS ========= */
.highlight,
.venue-details,
.highlight-box,
.note {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight p,
.venue-details p,
.highlight-box p,
.note p {
    margin-bottom: 0.75rem;
}

.highlight p:last-child,
.venue-details p:last-child,
.highlight-box p:last-child,
.note p:last-child {
    margin-bottom: 0;
}

/* ========= MOBILE RESPONSIVE ========= */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.75;
        padding-bottom: 1.5rem;
    }
    
    .hero-card h1,
    .password-content h1 {
        font-size: 2.5rem;
    }
    
    h1 { 
        font-size: 2rem; 
        margin-bottom: 1.25rem;
    }
    h2 { 
        font-size: 1.6rem; 
        margin-bottom: 1rem;
    }
    h3 { 
        font-size: 1.3rem; 
        margin-bottom: 0.85rem;
    }
    h4 { 
        font-size: 1.1rem; 
        margin-bottom: 0.75rem;
    }
    
    p, 
    .timeline-desc, 
    .venue-details,
    .info-card p {
        margin-bottom: 1rem;
    }
    
    nav {
        padding: 0.75rem 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.75rem;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
        margin: 1.5rem 1rem;
    }
    
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 1rem;
    }
    
    .hero-card h1,
    .password-content h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
    
    .content-card {
        padding: 1.5rem 1rem;
        margin: 1rem 0.5rem;
    }
}

/* Prevent horizontal scroll on all devices */
body {
    max-width: 100vw;
    overflow-x: hidden;
}