@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap');

/* RawBoard — calculator-LCD / e-ink aesthetic */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: #9aa48f;
    color: #1b2416;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: none;
    padding: 40px 16px;
}

::selection { background: #1b2416; color: #c3cbb6; }

a { color: #1b2416; }

/* Keep all content inside the screen, even long unbroken filenames. */
img, video, pre { max-width: 100%; }

/* The "screen" */
.screen {
    max-width: 720px;
    margin: 0 auto;
    background: #c3cbb6;
    border: 2px solid #1b2416;
    box-shadow: 0 0 0 1px #9aa48f, 0 0 0 4px #7c8770;
    padding: 34px 40px;
}

/* Header emblem + wordmark */
.brand-link {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #1b2416;
    margin-bottom: 28px;
}

.emblem {
    display: inline-block;
    text-align: left;
    margin: 0;
    font-family: inherit;
    font-size: 23px;
    line-height: 0.82em;
    letter-spacing: -1px;
    font-weight: 600;
    color: #1b2416;
}

.wordmark {
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 600;
    margin-top: 12px;
}

/* List */
.items { margin: 0; }

.item {
    padding: 16px 0;
}

.item + .item {
    border-top: 1px dashed #7c8770;
}

.item-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.item-title a { text-decoration: none; }
.item-title a:hover { text-decoration: underline; }

.item-meta {
    margin-top: 6px;
    font-size: 11px;
    color: #586150;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.item-meta a { color: #586150; }

.empty {
    color: #586150;
    text-align: center;
    padding: 20px 0;
}

/* Pagination */
.pager {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
}

.pager a,
.pager span {
    padding: 0 6px;
    text-decoration: none;
}

.pager a:hover { text-decoration: underline; }
.pager .current { font-weight: 600; text-decoration: underline; }
.pager .disabled { color: #9aa48f; }

.count {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    color: #586150;
}

/* Detail */
.back {
    font-size: 12px;
    margin-bottom: 18px;
}

.detail-media { margin: 0 0 18px; }

.detail-media img,
.detail-media video {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #7c8770;
}

.detail-meta {
    font-size: 11px;
    color: #586150;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-meta a { color: #586150; }

/* Add / upload form */
h1 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 8px;
}

label {
    display: block;
    font-size: 12px;
    margin: 16px 0 6px;
    color: #586150;
}

input[type="file"],
input[type="password"] {
    font-family: inherit;
    font-size: 13px;
    color: #1b2416;
    background: #c3cbb6;
    border: 1px solid #1b2416;
    padding: 6px 8px;
    width: 100%;
}

button {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #c3cbb6;
    background: #1b2416;
    border: none;
    padding: 8px 18px;
    margin-top: 18px;
    cursor: pointer;
}

button:hover { background: #586150; }

#status {
    margin-top: 14px;
    font-size: 12px;
    color: #586150;
}
