/* cup-coffee.css — THUD CUP's coffee, the past (CALM.md call 1, §5 B): a Lviv coffee house of about 1900 on the home.

   The hero is the room (cup-room.js; PUNK.world asks it for the still): the marble table, the cup and the lace kept in a
   phone's tall crop, the window and the square on a wide screen. It has a still for each part of the day, its afternoon
   and evening drawn to the morning's composition (art/coffee/SOURCES.md), so no filter warms it, and no film yet: it
   stands still, as matcha's does where its film cannot play. Behind a card the room stands still (punk-wall.js asks
   cup-room.js; its camera held: scripts/verify_quiz_scene.py prices it where it stands). No sparks over the room. Tokens
   only for colour (frap.css html[data-palette="coffee"], its Milk and its afternoon). Where coffee has no picture of its
   own it wears matcha's (PUNK.kin), and its Reading covers stand as matcha's do, so its cards are Chasen's tile as matcha's are. */
html[data-palette="coffee"] .def-hero__art img,
html[data-palette="coffee"] .cup-room__film,
html[data-palette="coffee"] .pw__still { object-position: 84% 50%; animation: none; }
@media (min-aspect-ratio: 1/1) {
  html[data-palette="coffee"] .def-hero__art img,
  html[data-palette="coffee"] .cup-room__film,
  html[data-palette="coffee"] .pw__still { object-position: 60% 50%; }
}
/* behind a card the camera does not travel the room (punk-wall.js pan() sets these inline; a held page stays a room) */
html[data-palette="coffee"] .pw__cam { --pw-x: 0% !important; --pw-y: 0% !important; }
/* by day the app's name stands on paper: the header's mark in ink, and the desk's side panel's chip in the gilt's ink */
html[data-look="milk"][data-palette="coffee"] .def-brand { color: var(--ink); text-shadow: none; }
html[data-look="milk"][data-palette="coffee"] .side__brand i { color: var(--acc-ink); }
/* Reading's covers are coffee's own (art/coffee/reader/<part>/), painted for Chasen's tile: the cover whole, its names
   under it on the card's own surface in the skin's inks (verify_reading_art.py TILE) */
html[data-palette="coffee"] .rd-card:not(.rd-card--bare) { aspect-ratio: auto; display: flex; flex-direction: column; color: var(--ink); background: var(--glass-fill); }
html[data-palette="coffee"] .rd-card:not(.rd-card--bare) .rd-card__art { position: static; flex: none; height: auto; aspect-ratio: 3 / 4; }
html[data-palette="coffee"] .rd-card:not(.rd-card--bare) .rd-card__foot { position: static; flex: 1 1 auto; background: none; padding: 9px 12px 12px; }
html[data-palette="coffee"] .rd-card:not(.rd-card--bare) .rd-card__title { color: var(--ink); text-shadow: none; }
html[data-palette="coffee"] .rd-card:not(.rd-card--bare) .rd-card__uk { color: var(--ink-2); }
html[data-palette="coffee"] .rd-card:not(.rd-card--bare) .rd-jcard__line { color: var(--ink-2); }
html[data-palette="coffee"] .rd-card:not(.rd-card--bare) .rd-jcard__next { color: var(--ink); }
html[data-palette="coffee"] .rd-card:not(.rd-card--bare) .rd-card__n { color: var(--ink-3); }
html[data-palette="coffee"] .rd-banner__art { object-position: center 88%; }
html[data-palette="coffee"] .rd-banner--j .rd-banner__art { object-position: center 100%; }
/* the Debrief's score in its rim (CALM.md call 7, §5 F): a white porcelain cup on its saucer seen from above, each gilt
   at the edge (art/coffee/bezel.webp, scripts/cut_rims.py), the cup's well the opening round the gauge, 180 px of 224,
   clear of the ticks (176 px); its shadow soft, the lace's light from the upper left */
html[data-palette="coffee"] .fr-arc, html[data-palette="coffee"] .fr-res .fr-arc { margin: 38px 0 36px; }
html[data-palette="coffee"] .fr-arc .ring::after { content: ""; position: absolute; inset: -36px; pointer-events: none;
  background: url("art/coffee/bezel.webp") center / 100% 100% no-repeat; filter: drop-shadow(3px 7px 12px rgba(0, 0, 0, .45)); }
html[data-look="milk"][data-palette="coffee"] .fr-arc .ring::after { filter: drop-shadow(3px 6px 10px rgba(74, 52, 30, .26)); }
/* the arrival's curtain (cup.css): coffee's lace (an old Viennese floral lace with a scalloped border, its two panels
   meeting in the middle) in the part's own light, Firefly Image 4 (art/coffee/curtain/, scripts/firefly-calm.json
   «curtain»), the cloth under it in the picture's own colour while it loads. [data-calm] lifts these over cup.css,
   which comes after. */
html[data-calm][data-palette="coffee"] { --cup-curtain: url("art/coffee/curtain/morning-tall.webp"); }
html[data-calm][data-palette="coffee"][data-part] { --cup-cloth: 208, 173, 127; --cup-cloth-a: 1; }
html[data-calm][data-palette="coffee"][data-part="afternoon"] { --cup-curtain: url("art/coffee/curtain/afternoon-tall.webp"); --cup-cloth: 209, 157, 84; }
html[data-calm][data-palette="coffee"][data-part="evening"] { --cup-curtain: url("art/coffee/curtain/evening-tall.webp"); --cup-cloth: 54, 82, 126; }
@media (min-aspect-ratio: 1/1) {
  html[data-calm][data-palette="coffee"] { --cup-curtain: url("art/coffee/curtain/morning-wide.webp"); }
  html[data-calm][data-palette="coffee"][data-part="afternoon"] { --cup-curtain: url("art/coffee/curtain/afternoon-wide.webp"); }
  html[data-calm][data-palette="coffee"][data-part="evening"] { --cup-curtain: url("art/coffee/curtain/evening-wide.webp"); }
}
/* the welcome in the room (frap.js welcome(); CALM.md call 5): the room's still behind the Tryzub, softly, under the
   paper, the part of the day's own; the table on a phone, the window on a wide screen. Blackout shows no picture. */
html[data-palette="coffee"] .brief .fl__world:has(> .brief__arms)::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("art/coffee/room/morning.jpg") 84% 45% / cover no-repeat; opacity: .66; }
html[data-palette="coffee"][data-part="afternoon"] .brief .fl__world:has(> .brief__arms)::before { background-image: url("art/coffee/room/afternoon.jpg"); }
html[data-palette="coffee"][data-part="evening"] .brief .fl__world:has(> .brief__arms)::before { background-image: url("art/coffee/room/evening.jpg"); opacity: .9; }
html[data-palette="coffee"] .brief:not([data-step="1"]) .fl__world:has(> .brief__arms)::before { filter: blur(18px); opacity: .4; }
html[data-palette="coffee"][data-watch="on"] .brief .fl__world::before { display: none; }
@media (min-aspect-ratio: 1/1) { html[data-palette="coffee"] .brief .fl__world:has(> .brief__arms)::before { background-position: 60% 40%; } }

/* the faces (CALM.md call 15): the painted café signs of about 1900, Playfair PUNK and its small capitals, over Book
   PUNK (Gentium Book Plus, cut whole); declared in punk-steam.css, which every page links (TYPE.md). Titles in Playfair,
   labels in its small capitals (lowercase set in the SC face), numbers lining. The card's face stays the learner's. */
html[data-palette="coffee"] {
  --caps: "Playfair SC PUNK", "Playfair PUNK", Georgia, serif;
  --display: "Playfair PUNK", Georgia, serif;
  --ui: "Book PUNK", Georgia, serif;
}
html[data-palette="coffee"] body { font-family: var(--ui); }
html[data-palette="coffee"] :is(.def-hero__title, .phead h1, .t-display, .t-large, .t-title, .t-head, .def-card__title, .sheet .t-title, .fr-res .rs-head, .brief__title, .bk-title) {
  font-family: var(--display); font-weight: 700; letter-spacing: 0; text-transform: none; }
html[data-palette="coffee"] .def-hero__title { font-weight: 800; }
html[data-palette="coffee"] .caps { font-family: var(--caps); font-weight: 400; text-transform: lowercase; letter-spacing: .085em; font-size: 13.5px; }
html[data-palette="coffee"] :is(.def-cell b, .fr-arc__n, .fr-tiles b, .fr-tile b) { font-family: var(--display); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
html[data-palette="coffee"] .def-brand b { font-family: var(--display); font-weight: 900; letter-spacing: .04em; }
html[data-palette="coffee"] .def-brand i { font-family: var(--caps); text-transform: lowercase; font-weight: 400; letter-spacing: .14em; }
html[data-palette="coffee"] :is(.btn, .chip, .row__title, .seg__opt) { font-family: var(--ui); }
html[data-palette="coffee"] .btn--primary { font-family: var(--caps); text-transform: lowercase; letter-spacing: .07em; font-size: 19px; font-weight: 400; }

html[data-look="milk"][data-palette="coffee"] { --key-cut: 0 -1px 0 rgba(36, 24, 4, .4); }
