* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background:
        radial-gradient(circle at top left, #f2efe9 0, transparent 35%),
        #f8f7f3;

    color: #181818;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.page {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 60px 0 100px;
}


/* Header */

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 40px;

    margin-bottom: 55px;
}

.eyebrow {
    margin: 0 0 18px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;

    color: #777;
}

.header h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(48px, 7vw, 88px);
    font-weight: 400;
    line-height: 0.93;
    letter-spacing: -0.04em;
}

.subtitle {
    max-width: 520px;

    margin-top: 28px;

    font-size: 16px;
    line-height: 1.7;

    color: #666;
}


/* Live status */

.status {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 13px;
    color: #666;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #55a46f;

    box-shadow:
        0 0 0 4px rgba(85, 164, 111, 0.12);
}


/* Today's prompt */

.prompt-card {
    margin-bottom: 34px;
    padding: 32px;

    border: 1px solid #d9d6cf;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.55);
}

.prompt-label {
    margin: 0 0 10px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.15em;

    color: #888;
}

.prompt-card h2 {
    margin: 0 0 12px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
}

.prompt-card p:last-child {
    margin-bottom: 0;

    color: #666;

    line-height: 1.6;
}


/* Composer */

.composer {
    padding: 28px;

    background: #181818;

    border-radius: 18px;

    color: white;

    margin-bottom: 26px;
}

.composer label {
    display: block;

    margin-bottom: 14px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;
}

.composer textarea {
    display: block;

    width: 100%;

    min-height: 120px;

    padding: 0;

    border: none;
    outline: none;
    resize: vertical;

    background: transparent;

    color: white;

    font-family: inherit;
    font-size: 20px;
    line-height: 1.55;
}

.composer textarea::placeholder {
    color: #777;
}

.composer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #333;
}

.anonymous-note {
    font-size: 12px;

    color: #8e8e8e;
}

#sendBtn {
    padding: 12px 20px;

    border: none;
    border-radius: 999px;

    background: white;

    color: #181818;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

#sendBtn:hover {
    transform: translateY(-2px);
}

#sendBtn:disabled {
    cursor: default;
    opacity: 0.45;

    transform: none;
}


/* AI Loading */

.ai-loading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 30px;

    padding: 16px 20px;

    border-radius: 12px;

    background: #ece9e2;

    color: #555;

    font-size: 14px;
}

.loading-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #181818;

    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.25;
        transform: scale(0.75);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Messages */

.messages-section {
    margin-top: 65px;
}

.messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.messages-header h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 30px;
    font-weight: 400;
}

.message-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* Message Card */

.message-card {
    min-height: 240px;

    padding: 26px;

    border: 1px solid #dedbd4;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.72);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.message-card:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.95);
}


/* Artist */

.artist-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;
}

.artist-name {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 24px;
    font-weight: 400;

    letter-spacing: -0.02em;

    color: #181818;
}

.artist-years {
    flex-shrink: 0;

    font-size: 12px;

    color: #999;
}

.artist-description {
    max-width: 90%;

    margin: 0;

    font-size: 13px;
    line-height: 1.55;

    color: #777;
}


/* Divider */

.message-divider {
    height: 1px;

    margin: 24px 0;

    background: #e1ded7;
}


/* Student thought */

.message-text {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;
    line-height: 1.5;

    color: #181818;
}


/* AI explanation */

.match-box {
    margin-top: 26px;

    padding: 15px 16px;

    border-radius: 10px;

    background: #f0eee8;
}

.match-label {
    margin-bottom: 7px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.13em;

    color: #888;
}

.match-text {
    margin: 0;

    font-size: 13px;
    line-height: 1.55;

    color: #555;
}


/* Time */

.message-time {
    margin-top: 20px;

    font-size: 11px;

    color: #aaa;
}


/* Utility */

.hidden {
    display: none !important;
}


/* Mobile */

@media (max-width: 700px) {

    .page {
        width: min(100% - 24px, 1100px);

        padding-top: 30px;
    }

    .header {
        display: block;
    }

    .status {
        margin-top: 25px;
    }

    .message-grid {
        grid-template-columns: 1fr;
    }

    .composer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    #sendBtn {
        width: 100%;
    }
}