:root {
    color-scheme: light;
    --paper: #faf7f2;
    --ink: #2c2421;
    --plum: #73183c;
    --border: #decfc4;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.65 system-ui, sans-serif;
    border-top: 4px solid #ce8736;
}
a { color: var(--plum); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #ab5a27; outline-offset: 3px; }
.reader-header, .reader-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    max-width: 58rem;
    margin: 0 auto;
    padding: 1rem clamp(1rem, 5vw, 2.5rem);
}
.reader-header a:first-child { font: 1.5rem Georgia, serif; text-decoration: none; }
.reader-content {
    max-width: 50rem;
    margin: clamp(1.5rem, 6vw, 5rem) auto;
    padding: clamp(1.25rem, 5vw, 3.25rem);
    background: #fff;
    border: 1px solid var(--border);
    overflow-wrap: anywhere;
}
.reader-label { color: var(--plum); margin: 0; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.15; font-weight: 400; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin: .35em 0 .75em; }
img, video, iframe, input { max-width: 100%; }
img, video { height: auto; }
label { display: block; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    width: min(100%, 27rem);
    min-height: 2.75rem;
    border: 1px solid #a8948a;
    border-radius: .2rem;
    padding: .4rem .65rem;
    font: inherit;
}
button, input[type="submit"] {
    display: inline-block;
    min-height: 2.75rem;
    border: 1px solid var(--plum);
    background: var(--plum);
    color: #fff;
    border-radius: .2rem;
    padding: .5rem 1.15rem;
    font: inherit;
    cursor: pointer;
}
.reader-footer { border-top: 1px solid var(--border); justify-content: flex-start; }
@media (max-width: 52rem) { .reader-content { margin-inline: 1rem; } }

.reader-content .blog:has(> .category-desc #login-form) > h2:first-child { display: none; }
.reader-content .category-desc:has(#login-form) > .item-image img {
    display: block;
    max-height: 9rem;
    width: auto;
    margin-bottom: 1rem;
}
