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

:root {
    --bg: #f8f4ec;
    --card: #ffffff;

    --text: #111111;
    --muted: #6b7280;

    --border: #111111;

    --accent: #ff6b35;
    --accent-hover: #ff5722;

    --up: #16a34a;
    --down: #dc2626;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.wrap {
    max-width: 850px;
    margin: auto;
    padding: 50px 20px 120px;
}

h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 10px;
}

.tagline {
    color: #000;
    font-size: 18px;
    margin: 20px 0 40px;
}

/* FORM */

#ideaForm {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    background: white;
    border: 3px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    resize: none;
    outline: none;
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    font-family: inherit;
    transition: .15s;
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(255, 107, 53, .15);
}

#ideaForm textarea {
    min-height: 300px;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.button {
    margin-top: 14px;
    background: var(--accent);
    color: white;
    border: 3px solid var(--border);
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 4px 4px 0 #111;
    transition: .15s;
}

.button:hover {
    background: var(--accent-hover);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #111;
}

/* POSTS */

.post {
    background: var(--card);
    border: 3px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 50px;
    box-shadow: 8px 8px 0 #111;
    transition: .15s;
}

.post:hover {
    transform: translate(-2px, -2px);
    box-shadow: 12px 12px 0 #111;
}

.post p {
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
}

.meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

/* VOTES */

.vote-bar {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.vote {
    background: white;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: .15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upvote:hover {
    background: #dcfce7;
    border-color: var(--up);
    color: var(--up);
}

.downvote:hover {
    background: #fee2e2;
    border-color: var(--down);
    color: var(--down);
}

.share:hover {
    background: #f3f4f6;
}

/* REPLIES */

.replies {
    margin-top: 20px;
}

.reply-date {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
}

/* REPLY FORM */

.reply-box {
    margin-top: 20px;
}

.reply-box textarea {
    min-height: 80px;
    border-radius: 12px;
}

.reply-box .button {
    margin-top: 10px;
}

/* ERROR */

.error {
    border-color: var(--down) !important;
    box-shadow: 0 0 0 5px rgba(220, 38, 38, .15);
}

/* SHARED POST HIGHLIGHT */

.post:target,
.highlight-post {
    border-color: var(--accent) !important;
    box-shadow: 8px 8px 0 var(--accent);
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

/* MOBILE */

@media (max-width:768px) {

    .wrap {
        padding: 30px 15px 80px;
    }

    h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .tagline {
        font-size: 16px;
        margin: 10px 0px 25px;
    }

    .post {
        padding: 18px;
        box-shadow: 5px 5px 0 #111;
    }

    .post:hover {
        transform: none;
        box-shadow: 5px 5px 0 #111;
    }

    .post p {
        font-size: 16px;
    }

    .vote {
        flex: 1;
        justify-content: center;
    }

    .button {
        width: 100%;
    }
}

@media (max-width:480px) {

    h1 {
        font-size: 40px;
    }

    .vote {
        width: 100%;
    }

    textarea {
        font-size: 16px;
    }
}