:root { --paper: #EDEAE1; --surface: #F8F6F0; --ink: #211E19; --muted: #756E60; --hairline: #DBD6C7; --hairline-strong: #C9C2AE; --clay: #C47A4A; --clay-deep: #A8623A; --moss: #55684B; --accent-soft: #FBEFE6; --muted-soft: #E6E2D3; --thumb-1: #E4DFD0; --thumb-2: #D8D2BF; --danger: #A8412D; --danger-soft: #E3B7A9; --toast-accent: #E2905F; --shadow: 0 1px 2px rgba(33, 30, 25, 0.06), 0 6px 16px rgba(33, 30, 25, 0.05); color-scheme: light; } /* Dark palette: applied when the user forces dark mode ([data-theme="dark"]), or leaves it on "system" (anything but [data-theme="light"]) and the OS prefers dark. */ @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #1B1815; --surface: #242019; --ink: #EEE8DC; --muted: #A89E8C; --hairline: #3A342A; --hairline-strong: #4A4234; --clay: #E2905F; --clay-deep: #F0AC80; --moss: #8CA378; --accent-soft: rgba(224, 144, 95, 0.16); --muted-soft: #332D22; --thumb-1: #2C2720; --thumb-2: #221E18; --danger: #E2836C; --danger-soft: rgba(226, 131, 108, 0.35); --toast-accent: #A8623A; --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.4); color-scheme: dark; } } :root[data-theme="dark"] { --paper: #1B1815; --surface: #242019; --ink: #EEE8DC; --muted: #A89E8C; --hairline: #3A342A; --hairline-strong: #4A4234; --clay: #E2905F; --clay-deep: #F0AC80; --moss: #8CA378; --accent-soft: rgba(224, 144, 95, 0.16); --muted-soft: #332D22; --thumb-1: #2C2720; --thumb-2: #221E18; --danger: #E2836C; --danger-soft: rgba(226, 131, 108, 0.35); --toast-accent: #A8623A; --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.4); color-scheme: dark; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .page { max-width: 1100px; margin: 0 auto; padding: 56px 32px 80px; } /* --- Masthead --- */ .masthead { margin-bottom: 36px; } .masthead-title { display: flex; align-items: baseline; gap: 12px; } .masthead-title .mark { font-size: 26px; transform: translateY(2px); } .masthead h1 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; font-size: 40px; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--ink); } .tally { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; } #archivedNote { margin-left: 6px; } /* --- Toolbar --- */ .toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; } #search { flex: 1 1 240px; min-width: 180px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--surface); font-size: 14px; color: var(--ink); } #search:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; } select#sortSelect { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--surface); font-size: 13px; color: var(--ink); font-family: inherit; } .control-group { display: flex; gap: 6px; } .toggle-btn, .ghost-btn { border: 1px solid var(--hairline); background: var(--surface); color: var(--muted); border-radius: 8px; padding: 9px 12px; font-size: 14px; cursor: pointer; line-height: 1; } .toggle-btn[aria-pressed="true"] { color: var(--clay-deep); border-color: var(--clay); background: var(--accent-soft); } .toggle-btn:focus-visible, .ghost-btn:focus-visible, select:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; } .ghost-btn { white-space: nowrap; font-family: inherit; } .ghost-btn.active { color: var(--clay-deep); border-color: var(--clay); background: var(--accent-soft); } /* --- Settings panel --- */ .settings-wrap { position: relative; display: inline-block; } .settings-panel { display: block; position: absolute; top: calc(100% + 6px); right: 0; left: auto; z-index: 20; width: 220px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow); padding: 14px; } .settings-panel[hidden] { display: none; } .settings-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); } .settings-row + .settings-row { margin-top: 10px; } .settings-period input[type="number"] { width: 64px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--hairline); background: var(--paper); font: inherit; color: var(--ink); } .settings-period select { flex: 1; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--hairline); background: var(--paper); font: inherit; color: var(--ink); } .settings-theme { justify-content: space-between; } .settings-theme select { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--hairline); background: var(--paper); font: inherit; color: var(--ink); } .settings-divider { border: none; border-top: 1px solid var(--hairline); margin: 12px 0; } .settings-hint { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; } .settings-error { margin: 6px 0 0; font-size: 11.5px; color: var(--danger); line-height: 1.4; } /* --- Tags filter popover --- */ .tags-wrap { position: relative; display: inline-block; } .tags-panel { display: block; position: absolute; top: calc(100% + 6px); right: 0; left: auto; z-index: 20; width: 220px; max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow); padding: 14px; } .tags-panel[hidden] { display: none; } .tags-list { display: flex; flex-wrap: wrap; gap: 6px; } /* --- Tag chips (shared by cards and the tags-filter popover) --- */ .tag-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--clay-deep); border: none; font-family: inherit; cursor: pointer; } .tag-chip-label { cursor: pointer; } .tag-chip:hover .tag-chip-label, .tag-chip-filter:hover { text-decoration: underline; } .tag-remove { background: none; border: none; color: var(--clay-deep); cursor: pointer; font-size: 12px; line-height: 1; padding: 0; opacity: 0.7; } .tag-remove:hover { opacity: 1; } .card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; } .tag-add-btn { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: transparent; border: 1px dashed var(--hairline-strong); color: var(--muted); cursor: pointer; font-family: inherit; } .tag-add-btn:hover { color: var(--ink); border-color: var(--clay); } .tag-input { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--paper); color: var(--ink); font-family: inherit; width: 120px; } /* --- Shelf: grid view (library index cards) --- */ .shelf[data-view="grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; } .card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; } .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(33,30,25,0.08), 0 10px 22px rgba(33,30,25,0.08); } .card-due { border-color: var(--clay); box-shadow: 0 0 0 2px rgba(196, 122, 74, 0.25), var(--shadow); } .due-badge { font-size: 10px; padding: 2px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--clay-deep); font-family: ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.04em; } .card-thumb { height: 120px; background: linear-gradient(135deg, var(--thumb-1), var(--thumb-2)); display: flex; align-items: center; justify-content: center; overflow: hidden; } .card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .card-thumb .favicon-fallback { width: 34px; height: 34px; border-radius: 6px; background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 16px; color: var(--clay-deep); border: 1px solid var(--hairline); } .card-perf { border-top: 1px dashed var(--hairline); } .card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; } .card-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-title:hover { color: var(--clay-deep); } .card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; margin-top: auto; } .card-actions { display: flex; gap: 6px; margin-top: 8px; } .icon-btn { border: 1px solid var(--hairline); background: transparent; border-radius: 6px; font-size: 12px; padding: 5px 9px; color: var(--muted); cursor: pointer; font-family: inherit; } .icon-btn:hover { color: var(--ink); border-color: var(--hairline-strong); } .icon-btn.danger:hover { color: var(--danger); border-color: var(--danger-soft); } /* --- Shelf: list view (bookshelf spines) --- */ .shelf[data-view="list"] { display: flex; flex-direction: column; gap: 8px; } .shelf[data-view="list"] .card { flex-direction: row; align-items: stretch; height: 64px; } .shelf[data-view="list"] .spine { width: 6px; flex-shrink: 0; } .shelf[data-view="list"] .card-thumb { width: 64px; height: 64px; flex-shrink: 0; } .shelf[data-view="list"] .card-perf { display: flex; flex: 1; min-width: 0; border-top: none; border-left: 1px dashed var(--hairline); } .shelf[data-view="list"] .card-body { flex-direction: row; align-items: center; gap: 14px; padding: 0 14px; flex: 1; min-width: 0; } .shelf[data-view="list"] .card-title { -webkit-line-clamp: 1; flex: 1; min-width: 0; } .shelf[data-view="list"] .card-meta { flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 0; white-space: nowrap; } .shelf[data-view="list"] .card-actions { margin-top: 0; margin-left: auto; flex-shrink: 0; } /* --- Spotlight: "Worth a second look" strip --- */ .spotlight { margin-bottom: 28px; } .spotlight-heading { font-family: Georgia, serif; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; } .spotlight-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; } .spotlight-strip .card { flex: 0 0 200px; width: 200px; } .spotlight-strip .card-thumb { height: 90px; } .archived-badge { font-size: 10px; padding: 2px 6px; border-radius: 999px; background: var(--muted-soft); color: var(--muted); font-family: ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.04em; } /* --- Empty state --- */ .empty-state { text-align: center; padding: 80px 20px; color: var(--muted); } .empty-title { font-family: Georgia, serif; font-size: 20px; color: var(--ink); margin-bottom: 6px; } .empty-sub { font-size: 14px; max-width: 380px; margin: 0 auto; } /* --- Toast --- */ .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); } .toast-action { margin-left: 8px; background: none; border: none; color: var(--toast-accent); text-decoration: underline; cursor: pointer; font: inherit; } @media (prefers-reduced-motion: reduce) { .card { transition: none; } } @media (max-width: 560px) { .page { padding: 32px 16px 60px; } .masthead h1 { font-size: 30px; } .spotlight-strip .card { flex-basis: 160px; width: 160px; } }