/* what are you doing */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Georgia', 'Palatino Linotype', 'Times New Roman', serif;
}

.desk {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg,
            #5c3d2e 0%,
            #6b4930 15%,
            #7a5538 30%,
            #8b6243 50%,
            #7a5538 70%,
            #6b4930 85%,
            #5c3d2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wood-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px,
            transparent 4px,
            transparent 20px),
        repeating-linear-gradient(0deg,
            transparent 0px,
            rgba(255, 200, 150, 0.02) 100px,
            transparent 200px),
        radial-gradient(ellipse 120px 80px at 20% 30%, rgba(60, 30, 10, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 80px 60px at 75% 60%, rgba(60, 30, 10, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 100px 70px at 40% 80%, rgba(60, 30, 10, 0.12) 0%, transparent 70%),
        repeating-linear-gradient(87deg,
            transparent 0px,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 2px,
            transparent 8px);
}

.desk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 240, 220, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.desk::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 0%, rgba(30, 15, 5, 0.4) 100%);
    pointer-events: none;
}

.paper-card {
    position: relative;
    width: min(380px, 85vw);
    padding: 45px 40px;
    background: linear-gradient(165deg, #faf8f5 0%, #f5f2ed 30%, #f0ebe4 60%, #ebe5db 100%);
    border-radius: 4px;
    box-shadow:
        0 15px 35px rgba(30, 15, 5, 0.35),
        0 5px 15px rgba(30, 15, 5, 0.2),
        0 2px 4px rgba(30, 15, 5, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 1px 0 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.03);
    z-index: 10;
    transform: rotate(-1deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;

    animation: cardDropIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardDropIn {
    0% {
        opacity: 0;
        transform: rotate(-1deg) translateY(-40px);
    }

    100% {
        opacity: 1;
        transform: rotate(-1deg) translateY(0);
    }
}

.paper-card:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow:
        0 20px 45px rgba(30, 15, 5, 0.4),
        0 8px 20px rgba(30, 15, 5, 0.25),
        0 3px 6px rgba(30, 15, 5, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 1px 0 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.03);
}

.paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.paper-edge-shadow {
    position: absolute;
    bottom: -2px;
    left: 2px;
    right: 2px;
    height: 4px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
    border-radius: 0 0 4px 4px;
    pointer-events: none;
}

.embossed-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(180, 160, 140, 0.3);
    border-radius: 2px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 0 rgba(0, 0, 0, 0.05);
}

.paper-fold {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 20%, rgba(0, 0, 0, 0.03) 50%, rgba(0, 0, 0, 0.02) 80%, transparent 100%);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.letterpress-logo {
    font-family: 'Georgia', serif;
    font-size: clamp(28px, 7vw, 38px);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #3a3530;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 -1px 1px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.divider-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(140, 120, 100, 0.4) 50%, transparent 100%);
}

.divider-ornament {
    font-size: 8px;
    color: #a08878;
    opacity: 0.6;
}

.email-link {
    display: inline-block;
    font-family: 'Georgia', serif;
    font-size: clamp(13px, 3.5vw, 15px);
    font-style: italic;
    letter-spacing: 0.08em;
    color: #5a4d44;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.email-link:hover {
    color: #4a3d34;
    background: rgba(0, 0, 0, 0.03);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.ios-button {
    position: relative;
    padding: 12px 28px;
    font-family: 'Georgia', serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(180deg,
            #7a8b9a 0%,
            #5c6d7c 50%,
            #4a5b6a 51%,
            #3d4e5d 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 4px 8px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.15);
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4);
    transition: all 0.15s ease;
}

.ios-button .btn-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.ios-button .btn-text {
    position: relative;
    z-index: 2;
}

.ios-button:hover {
    background: linear-gradient(180deg,
            #8a9baa 0%,
            #6c7d8c 50%,
            #5a6b7a 51%,
            #4d5e6d 100%);
}

.ios-button:active {
    background: linear-gradient(180deg,
            #4a5b6a 0%,
            #3d4e5d 50%,
            #5c6d7c 51%,
            #7a8b9a 100%);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.2) inset,
        0 -1px 0 rgba(255, 255, 255, 0.1) inset,
        0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

.desk-shadow {
    position: absolute;
    width: min(340px, 75vw);
    height: 20px;
    background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(20, 10, 5, 0.25) 0%, transparent 100%);
    bottom: calc(50% - 140px);
    left: 50%;
    transform: translateX(-50%);
    filter: blur(8px);
    z-index: 5;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.6);
}

.notes-app {
    width: min(500px, 92vw);
    height: min(600px, 85vh);
    background: #faf5e4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(100vh);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .notes-app {
    transform: translateY(0);
}


.notes-header {
    position: relative;
    height: 70px;
    background: linear-gradient(180deg,
            #8b6914 0%,
            #6b4c0a 20%,
            #5a3d08 50%,
            #4a3006 80%,
            #3d2805 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 200, 100, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.leather-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.leather-stitching {
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-image: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 4px,
            rgba(200, 180, 140, 0.5) 4px,
            rgba(200, 180, 140, 0.5) 12px,
            transparent 12px,
            transparent 16px);
    pointer-events: none;
}

.notes-title {
    font-family: 'Marker Felt', 'Comic Sans MS', cursive;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 400;
    color: #f0e6d0;
    text-shadow:
        0 -1px 1px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 200, 100, 0.2);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.notes-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(0, 0, 0, 0.1) 100%);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    color: #f0e6d0;
    font-size: 16px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 5;
}

.notes-close:hover {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(0, 0, 0, 0.05) 100%);
}

.notes-close:active {
    transform: translateY(-50%) scale(0.95);
}

.notes-paper {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg,
            #fff9d4 0%,
            #fff5c0 50%,
            #f9efb0 100%);
    overflow-y: auto;
    padding: 30px 25px 30px 50px;
}

.paper-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        
        repeating-linear-gradient(180deg,
            transparent 0px,
            transparent 27px,
            rgba(180, 200, 220, 0.4) 27px,
            rgba(180, 200, 220, 0.4) 28px),
        
        linear-gradient(90deg,
            transparent 0px,
            transparent 38px,
            rgba(220, 100, 100, 0.4) 38px,
            rgba(220, 100, 100, 0.4) 40px,
            transparent 40px);
}

.notes-content {
    position: relative;
    z-index: 2;
}

.notes-text {
    font-family: 'Marker Felt', 'Comic Sans MS', cursive;
    font-size: clamp(18px, 4vw, 22px);
    line-height: 28px;
    color: #2c3e50;
    margin-bottom: 28px;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-name {
    font-weight: bold;
    color: #1a5276;
}

.project-status {
    font-size: clamp(14px, 3vw, 16px);
    color: #5d6d7e;
    padding-left: 15px;
}

.project-status.coming-soon {
    font-style: italic;
    color: #7f8c8d;
}

.notes-content a {
    color: inherit;
    text-decoration: underline;
}

.notes-content a:visited {
    color: inherit;
}

.notes-content a:hover {
    color: #1a5276;
}

.notes-content a:active {
    color: inherit;
}

.project-name a {
    color: #1a5276;
    text-decoration: underline;
}

.project-name a:visited {
    color: #1a5276;
}

.project-name a:hover {
    color: #2980b9;
}

@media (max-width: 480px) {
    .paper-card {
        padding: 35px 25px;
    }

    .embossed-border {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .divider-line {
        width: 35px;
    }

    .ios-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .notes-header {
        height: 60px;
    }

    .notes-paper {
        padding: 25px 20px 25px 45px;
    }
}

@media (max-height: 500px) {
    .paper-card {
        padding: 25px 30px;
    }

    .letterpress-logo {
        margin-bottom: 12px;
    }

    .divider {
        margin-bottom: 12px;
    }

    .email-link {
        margin-bottom: 15px;
    }

    .button-group {
        flex-direction: row;
        gap: 10px;
    }
}
