:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #e1e6e2; background: #171c1b; }
body { max-width: 64rem; margin: auto; padding: 1.5rem; line-height: 1.65; }
header { font-weight: 750; padding-block: 1rem; border-bottom: 1px solid #35403c; }
a { color: #97c6af; text-underline-offset: .2em; }
main { max-width: 44rem; min-height: 55vh; padding-block: 4rem; }
h1 { font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.15; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.notice { padding: 1rem; border-left: 3px solid #71877c; background: #252f2b; }
footer { border-top: 1px solid #35403c; padding-block: 1.5rem; font-size: .85rem; }
:focus-visible { outline: 3px solid #dab982; outline-offset: 4px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-block: 1rem; }
nav form { margin: 0; }
.field { margin-block: 1rem; }
.field > label { display: block; }
input:not([type=checkbox]):not([type=hidden]) { display: block; box-sizing: border-box; width: 100%; max-width: 28rem; padding: .7rem; border: 1px solid #71877c; border-radius: .25rem; font: inherit; }
button { padding: .6rem 1rem; border: 1px solid #97c6af; border-radius: .25rem; background: #97c6af; color: #17231d; font: inherit; cursor: pointer; }
.error { color: #f0a09d; }
.book-list { list-style: none; padding: 0; }
.book-list > li { padding-block: 1rem; border-bottom: 1px solid #35403c; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem; }
.stats dd { margin: 0; font-weight: 700; }
.calendar { display: grid; grid-template-columns: repeat(auto-fit, 12px); gap: 4px; margin-block: 1rem 2rem; }
.day { height: 12px; background: #35403c; }
.day.active { background: #97c6af; }

.highlight-text { white-space: pre-wrap; overflow-wrap: anywhere; }
select { max-width: 100%; padding: .55rem .65rem; border: 1px solid #71877c; border-radius: .25rem; font: inherit; }
.library-table-wrap { overflow-x: auto; margin-block: 1rem; }
.library-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
.library-table th, .library-table td { padding: .55rem .65rem; border-bottom: 1px solid #35403c; text-align: left; vertical-align: top; }
.library-table th { background: #252f2b; font-weight: 650; }
.library-table td:first-child { min-width: 10rem; overflow-wrap: anywhere; }
.library-table td:nth-child(2) { min-width: 6rem; overflow-wrap: anywhere; }
.library-table .book-status, .library-table .book-progress { white-space: nowrap; }
.library-table .book-progress { text-align: right; font-variant-numeric: tabular-nums; }
.library-table tbody tr:hover { background: #252f2b; }

input:not([type=checkbox]):not([type=hidden]), select, textarea { color: #e1e6e2; background-color: #202825; }
input[type=checkbox] { accent-color: #97c6af; }

a:hover { color: #b8dfca; }
button:hover { background: #aed5bf; border-color: #aed5bf; }
footer, .eyebrow, .stats dt { color: #aab8b0; }
input::placeholder, textarea::placeholder { color: #aab8b0; opacity: 1; }
::selection { color: #e1e6e2; background: #395c4c; }
textarea { display: block; box-sizing: border-box; width: 100%; min-height: 6rem; padding: .7rem; border: 1px solid #71877c; border-radius: .25rem; font: inherit; }
details { margin-block: 1.5rem; }
summary { cursor: pointer; }
.book-list form { margin-top: .5rem; }
.collections-table td:nth-child(2) { min-width: 0; }
.muted { color: #aab8b0; font-size: .9em; }
.note-entry { margin-block: 0; padding-block: .7rem; border-bottom: 1px solid #35403c; }
.note-entry summary { overflow-wrap: anywhere; }

.reader-search { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block: 1rem 1.5rem; }
.reader-search label { flex-basis: 100%; }
.reader-search input { flex: 1 1 12rem; min-width: 0; }
