.site-header,
.site-footer,
body,
.card,
.hero,
input,
textarea,
select {
    color-scheme: dark;
}

body {
    color: #fff7ea;
    background:
        radial-gradient(circle at 0% 0%, rgba(112, 55, 0, .82), transparent 34rem),
        linear-gradient(105deg, #241c00 0%, #101900 45%, #032612 100%);
}

.site-header {
    background: rgba(11, 14, 9, .92);
    border-bottom-color: rgba(197, 132, 25, .5);
}

.site-footer {
    color: #dccaa7;
}

.card,
.hero {
    background: rgba(11, 14, 13, .94);
    border-color: rgba(197, 132, 25, .55);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

input,
textarea,
select {
    color: #fff7ea;
    background: #090c0b;
    border-color: rgba(197, 132, 25, .75);
}

input::placeholder,
textarea::placeholder {
    color: #8f8879;
}

figcaption,
.meta,
small,
.hint {
    color: #d1c1a5;
}

.stats p {
    background: rgba(244, 154, 38, .08);
}

.pills a {
    background: rgba(38, 122, 76, .3);
}

.list-item,
.reply,
th,
td {
    border-bottom-color: rgba(197, 132, 25, .45);
}

a {
    color: #9effce;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #d1c1a5;
    font-weight: 800;
}

.language-switch a {
    text-decoration: none;
}

.language-switch a[aria-current="true"] {
    color: #ff9a2d;
}

.notice,
.success {
    color: #eaffef;
    background: rgba(20, 101, 53, .28);
    border-color: rgba(91, 190, 111, .55);
}

.alert {
    color: #fff2eb;
    background: rgba(139, 49, 17, .32);
    border-color: rgba(239, 137, 82, .65);
}

.photo-detail .detail-photo {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #171b18;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.photo-detail figcaption h1 {
    max-width: 58rem;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.3;
    font-weight: 700;
    margin: .85rem 0 .35rem;
    color: #e3d2b5;
}

.photo-detail figcaption p {
    margin: .35rem 0;
}

.photo-grid figcaption {
    margin-top: .45rem;
    font-size: .92rem;
    line-height: 1.35;
}

.photo-grid figcaption small {
    font-size: .78rem;
}

hr {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    margin: .5rem 0;
}

.moderation-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    margin-top: 1rem;
}

.moderation-actions form {
    display: inline;
}

.report-box {
    margin-top: .8rem;
    color: #d1c1a5;
}

.report-box summary {
    display: inline-block;
    cursor: pointer;
    color: #d1c1a5;
    font-size: .92rem;
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.report-box form {
    margin-top: .65rem;
    max-width: 520px;
}

.report-box button {
    width: fit-content;
    padding-block: .5rem;
}

.site-notice {
    border-color: rgba(91, 190, 111, .5);
    background: rgba(12, 42, 27, .88);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.album-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: .85rem;
    align-items: center;
    padding: .8rem;
    border: 1px solid rgba(197, 132, 25, .55);
    border-radius: 18px;
    background: rgba(8, 20, 14, .72);
    text-decoration: none;
}

.album-card img,
.album-empty {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(197, 132, 25, .55);
}

.album-empty {
    display: grid;
    place-items: center;
    color: #ff9a2d;
    font-weight: 900;
    font-size: 2rem;
    background: rgba(31, 111, 74, .35);
}

.album-card-body {
    display: grid;
    gap: .25rem;
}

.album-card-body strong {
    color: #fff7ea;
}

.album-card-body span,
.album-card-body small {
    color: #d1c1a5;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pagination span {
    color: #d1c1a5;
    font-weight: 800;
}

.card > h1,
.hero h1,
.board-toolbar h1 {
    color: #f4eadc;
}

.brand-text {
    color: #f4eadc;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .card > h1,
    .hero h1,
    .board-toolbar h1,
    .brand-text {
        background: linear-gradient(92deg, #36b65d 0%, #f0cf45 52%, #ff7a21 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 18px rgba(255, 122, 33, .14);
    }
}

.compose-box summary {
    width: fit-content;
    list-style: none;
}

.compose-box summary::-webkit-details-marker {
    display: none;
}

.compose-box form {
    margin-top: 1rem;
}

.board-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 1.25rem;
    align-items: start;
}

.board-toolbar h1 {
    margin-bottom: .45rem;
}

.board-toolbar p {
    margin-bottom: 1rem;
}

.compact-search {
    align-self: start;
}

.compact-search label {
    font-size: .9rem;
}

.compact-search input {
    min-height: 2.3rem;
}

.compact-search button {
    padding-block: .55rem;
}

@media (max-width: 760px) {
    .board-toolbar {
        grid-template-columns: 1fr;
    }
}
