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

:root {
    --paper-color: #F5F0E6;
    --paper-texture: #EBE5D9;
    --line-color: #D4C8B8;
    --margin-color: #D4A574;
    --text-primary: #5D4E37;
    --text-secondary: #8B7355;
    --highlight-color: #A67B5B;
    --shadow-color: rgba(93, 78, 55, 0.15);
}

body {
    font-family: 'Merriweather', serif;
    background: linear-gradient(135deg, #D9C9A8 0%, #C9B896 50%, #B8A684 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    color: var(--text-primary);
}

.page-container {
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paper {
    background-color: var(--paper-color);
    background-image:
        repeating-linear-gradient(
            transparent,
            transparent 31px,
            var(--line-color) 31px,
            var(--line-color) 32px
        ),
        linear-gradient(
            to right,
            var(--margin-color) 0,
            var(--margin-color) 60px,
            transparent 60px,
            transparent 100%
        );
    padding: 60px 80px 60px 140px;
    box-shadow:
        0 10px 30px var(--shadow-color),
        0 2px 5px var(--shadow-color),
        inset 0 0 100px rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    min-height: 900px;
}

.paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            ellipse at center,
            transparent 0%,
            rgba(0, 0, 0, 0.02) 100%
        );
    pointer-events: none;
    border-radius: 2px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(93, 78, 55, 0.1);
}

.subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
}

.audio-player {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(245, 240, 230, 0.8), rgba(235, 229, 217, 0.8));
    border-radius: 12px;
    border: 2px solid var(--margin-color);
    box-shadow: 
        0 4px 8px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: fadeIn 1.3s ease-out;
}

.audio-player audio {
    display: none;
}

.player-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-header {
    text-align: center;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 10px;
}

.player-title {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--highlight-color);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
}

.control-btn {
    background: linear-gradient(145deg, #fff, #e8e4d9);
    border: 2px solid var(--highlight-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 4px 8px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.control-btn:active {
    transform: scale(0.95);
}

.play-icon {
    font-size: 1.5rem;
    color: var(--highlight-color);
    display: block;
}

.pause-icon {
    font-size: 1.5rem;
    color: var(--highlight-color);
    display: none;
}

.control-btn.playing .play-icon {
    display: none;
}

.control-btn.playing .pause-icon {
    display: block;
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-display {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
}

.time-separator {
    margin: 0 5px;
    color: var(--text-secondary);
}

.progress-bar {
    position: relative;
    height: 12px;
    background: linear-gradient(to right, #e0d8c8, #d4c8b8);
    border-radius: 6px;
    border: 1px solid var(--line-color);
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--highlight-color), #b88a6a);
    width: 0%;
    border-radius: 6px;
    transition: width 0.1s linear;
    box-shadow: 
        0 0 10px rgba(166, 123, 91, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    font-size: 1.2rem;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 6px;
    background: linear-gradient(to right, #e0d8c8, #d4c8b8);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--highlight-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--highlight-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px var(--shadow-color);
    border: none;
}

.content {
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    margin-bottom: 45px;
    opacity: 0;
    animation: fadeInSection 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.3s; }
section:nth-child(2) { animation-delay: 0.5s; }
section:nth-child(3) { animation-delay: 0.7s; }
section:nth-child(4) { animation-delay: 0.9s; }
section:nth-child(5) { animation-delay: 1.1s; }

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--line-color);
    padding-bottom: 5px;
}

p {
    font-size: 1.05rem;
    line-height: 32px;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

strong {
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: var(--highlight-color);
    text-decoration-style: wavy;
}

.highlight {
    background: linear-gradient(
        to bottom,
        transparent 45%,
        rgba(166, 123, 91, 0.3) 45%,
        rgba(166, 123, 91, 0.3) 55%,
        transparent 55%
    );
}

ul {
    list-style: none;
    padding-left: 25px;
}

ul li {
    position: relative;
    font-size: 1.05rem;
    line-height: 32px;
    margin-bottom: 12px;
}

ul li::before {
    content: '•';
    position: absolute;
    left: -20px;
    color: var(--highlight-color);
    font-size: 1.5rem;
    line-height: 32px;
}

.footer {
    margin-top: 60px;
    padding-top: 40px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.signature p {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.signature-line {
    width: 200px;
    height: 2px;
    background: var(--line-color);
    margin: 0 auto;
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .paper {
        padding: 40px 20px 40px 70px;
        min-height: auto;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .audio-player {
        margin-top: 20px;
        padding: 15px;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .volume-container {
        justify-content: center;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p, ul li {
        font-size: 0.95rem;
        line-height: 28px;
    }
    
    .signature p {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .paper {
        padding: 30px 15px 30px 55px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .audio-player {
        padding: 12px;
    }
    
    .player-title {
        font-size: 1.2rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    p, ul li {
        font-size: 0.9rem;
    }
    
    .signature p {
        font-size: 1.5rem;
    }
    
    .signature-line {
        width: 150px;
    }
}