/* Notebook pages keep the original small software-house sheet and inks. */
.notebook {line-height:1.42}
.notebook-intro {max-width:37em}
.notebook-byline,.entry-meta,.notebook-dates,.entry-links,.browse-start {font-size:.875rem}
.notebook-byline {color:#625442;border-bottom:3px double #a89d8e;padding-bottom:9px}
.notebook button,.notebook input,.notebook select {font:inherit;max-width:100%;min-width:0}
.notebook button {padding:4px 9px;cursor:pointer;background:#d5d1c8;color:#171310;border:2px outset #e5e2d9}
.notebook button:active {border-style:inset}
.notebook button:disabled {color:#777;cursor:default}
.notebook input,.notebook select {background:#fffef9;color:#171310;padding:5px 6px;border:2px inset #c9c3b6;border-radius:0}
.notebook select {appearance:none;padding-right:24px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%233c352b' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 7px center}
.diary-filters {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 9px;padding:10px 8px;border:1px solid #a99b84;background:#f3f1e8}
.diary-filters label {display:grid;gap:3px;font-size:.875rem}
.diary-filters select {width:100%;font-size:1rem}
.notebook-dates {display:flex;flex-wrap:wrap;gap:3px 11px;padding-bottom:8px;border-bottom:1px dotted #a89d8e}
.notebook-dates a[aria-current] {color:#47280b;font-weight:bold}
.notebook .diary-card {display:grid;grid-template-columns:156px minmax(0,1fr);gap:12px;padding:14px 0;margin:0;border-top:1px dotted #908470}
.diary-thumb {align-self:start;padding:3px;border:1px solid #766955;background:#dfd9ca;box-shadow:2px 2px #c5beae}
.diary-thumb img {width:100%;height:auto}
.diary-card h2 {font-size:1.19rem;margin:2px 0 6px}
.diary-card p {margin-bottom:5px}
.entry-meta {font-family:var(--mono);font-size:.875rem;color:#674627;line-height:1.3}
.diary-card .entry-meta {font-family:inherit}
.diary-pagination {display:flex;gap:8px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px dotted #908470}
.diary-pagination span {font-size:.875rem;text-align:center}
.empty-notebook {padding:20px 0;font-style:italic}
.complete-index {border:1px solid #a89d8e;background:#f3f1e8;padding:8px;margin:14px 0}
.complete-index summary {cursor:pointer;font-weight:bold}
.complete-index ol {list-style:none;margin:10px 0 0;padding:0}
.complete-index li {padding:5px 0;border-bottom:1px dotted #bbb2a1;line-height:1.3}
.complete-index time {display:inline-block;min-width:54px;color:#634826;font-size:.875rem}
.complete-index span {font-style:italic;font-size:.875rem}
.archive-note {color:#5c5143;font-style:italic;font-size:.875rem}
.back-to-notebook {font-size:.875rem;margin:2px 0 15px}
.entry-heading {border-bottom:3px double #a99a81;margin-bottom:15px}
.entry-heading h1 {font-size:2rem;margin-top:7px}
.entry-heading .signature {font-size:.95rem;margin:8px 0}
.entry-body {font-size:1.075rem;line-height:1.5;margin-bottom:17px}
.diary-figure {margin:17px 0 22px}
.diary-figure img {width:100%;height:auto;border:1px solid #766955;box-shadow:2px 2px #c5beae}
.diary-figure figcaption {font-size:.875rem;line-height:1.4;margin-top:6px}
.original-note {margin:18px 0;border-left:3px double #a99a81;padding:0 0 0 12px}
.original-note h2 {font-size:1.1rem}
.related-notes {margin:15px 0;padding:9px;border:1px dotted #a99a81;background:#f3f1e8}
.related-notes ul {padding-left:19px;margin:5px 0}
.related-notes span {font-size:.875rem;color:#63533f}
.entry-turns {display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0 10px;border-top:3px double #a99a81;padding-top:10px}
.entry-turns a:last-child {text-align:right}
.entry-turns small {display:block;color:#5d4d38;font-size:.875rem;margin-bottom:3px}
@media(max-width:450px){.notebook .diary-card{grid-template-columns:100px minmax(0,1fr);gap:10px}.diary-card h2{font-size:1.1rem}.diary-filters{padding:8px 6px}.entry-heading h1{font-size:1.7rem}.diary-pagination{gap:4px}.diary-pagination button{padding:4px 5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
