/* ——— Palette, chosen 16 Nov 2026 ———
   Night 1 · "Въглен": warm black and a cream paper that no longer glares.
   Day 2 · "Утро": almost white, white paper, black ink lines, gold only as an accent.
   Written last, so it wins over the earlier mode colours; the day lines and room,
   once white on gold, are drawn in ink on the light ground. */
:root{--ink:#24211D;--paper:#E9E2D2;--gold:#8C6E40;--frame-bg:#1F1D1A;--frame-fg:#E4DCCB;--edge:#8C6E40;--hatch:#4A463E;--study-ink:#857C6C}
.sheet-1{--sheet-color:#D3CAB7}.sheet-2{--sheet-color:#DCD4C2}.sheet-3{--sheet-color:#E3DBCA}.sheet-4{--sheet-color:#E9E2D2}

:root[data-mode="day"]{--ink:#1F1D1A;--paper:#FFFFFF;--gold:#96773F;--frame-bg:#F5F2EB;--frame-fg:#1F1D1A;--edge:#96773F;--hatch:rgba(31,29,26,.16);--study-ink:rgba(31,29,26,.6)}
:root[data-mode="day"] .sheet-1{--sheet-color:#ECE6DA}:root[data-mode="day"] .sheet-2{--sheet-color:#F2EDE3}
:root[data-mode="day"] .sheet-3{--sheet-color:#F7F3EB}:root[data-mode="day"] .sheet-4{--sheet-color:#FCFAF5}  /* a warm hint of paper, not pure white */
:root[data-mode="day"] .paper-sheet{border-color:rgba(70,59,40,.1);box-shadow:0 2px 6px #4a3f2a14,0 12px 28px #4a3f2a14}
:root[data-mode="day"] .study-poodle.is-alert .poodle-eye{color:#1F1D1A}
:root[data-mode="day"] .study-journal-key{color:rgba(31,29,26,.7)}
:root[data-mode="day"] .study-wall-thought{color:#4A4035}
:root[data-mode="day"] .scene-object-link:is(:hover,:focus-visible,.is-inviting) .diary-drawing,
:root[data-mode="day"] .scene-object-link:is(:hover,:focus-visible,.is-inviting) .pen-drawing,
:root[data-mode="day"] .diary-link:is(:hover,:focus-visible,.is-inviting) .study-journal-key{color:#1F1D1A}
:root[data-project][data-mode="day"] .project1-home[data-map-destination="walk"] .study-window :is(.window-casing,.window-church,.window-sash-outline,.window-sash-rails,.window-handle),
:root[data-project][data-mode="day"] .project1-home[data-map-destination="world"] .diary-link,
:root[data-project][data-mode="day"] .project1-home[data-map-destination="articles"] .pen-link,
:root[data-project][data-mode="day"] .project1-home[data-map-destination="podcast"] .podcast-screen,
:root[data-project][data-mode="day"] .room-home[data-map-destination="walk"] .study-window :is(.window-casing,.window-church,.window-sash-outline,.window-sash-rails,.window-handle),
:root[data-project][data-mode="day"] .room-home[data-map-destination="world"] .diary-link,
:root[data-project][data-mode="day"] .room-home[data-map-destination="articles"] .pen-link,
:root[data-project][data-mode="day"] .room-home[data-map-destination="podcast"] .podcast-screen{color:#1F1D1A}

/* Day: Rafa is a brown poodle. Warm brown ink for the outline, the curls drawn
   clearly in a deeper brown, and a soft tan coat under them. */
:root[data-mode="day"] .study-poodle{color:rgba(66,40,20,.95)}
:root[data-mode="day"] .study-poodle .poodle-coat{color:#6B4022;opacity:1}
:root[data-mode="day"] .study-poodle .poodle-neck-curls{opacity:.9}
:root[data-mode="day"] .study-poodle .poodle-occlusion{fill:color-mix(in srgb,#B98455 13%,var(--frame-bg))}
:root[data-mode="day"] .study-poodle .poodle-neck-bridge > path:first-child{fill:color-mix(in srgb,#B98455 13%,var(--frame-bg))}
:root[data-mode="day"] .study-poodle .poodle-eye{opacity:1}

/* Day: the landscape behind the paper drawn a touch darker, so its lines read. */
:root[data-mode="day"] .scene-background{--hatch:rgba(31,29,26,.27);color:var(--hatch)}
/* The curls and outline are masks made from a light pencil scan; in day the scan is
   brightened inside the mask, so the same strokes print darker and clearer. */
:root[data-mode="day"] #poodle-coat-ink image{filter:brightness(2.1) contrast(1.25)}
:root[data-mode="day"] #poodle-ink image{filter:brightness(1.45) contrast(1.15)}

/* One night ground on every page: the same deep warm olive as the home page. */
:root:not([data-mode="day"]){--frame-bg:#1D1F1B}

/* Day ground: a slightly dirtier, warmer off-white (unbleached paper), on every page. */
:root[data-mode="day"]{--frame-bg:#EFEDE7}
/* The key on the books: old brass. A worn brass body and dark bronze lines, in day and night. */
.study-journal-key .key-metal-silhouette{fill:color-mix(in srgb,#B08A4A 55%,var(--frame-bg));stroke:color-mix(in srgb,#B08A4A 55%,var(--frame-bg))}
.study-journal-key,:root[data-mode="day"] .study-journal-key{color:#5E4524}
:root:not([data-mode="day"]) .study-journal-key{color:#3A2A15}
:root:not([data-mode="day"]) .study-journal-key .key-metal-silhouette{fill:#9A7A44;stroke:#9A7A44}
:root[data-mode="day"] .diary-link:is(:hover,:focus-visible,.is-inviting) .study-journal-key{color:#4A3519}
/* Day: the brass greyer, like old tarnished metal on paper. */
:root[data-mode="day"] .study-journal-key .key-metal-silhouette{fill:color-mix(in srgb,#9C8E74 50%,var(--frame-bg));stroke:color-mix(in srgb,#9C8E74 50%,var(--frame-bg))}
:root[data-mode="day"] .study-journal-key{color:#4E4636}
/* The two social balls under the desk behave like the ones on the contact page: on hover they
   roll a little and turn coral. */
.poodle-ball-ink{transform-box:fill-box;transform-origin:center;transition:rotate .5s cubic-bezier(.34,1.56,.64,1),color .2s}
.poodle-social-link:is(:hover,:focus-visible) .poodle-ball-ink{rotate:-12deg;color:#A9614E!important}
:root:not([data-mode="day"]) .poodle-social-link:is(:hover,:focus-visible) .poodle-ball-ink{color:#C9957F!important}
/* No breeze in the room (it became tiring). */
.study-room-breeze{display:none!important}
/* Rafa's label is just his name: no rule, no caption. */
.poodle-name-rule,.poodle-name-caption{display:none}
