/* ─────────────────────────────────────────────────
   Paper — Warm editorial, soft-contrast, literary
   ───────────────────────────────────────────────── */

:root[data-ui-theme="paper"] {
    --bg: #f0e9db;
    --bg-accent: rgba(138, 80, 44, 0.05);
    --text: #2c2420;
    --sidebar-bg: #e9e0cf;
    --sidebar-strong: #f5efe2;
    --border: rgba(76, 56, 38, 0.12);
    --panel-border: rgba(76, 56, 38, 0.58);
    --panel-bg: #f0e8d8;
    --panel-elevated: #f8f2e6;
    --editor-surface: #faf5ea;
    --muted: #63574b;
    --input-border: rgba(76, 56, 38, 0.22);
    --button-bg: #3c3028;
    --button-text: #f8f2e6;
    --link-text: #3c3028;
    --active-bg: #8b3e2f;
    --active-text: #faf5ea;
    --placeholder: #8e7e6c;
    --modal-bg: #f8f2e6;
    --modal-muted: #63574b;
    --backdrop: rgba(44, 36, 32, 0.38);
    --shadow-soft: 0 12px 36px rgba(44, 30, 18, 0.08), 0 1px 3px rgba(44, 30, 18, 0.05);
    --shadow-panel: 0 2px 10px rgba(44, 30, 18, 0.04);
    --focus-ring: 0 0 0 3px rgba(139, 62, 47, 0.16);
    --accent-red: #8b3e2f;
    --accent-blue: #4a5d7c;
    --accent-yellow: #b8903a;
    --font-ui: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Newsreader", Georgia, "Times New Roman", serif;
    --font-body: "Newsreader", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --ui-letter-spacing: 0;
    --radius-panel: 14px;
    --radius-card: 10px;
    --radius-input: 8px;
    --radius-note: 10px;
    --radius-button: 10px;
    --radius-icon: 999px;
    --radius-editor: 14px;
    --radius-status: 12px 12px 0 0;
    --label-letter-spacing: 0.13em;
    --label-transform: uppercase;
    --button-letter-spacing: 0.04em;
    --button-transform: none;
    --button-weight: 600;
    --title-letter-spacing: -0.03em;
    --title-transform: none;
    --title-max-width: none;
    --display-letter-spacing: -0.03em;
    --display-transform: none;
    --display-max-width: 14ch;
    --editor-font-size: 1.12rem;
    --editor-line-height: 1.85;
}

:root[data-ui-theme="paper"] body {
    background: var(--bg);
}

:root[data-ui-theme="paper"] .sidebar {
    border-right-color: var(--border);
    box-shadow: inset -1px 0 0 rgba(255, 245, 225, 0.4);
}

:root[data-ui-theme="paper"] .title-row h1 {
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: none;
}

:root[data-ui-theme="paper"] .sidebar-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

:root[data-ui-theme="paper"] .welcome-hero h2 {
    font-weight: 400;
    line-height: 0.98;
    text-transform: none;
}

:root[data-ui-theme="paper"] .note-link {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 400;
}

:root[data-ui-theme="paper"] .icon-button {
    background: rgba(255, 245, 225, 0.5);
    border-width: 1px;
}

:root[data-ui-theme="paper"] .note-delete,
:root[data-ui-theme="paper"] .note-pin {
    border-width: 1px;
}

:root[data-ui-theme="paper"] .auth {
    border-width: 1px;
    border-color: var(--border);
}

:root[data-ui-theme="paper"] #notes li {
    border-color: var(--border);
}

:root[data-ui-theme="paper"] #notes li.active {
    box-shadow: 0 6px 20px rgba(139, 62, 47, 0.14);
}

:root[data-ui-theme="paper"] .sidebar-count {
    background: var(--accent-red);
}

:root[data-ui-theme="paper"] .welcome-badge {
    background: rgba(184, 144, 58, 0.12);
    border-color: rgba(184, 144, 58, 0.24);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

:root[data-ui-theme="paper"] .welcome-hero,
:root[data-ui-theme="paper"] .welcome-card,
:root[data-ui-theme="paper"] .welcome-footer {
    border-color: var(--border);
}

:root[data-ui-theme="paper"] .editor-body {
    border-color: var(--border);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 245, 225, 0.5);
}

:root[data-ui-theme="paper"] .status-bar {
    box-shadow: 0 -1px 0 rgba(255, 245, 225, 0.35);
}

:root[data-ui-theme="paper"] .modal-card {
    box-shadow: 0 16px 48px rgba(44, 30, 18, 0.14);
}
