/* Modern CSS Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f4e8 0%, #f1eadd 50%, #ede3d0 100%);
    background-attachment: fixed;
    color: #2c2c2c;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
}

h1 {
    margin: 0 0 2rem 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

main {
    max-width: 900px;
    width: min(90%, 900px);
    margin: 2rem auto;
    padding: 0;
    display: grid;
    gap: 3rem;
    flex: 1;
}

.crest-section {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.family-crest {
    max-width: min(400px, 80vw);
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.family-crest:hover {
    transform: translateY(-4px) scale(1.02);
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); */
}

.info-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-section h2 {
    color: #2c2c2c;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.01em;
}

.info-section h2:first-child {
    margin-top: 0;
}

.info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b6914, #d4af37);
    border-radius: 2px;
}

.info-section h3 {
    color: #4a4a4a;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 500;
    margin: 2rem 0 1rem 0;
    letter-spacing: -0.01em;
}

.info-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #3c3c3c;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #4a4a4a;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

/* Modern Responsive Design */
@media (max-width: 768px) {
    main {
        width: 95%;
        gap: 2rem;
        margin: 1rem auto;
    }

    .crest-section,
    .info-section {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .family-crest {
        max-width: min(300px, 70vw);
    }
}

/* Link Styles */
a {
    color: #8b6914;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

a:hover {
    color: #5a4209;
    background-color: rgba(139, 105, 20, 0.1);
    transform: translateY(-1px);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, #8b6914, #d4af37);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

a:hover::after {
    width: 100%;
}

a:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .crest-section,
    .info-section {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .info-section h2 {
        margin: 2rem 0 1rem 0;
    }

    .info-section h2::after {
        width: 40px;
        height: 2px;
    }

    .info-section p {
        font-size: 1rem;
    }

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}