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

:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --text: #000000;
    --muted: #6b6b6b;
    --border: #000000;
    --logo-filter: invert(1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --text: #ffffff;
        --muted: #b3b3b3;
        --border: #ffffff;
        --logo-filter: none;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 16px;
    line-height: 1.5;
}

.logo {
    width: 64px;
    height: 64px;
    display: block;
    filter: var(--logo-filter);
}

.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

a {
    color: inherit;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

h1 {
    font-size: 28px;
    letter-spacing: 1px;
    margin: 0 0 24px;
}

h2 {
    font-size: 18px;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.card {
    padding: 3px;
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    gap: 12px;
}

label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
textarea,
select,
button {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: inherit;
    background: transparent;
    border: 1px solid var(--border);
    padding: 10px 12px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-inline {
    width: auto;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    color: inherit;
    background: transparent;
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.muted {
    color: var(--muted);
    font-size: 12px;
}

.display-name {
    color: var(--text);
    font-weight: bold;
    font-size: 24px;
}

.handle {
    color: var(--muted);
    font-size: 14px;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.row > * {
    flex: 1 1 auto;
}

.row.pagination {
    align-items: center;
}

.row.pagination > * {
    flex: 0 0 auto;
}

.row.pagination .pagination-label {
    margin: 0 auto;
}

.row.inline-row {
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.row.inline-row > * {
    flex: 0 0 auto;
}

.row.inline-row input {
    flex: 1 1 auto;
}

.row.inline-row .link-display {
    flex: 1 1 0;
    border: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.link-display,
.row.inline-row .button-inline {
    min-height: 44px;
}

.profile {
    display: flex;
    gap: 12px;
    align-items: center;
}

.question-cw summary {
    cursor: pointer;
    list-style: none;
}

.question-cw summary::-webkit-details-marker {
    display: none;
}

.emoji-picker details {
    width: 100%;
}

.emoji-picker summary {
    cursor: pointer;
    list-style: none;
}

.emoji-picker summary::-webkit-details-marker {
    display: none;
}

.emoji-picker-panel {
    margin-top: 8px;
}

.emoji-picker em-emoji-picker {
    width: 100%;
}

.avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.spacer {
    height: 12px;
}
