.notes-page {max-width:1220px;padding-top:32px;padding-bottom:80px;min-height:80vh}
.notes-back {display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.notes-intro {margin:30px 0 40px}
.notes-intro h1 {font:600 clamp(42px,5vw,64px)/1 "Caveat Notes",cursive;color:var(--red);letter-spacing:-.02em}
.notes-intro p {font-size:16px;color:var(--muted);margin-top:18px;max-width:62ch}
.notes-board {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 24px;padding:6px}
.note-card {--paper:#efede5;--tilt:-2deg;position:relative;display:flex;flex-direction:column;align-items:stretch;min-height:180px;width:100%;border:0;padding:20px;text-align:left;background:var(--paper);color:#282920;box-shadow:3px 9px 15px #0002;transform:rotate(var(--tilt));transition:transform .18s ease;overflow-wrap:anywhere}
.note-card:nth-child(3n+2) {--tilt:1.5deg}
.note-card:nth-child(3n) {--tilt:-1deg}
.note-card:nth-child(4) {--tilt:1deg}
.note-card:nth-child(5) {--tilt:-1.5deg}
.note-card::after {content:"";position:absolute;bottom:0;right:0;width:23px;height:23px;background:linear-gradient(135deg,#0001 50%,#fff6 50%)}
.note-card:hover {transform:rotate(0) translateY(-4px)}
.note-card:focus-visible {outline:3px solid var(--bone);outline-offset:6px}
.note-card-title {font:600 26px/1.15 "Caveat Notes",cursive;margin-bottom:16px}
.note-card-preview {font-size:16px;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.note-card-empty {flex:1;min-height:85px;background:repeating-linear-gradient(transparent 0 31px,#2829201a 31px 32px)}
.note-card-status {font:600 21px/1.2 "Caveat Notes",cursive;color:#4d5044;margin-top:18px;max-width:62ch}
.note-dialog {margin:auto;width:min(660px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:0;padding:clamp(28px,5vw,56px);background:var(--paper,#efede5);color:#282920;box-shadow:0 24px 90px #0005}
.note-dialog::backdrop {background:#000a;backdrop-filter:blur(3px)}
.note-dialog h2 {font:600 clamp(34px,5vw,48px)/1.15 "Caveat Notes",cursive;margin:8px 30px 24px 0;overflow-wrap:anywhere}
.note-dialog time {display:block;font-size:14px;color:#515347;margin-bottom:24px}
#note-body {font:17px/1.8 Inter,Arial,sans-serif;overflow-wrap:anywhere}
#note-body p+p {margin-top:1em}
#note-body p {white-space:pre-wrap}
.note-unwritten {min-height:180px;background:repeating-linear-gradient(transparent 0 35px,#2829201a 35px 36px);color:#515347}
.note-close {position:absolute;right:10px;top:10px;width:44px;height:44px;background:none;border:0;color:#282920;font:32px/1 Inter,Arial,sans-serif}
.notes-body:has(.note-dialog[open]) {overflow:hidden}
@media(max-width:850px){.notes-board {grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}.note-card {padding:18px}}
@media(max-width:520px){.notes-page {padding-top:20px}.notes-intro {margin:22px 0 36px}.notes-board {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;padding-inline:4px}.note-card {min-height:166px;padding:14px}.note-card-status {font-size:19px}.notes-intro h1 {font-size:48px}}
@media(prefers-reduced-motion:reduce){.note-card {transition:none}.note-card:hover {transform:rotate(var(--tilt))}}
