/* LifeOS on washi paper: warm paper, a fine dot grid, a little grit, sumi ink and one red seal.
   The drawings come from site-src/ink.py. Applies to any strip built with cls="paper". */
.strip.paper{--paper:#F1EADB;--ink:#1E1915;--soft:#4A4037;--dim:#6A5D50;--amber:#A92E26;--red:#B3302A;color:var(--ink);
  background-color:var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .1 0 0 0 0 .06 0 0 0 .55 -.21'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .02' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .3 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 1.5px 1.5px,rgba(30,25,21,.24) 1.1px,transparent 1.7px);
  background-size:240px 240px,900px 900px,24px 24px}
.strip.paper .pin{background:inherit;background-color:var(--paper)}
.strip.paper .prog{background:rgba(30,25,21,.08)}
.strip.paper .prog i{background:var(--red)}
.strip.paper .kick,.strip.paper .cat,.strip.paper .hint{color:var(--amber)}
.strip.paper .lead,.strip.paper .rp .rtx p{color:var(--soft)}
.strip.paper h2,.strip.paper h3{color:var(--ink)}

/* the opener: the ensō on the right, the words on the left, no dark veil */
.strip.paper .rbg::after{content:none}
.ink-hero{position:absolute;top:calc(var(--top) + 2vh);bottom:5vh;right:var(--pxr);width:min(54vw,980px)}
.ink-hero svg{width:100%;height:100%}
.strip.paper .rp.first .rtx{max-width:min(600px,38vw)}
.strip.paper .rp.first .lead{max-width:34ch}

/* the panels: drawings sit straight on the paper, no card, no shadow */
.strip.paper .rvis{background:transparent;box-shadow:none;border-radius:0;overflow:visible}
.strip.paper .rim.art{background:transparent;padding:1% 1.5%;overflow:visible}
.strip.paper .rvis .cap{right:10px;bottom:6px;font-size:12.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--soft);background:var(--paper);border:1.5px solid rgba(30,25,21,.35);border-radius:4px;padding:2px 8px}
.ink text{font-family:var(--serif);font-weight:500}
.ink text.sn{font-family:var(--sans);font-weight:600}
.ink text.hd{font-family:var(--serif);font-weight:700}
.ink text.jp{font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif CJK JP","Songti SC",serif;font-weight:700}

/* ink arrives layer by layer when a panel comes into view (armed by ink.js, never without it) */
.strip.paper.ink-on .ik-a{opacity:0;transition:opacity .9s ease calc(var(--i) * 140ms),filter .9s ease calc(var(--i) * 140ms)}
.strip.paper.ink-on .inked .ik-a{opacity:1}
@media (prefers-reduced-motion:reduce){.strip.paper.ink-on .ik-a{opacity:1;transition:none}}

/* phones and touch screens: the strip is a downward story on one long sheet of paper */
@media (max-width:820px),(pointer:coarse) and (max-width:1180px){
  .strip.paper{padding-bottom:20px}
  .strip.paper .pin{background:transparent}
  .strip.paper .rvis{box-shadow:none;border-radius:0}
  .strip.paper .rp.first .rtx{max-width:none}
  .strip.paper .rp.first .lead{max-width:40ch}
  .strip.paper .rp.first{height:auto;min-height:0;max-height:none;display:flex;flex-direction:column;gap:18px;padding:36px 0 8px;margin-bottom:36px}
  .strip.paper .rp.first .rbg{position:relative;inset:auto;overflow:visible;padding:0 var(--pxr) 0 var(--px)}
  .ink-hero{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:900/760;max-height:62svh;margin:0 auto}
  .strip.paper .rp.first .rtx{position:relative;left:auto;right:auto;bottom:auto;padding:0 var(--pxr) 0 var(--px)}
  .strip.paper .rvis .cap{font-size:11px;left:auto}
}
/* the open Duo and other wide touch screens: drawing on the right, words on the left, as on a desk */
@media (pointer:coarse) and (min-width:821px) and (max-width:1180px){
  .strip.paper .rp.first{flex-direction:row-reverse;align-items:center;gap:0;padding-top:48px}
  .strip.paper .rp.first .rbg{flex:0 0 56%;padding:0 var(--pxr) 0 0}
  .strip.paper .rp.first .rtx{flex:1 1 auto;max-width:none}
}
