/* Notes: a pocket notebook. Cream paper, ink text, a pencil-yellow highlight for pins and checks. */
:root { --page: #f6f3ec; --card: #fffdf7; --ink: #1d1b17; --soft: #67604f; --line: #e1dbcd; --field: #fffdf7; --act: #8a5a00; --on-act: #ffffff; --stop: #b3261e; --pin: #f2c230; --wide: 760px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #161513; --card: #1f1d1a; --ink: #ece6d8; --soft: #a69e8c; --line: #34302a; --field: #1f1d1a; --act: #f2c230; --on-act: #241a00; --stop: #ff8a80; --pin: #f2c230; color-scheme: dark; }
}
.notes { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.notes button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.notes button:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; }
.notes b { display: block; font-size: 17px; } .notes .pinned b::before { content: "● "; color: var(--pin); }
.notes span { display: block; color: var(--soft); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more { margin-top: 24px; } .more summary { cursor: pointer; color: var(--soft); font-weight: 600; margin-bottom: 10px; }
.button-like { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; }
.button-like input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.bar { position: sticky; top: 0; background: var(--page); padding: 8px 0; z-index: 2; flex-wrap: wrap; }
#text { width: 100%; min-height: 70vh; font: 17px/1.6 ui-monospace, "SF Mono", Menlo, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; resize: vertical; }
.read { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 20px 16px; min-height: 50vh; line-height: 1.6; overflow-wrap: anywhere; }
.read pre { background: var(--page); padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; } .read code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }
.read blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--pin); color: var(--soft); white-space: pre-line; }
.read p { white-space: pre-line; } .read hr { border: 0; border-top: 1px solid var(--line); }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; cursor: pointer; font-weight: 400; }
.task input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--act); flex: none; }
.task.done span { text-decoration: line-through; color: var(--soft); }
