:root { color-scheme: light; font-family: system-ui, sans-serif; color: #201c19; background: #f7f3ed; }
body { margin: 0; }
header, main { max-width: 46rem; margin: auto; padding: 1.25rem; }
header, nav, .actions { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
header { justify-content: space-between; border-bottom: 1px solid #d9cfc5; }
h1 { margin: 0; font-size: clamp(1.7rem, 6vw, 2.8rem); }
label { display: grid; gap: .35rem; font-weight: 650; }
#article { display: grid; gap: 1rem; margin-block: 1.5rem; }
[hidden] { display: none !important; }
input, textarea, select, button { box-sizing: border-box; font: inherit; border: 1px solid #786b60; border-radius: .35rem; padding: .65rem; }
input, textarea, select { background: white; color: #201c19; min-width: 0; }
button, #login { background: #79251e; color: white; font-weight: 650; cursor: pointer; }
#login { display: inline-block; border-radius: .35rem; padding: .65rem; }
button:disabled, select:disabled { opacity: .6; }
:focus-visible { outline: 3px solid #15546b; outline-offset: 3px; }
#preview-area { padding: 1rem; border: 1px solid #d9cfc5; background: #fff; overflow-wrap: anywhere; }
#preview-body { white-space: pre-wrap; }
.metadata { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; }
#identity, #branch, small { color: #52443a; font-weight: normal; overflow-wrap: anywhere; }
#cover-preview { max-width: 100%; height: auto; border-radius: .35rem; }
#preview-json { white-space: pre-wrap; overflow-wrap: anywhere; }
#filter { width: 100%; }
#drafts { max-width: min(100%, 28rem); }
header, main { max-width: 76rem; }
.studio-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: 1.5rem; }
#sidebar { border: 1px solid #d9cfc5; padding: 1rem; border-radius: .5rem; align-self: start; }
#sidebar summary { cursor: pointer; font-weight: 650; }
#navigation { display: block; }
#navigation h2 { font-size: .82rem; margin-block: 1rem .25rem; }
#navigation a { display: block; padding: .3rem; }
#navigation a[aria-current] { background: #e8dad0; font-weight: 700; }
.studio-content { min-width: 0; }
#view-content form { display: grid; gap: .75rem; margin-block: 1rem; }
#view-content output { overflow-wrap: anywhere; }
#view-content button { justify-self: start; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin-block: 1rem; }
td, th { padding: .65rem; border-bottom: 1px solid #d9cfc5; text-align: left; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.cover-grid figure { margin: 0; }
.cover-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 680px) { .studio-layout { grid-template-columns: minmax(0, 1fr); } }
.editor-panel { display: grid; gap: .9rem; }
#editor-tabs button[aria-pressed="false"] { background: white; color: #201c19; }
