/* Fable: Risograph — a two-ink riso zine: fluorescent pink and federal blue
   overprinted on rough paper, with deliberate misregistration everywhere. */

body, input, button, textarea, select {
    font-family: 'Futura', 'Century Gothic', 'Avant Garde', 'Trebuchet MS', sans-serif;
    font-size: 10.5pt;
    color: #1a3a8f;
}

body {
    background-color: #f4f0e6;
    background-image:
        radial-gradient(circle 1px at 30% 40%, rgba(26, 58, 143, .06) 0%, transparent 100%),
        radial-gradient(circle 1px at 70% 20%, rgba(255, 72, 176, .06) 0%, transparent 100%);
    background-size: 5px 5px, 7px 7px;
}

.wrapper { max-width: 860px; }

header {
    background: #ff48b0;
    color: #f4f0e6;
    border-radius: 0;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    padding: 8px 12px;
    /* blue plate printed slightly off */
    box-shadow: 4px 4px 0 #1a3a8f;
    margin-bottom: 8px;

    a { color: #f4f0e6; }
}

.subheader {
    background: transparent;

    .title {
        color: #1a3a8f;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 2px 2px 0 rgba(255, 72, 176, .55);

        a { color: #1a3a8f; }
    }
    .title .thread-views { color: #7a6f60; text-shadow: none; text-transform: none; }
}

.boards h2, .recent-attachments h2, .recent-posts-header h2 {
    color: #ff48b0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 rgba(26, 58, 143, .5);

    a { color: #ff48b0; }
}

.board, .post, .thread, .thread-warning, .flashed-message, .recent-post {
    background: #f4f0e6;
    border: 2px solid #1a3a8f;
    color: #1a3a8f;
    margin-bottom: 12px;
    /* the pink pass didn't line up */
    box-shadow: 5px 5px 0 rgba(255, 72, 176, .65);
}

.board .name, .thread .name, .recent-post .name {
    color: #1a3a8f;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: bold;
}
.board .description { color: #7a6f60; }
.thread {
    .author { color: #ff48b0; }
    .time, .view-count { color: #7a6f60; a { color: #7a6f60; } }
    .reply-count { color: #1a3a8f; font-weight: bold; }
    &:visited .name { color: #6a5a9f; }
}

a { color: #ff48b0; text-decoration: underline; text-decoration-thickness: 2px; }
a:visited { color: #b03a8a; }
a:hover { color: #1a3a8f; }

.post {
    .author { color: #ff48b0; }
    .time a { color: #7a6f60; }
    .ip_hash { background: #1a3a8f; color: #f4f0e6; }
    .text {
        color: #232323;
        line-height: 1.6;

        .greentext { color: #1a3a8f; font-style: italic; }
        .title { color: #ff48b0; text-transform: uppercase; }
    }
    .post-buttons .post-button {
        background: #f4f0e6;
        border: 2px solid #1a3a8f;
        color: #ff48b0;
    }
}

.posts .post-meta {
    background: rgba(26, 58, 143, .08);
    border-top: 2px solid #1a3a8f;

    a { color: #ff48b0; }
}

:is(.subheader .right .button, form input[type=submit]) {
    background: #1a3a8f;
    color: #f4f0e6;
    border: 0;
    border-radius: 0;
    text-shadow: none;
    letter-spacing: 2px;
    font-family: inherit;
    box-shadow: 3px 3px 0 #ff48b0;

    &:hover { background: #ff48b0; box-shadow: 3px 3px 0 #1a3a8f; }
}

.form, form { background: rgba(255, 72, 176, .07); border: 2px solid #1a3a8f; }

input[type=text], input[type=password], input[type=number], textarea, select {
    background: #fffdf6;
    border: 2px solid #1a3a8f;
    color: #232323;
    font-family: inherit;

    &:focus { outline: 3px solid rgba(255, 72, 176, .5); }
}

.pager {
    a, span, span.current {
        background: #f4f0e6;
        border: 2px solid #1a3a8f;
        color: #1a3a8f;
        border-radius: 0;
        font-weight: bold;
    }
    span.current { background: #ff48b0; color: #f4f0e6; border-color: #1a3a8f; }
    a:hover { background: #1a3a8f; color: #f4f0e6; }
}

.recent-attachments-gallery .recent-attachment {
    background: #f4f0e6;
    border: 2px solid #1a3a8f;
    box-shadow: 4px 4px 0 rgba(255, 72, 176, .65);
}

mark { background: #ff48b0; color: #f4f0e6; }

.sort-bar {
    color: #7a6f60;
    text-transform: uppercase;
    letter-spacing: 1px;
    a { color: #1a3a8f; &.sort-active { color: #ff48b0; } }
}

.thread-warning {
    background: rgba(255, 72, 176, .12);
    &.thread-deleted-notice { color: #d0202a; }
}
.flashed-message { border-color: #ff48b0; }
.no-threads { color: #7a6f60; text-transform: uppercase; letter-spacing: 2px; }

footer {
    color: #7a6f60;
    a { color: #1a3a8f; }
}
