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

:root {
    --background: hsl(40, 40%, 97%);
    --foreground: hsl(210, 50%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(210, 50%, 15%);
    --primary: hsl(210, 50%, 15%);
    --primary-foreground: hsl(40, 40%, 97%);
    --secondary: hsl(210, 30%, 25%);
    --secondary-foreground: hsl(40, 40%, 97%);
    --muted: hsl(40, 20%, 90%);
    --muted-foreground: hsl(210, 20%, 40%);
    --accent: hsl(220, 10%, 94%);
    --accent-foreground: hsl(40, 40%, 97%);
    --border: hsl(40, 30%, 85%);
}

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    background: linear-gradient(135deg, hsl(40, 40%, 97%), hsl(40, 40%, 97%), hsl(40, 20%, 95%));
    color: hsl(210, 50%, 15%);
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.content-wrapper {
    width: 100%;
    max-width: 64rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.375rem;
    border: 1px solid hsla(40, 30%, 85%, 0.5);
    box-shadow: 0 20px 60px -15px hsla(210, 50%, 15%, 0.2);
    overflow: hidden;
}

.logo-section {
    background: #ffffff;
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid hsla(40, 30%, 85%, 0.5);
}

.logo-container {
    position: relative;
}

.logo {
    width: 100%;
    max-width: 28rem;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.05);
}

.text-section {
    padding: 2rem;
}

.header {
    text-align: center;
    border-bottom: 1px solid hsla(40, 30%, 85%, 0.3);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    color: hsl(210, 50%, 15%);
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.date {
    font-size: 1.125rem;
    color: hsl(210, 20%, 40%);
    font-weight: 600;
}

.paragraphs {
    margin-bottom: 2rem;
}

.paragraph {
    font-size: 1rem;
    color: hsla(210, 50%, 15%, 0.9);
    text-align: justify;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.paragraph:first-letter {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
}

.signature-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsla(40, 30%, 85%, 0.3);
    text-align: center;
}

.signature {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(210, 50%, 15%);
    margin-bottom: 0.5rem;
}

.name {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(210, 50%, 15%);
    margin-bottom: 0.5rem;
}

.position {
    font-size: 1rem;
    color: hsl(210, 20%, 40%);
    font-style: italic;
}

.language-section {
    padding-top: 2rem;
    border-top: 1px solid hsla(38, 70%, 50%, 0.2);
    margin-top: 2rem;
}

.language-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    border: 2px solid hsl(40, 30%, 85%);
    background: #FEFEFE;
    color: hsl(210, 50%, 15%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
}

.btn:hover {
    background: #FEFEFE;
    border-color: hsl(210, 50%, 15%);
    transform: translateY(-2px);
}

.btn.active {
    background: #FEFEFE;
    color: #000000;
    /*border-color: hsl(38, 70%, 50%);*/
}

.social-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #E0DFE4;
    color: hsl(0, 0%, 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px hsla(38, 70%, 50%, 0.3);
}

.social-link:hover {
    background: #E0DFE4;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px hsla(210, 50%, 15%, 0.4);
}

.social-icon {
    width: 32px;
    height: 32px;
}

.footer {
    text-align: center;
    margin-top: 2rem;
}

.footer-text {
    font-size: 0.875rem;
    color: hsl(210, 20%, 40%);
    font-style: italic;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
    
    .logo-section {
        padding: 4rem 3rem;
    }
    
    .text-section {
        padding: 3rem;
    }
    
    .title {
        font-size: 2.25rem;
    }
    
    .paragraph {
        font-size: 1.125rem;
    }
    
    .name {
        font-size: 1.875rem;
    }
    
    .signature-section {
        text-align: right;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: hsl(210, 50%, 8%);
        --foreground: hsl(40, 40%, 97%);
        --card: hsl(210, 45%, 12%);
        --card-foreground: hsl(40, 40%, 97%);
        --primary: hsl(40, 40%, 97%);
        --primary-foreground: hsl(210, 50%, 15%);
        --secondary: hsl(210, 35%, 20%);
        --secondary-foreground: hsl(40, 40%, 97%);
        --muted: hsl(210, 35%, 18%);
        --muted-foreground: hsl(40, 20%, 70%);
        --accent: hsl(38, 70%, 55%);
        --accent-foreground: hsl(210, 50%, 10%);
        --border: hsl(210, 30%, 20%);
    }
}
