/* Punchwire house style: relief-printed objects, one red wire and punched paper. */
.brand-emblem {display:inline-flex;align-items:center;flex:none;width:42px;height:44px;line-height:0}
.brand-emblem svg {display:block;width:100%;height:auto;overflow:visible}
.app-brand {gap:10px}
.principle-mark.principle-suit {display:block;width:64px;height:64px;max-width:none;color:var(--ink);padding:0;border:0;border-radius:0;filter:none;background:none}
.principle-suit .suit-wire {fill:none;stroke:#d94423;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.short-principle .principle-mark.principle-suit {width:64px;height:64px;margin:0}
.principle-card-main .principle-mark.principle-suit {width:56px;height:56px}
.reader-chapters .principle-mark.principle-suit {width:25px;height:25px;min-width:25px}
.principle-mark.principle-print {display:block;width:220px;height:auto;max-width:100%;object-fit:contain;mix-blend-mode:multiply;background:none;border:0;padding:0;filter:none}
.reader-question .principle-print {width:210px;height:140px;margin:0 auto 20px}
.chapter-header>.principle-print {float:right;width:190px;height:128px;object-fit:contain;margin:0 0 20px 24px}
.chapter-header:after {content:'';display:block;clear:both}
.article-header>.principle-print {width:200px;height:134px;max-width:100%;object-fit:contain;margin:0 auto 10px}
.reader-action-meta .principle-suit,.article-action>.principle-suit {width:32px;height:32px}
.article-card .principle-suit {width:42px;height:42px;margin-top:0}
.do-history .principle-suit {width:34px;height:34px}
.sheet-principle .principle-print {width:160px;height:107px;object-fit:contain;margin:auto}
.action-print {display:block;flex:none;width:auto;max-width:100%;height:clamp(76px,15svh,150px);object-fit:contain;margin:0 auto 22px;mix-blend-mode:multiply}
.do-card-meta {display:flex;justify-content:flex-end;align-items:center;min-height:18px;flex:none;margin:0 0 4px}
.do-duration {font:400 12px/1.5 var(--mono);letter-spacing:0;color:var(--muted)}
.do-paper-card {position:relative;isolation:isolate}
.do-paper-card::before,.identity-deck-card::before {content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.045;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23grain)' opacity='.5' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}
.do-action-content {padding-block:18px}
body[data-page=do] .do-primary:active {transform:translateY(1px);box-shadow:inset 0 2px 0 #0003}
.app-home.home-introduction {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);gap:40px;align-items:center;max-width:1240px;padding-top:72px;padding-bottom:72px}
.home-copy {min-width:0}
.app-home.home-introduction h1 {font-size:clamp(62px,6.6vw,91px);max-width:800px;line-height:1.01;text-wrap:pretty}
.home-introduction .home-explanation p {font-size:18px}
.identity-deck {position:relative;min-width:0;width:100%;height:440px;isolation:isolate;pointer-events:none}
.identity-deck-card {position:absolute;left:50%;top:50%;width:238px;height:310px;display:flex;align-items:center;justify-content:center;background:#f5f2eb;border:1px solid #b9b2a4;border-radius:2px;box-shadow:0 7px 14px #20211e12;transform-origin:50% 90%;isolation:isolate}
/* One punch treatment for every paper card, at every screen size. */
:root {--punch-hole-size:10px;--punch-hole-inset:17px;--punch-hole-color:#121211}
.do-paper-card::after,.identity-deck-card::after {content:'';position:absolute;z-index:2;left:var(--punch-hole-inset);top:var(--punch-hole-inset);width:var(--punch-hole-size);height:var(--punch-hole-size);border:0;border-radius:50%;background:var(--punch-hole-color);box-shadow:none;pointer-events:none}
.identity-deck-card img {display:block;mix-blend-mode:multiply;width:100%;height:200px;object-fit:contain;padding:18px;max-width:none}
.deck-card-0 {transform:translate(-57%,-56%) rotate(-19deg)}
.deck-card-1 {transform:translate(-45%,-49%) rotate(11deg)}
.deck-card-2 {transform:translate(-53%,-42%) rotate(-4deg)}
@media(min-width:900px) {.article-card .principle-suit {width:40px;height:40px;margin-bottom:22px}}
@media(max-width:1000px) and (min-width:761px) {
 .app-home.home-introduction {grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:22px;padding-inline:28px}
 .app-home.home-introduction h1 {font-size:65px}
 .identity-deck {height:380px}
 .identity-deck-card {width:195px;height:270px}
}
@media(max-width:760px) {
 .app-brand {gap:8px}
 .brand-emblem {width:31px;height:38px}
 .editorial-wordmark {font-size:32px}
 .app-home.home-introduction {display:block;padding-top:44px;padding-bottom:32px;overflow:hidden}
 .app-home.home-introduction h1 {font-size:clamp(44px,11.5vw,68px);max-width:none}
 .home-introduction .home-explanation p,.home-introduction .home-explanation p:last-child {font-size:17px}
 .identity-deck {height:265px;margin-top:14px;max-width:380px;margin-inline:auto}
 .identity-deck-card {width:154px;height:202px}
 .identity-deck-card img {height:145px;padding:10px}
 .short-principle .principle-mark.principle-suit {width:44px;height:44px}
 .principle-card-main .principle-mark.principle-suit {width:40px;height:40px}
 .reader-chapters .principle-mark.principle-suit {width:22px;height:22px;min-width:22px}
 .chapter-header>.principle-print {float:none;width:170px;height:114px;margin:0 auto 24px}
 .article-header>.principle-print {width:165px;height:110px;margin-bottom:8px}
 .reader-question .principle-print {width:180px;height:120px}
 .article-card .principle-suit {width:28px;height:28px;margin-top:0}
 .action-print {height:clamp(76px,14svh,120px);margin-bottom:20px}
 .do-action-content {padding-block:12px}
 .do-duration {font-size:12px}
}
@media(max-width:365px) {
 .brand-emblem {width:25px;height:35px}
 .editorial-wordmark {font-size:30px}
 .app-home.home-introduction h1 {font-size:43px}
 .short-principle .principle-mark.principle-suit {width:35px;height:35px}
 .identity-deck {height:242px}
 .identity-deck-card {width:142px;height:190px}
 .action-print {height:72px;margin-bottom:16px}
 .do-action-content {padding-block:8px}
}
@media(prefers-reduced-motion:reduce) {body[data-page=do] .do-primary:active {transform:none}}
/* Keep history readable on one line; let the principle name wrap naturally. */
.do-top .do-filter {flex:1;min-width:0;width:auto}
body[data-page=do] .do-top>.do-text {flex:none;width:auto;white-space:nowrap;padding:8px 0 8px 12px}
.punch>.principle-print {flex:none;width:90px;height:60px;object-fit:contain}
.punch>div {min-width:0}
@media(max-width:760px) {.punch {display:block}.punch>.principle-print {width:65px;height:44px;margin-bottom:16px}}
/* A print stays on light stock inside the optional dark daily-check-in panel. */
.daily-card .principle-print {mix-blend-mode:multiply;background:none;padding:0;width:210px;height:140px;object-fit:contain;margin-block:20px}.daily-card .daily-print-stock {display:block;width:max-content;max-width:100%;margin:20px 0;background:var(--paper);padding:10px}.daily-print-stock .principle-print {margin:0}
/* Let the front print fill a wide paper card rather than a mostly blank panel. */
.deck-card-2 {width:310px;height:230px}
.deck-card-2 img {height:210px;padding:6px}
@media(max-width:1000px) and (min-width:761px) {.deck-card-2 {width:250px;height:190px}.deck-card-2 img {height:172px}}
@media(max-width:760px) {.deck-card-2 {width:210px;height:158px}.deck-card-2 img {height:145px;padding:6px}}
@media(max-width:365px) {.deck-card-2 {width:196px;height:148px}.deck-card-2 img {height:136px}}
/* A mask creates an isolated transparent layer that prevents ink from blending
   with the paper. The visible scroll hint and native scroller provide the cue. */
body[data-page=do] .do-workspace.has-more {-webkit-mask-image:none;mask-image:none}
/* Why is a quiet disclosure inside the same action card. Both text panels
   share one measured slot so toggling never recenters the title or artwork. */
.do-copy {display:grid;width:100%;max-width:570px;margin:0 auto}
.do-copy-panel {grid-area:1 / 1;align-self:start;width:100%}
.do-why-panel {visibility:hidden;pointer-events:none}
.do-copy[data-reading=why] #do-instruction {visibility:hidden;pointer-events:none}
.do-copy[data-reading=why] .do-why-panel {visibility:visible;pointer-events:auto}

/* Match the principle picker to the charcoal room around the paper card. */
.do-principle-picker {flex:1;min-width:0;position:relative}
body[data-page=do] .do-picker-trigger {display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 8px 8px 0;border:0;border-bottom:1px solid #5c5b53;border-radius:0;background:none;color:#f5f2eb;text-align:left;font:400 14px/1.4 var(--sans)}
.do-picker-trigger>span:not(.do-picker-chevron) {flex:1;min-width:0}
.do-picker-trigger .principle-suit {width:25px;height:25px;min-width:25px;color:#f5f2eb}
.do-picker-chevron {display:block;flex:none;width:8px;height:8px;margin:0 3px 4px 5px;border:solid #b7b6ac;border-width:0 2px 2px 0;transform:rotate(45deg)}
.do-picker-trigger[aria-expanded=true] .do-picker-chevron {transform:rotate(225deg);margin-top:7px}
.do-principle-options {position:fixed;inset:auto;margin:0;padding:6px;border:1px solid #55564d;border-radius:2px;background:#20211e;color:#f5f2eb;box-shadow:0 12px 28px #0005;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#706f64 #20211e}
.do-principle-options::backdrop {background:transparent}
body[data-page=do] .do-principle-options button {display:flex;align-items:center;gap:12px;width:100%;min-height:50px;padding:10px 12px;border:0;border-radius:0;background:none;color:#f5f2eb;text-align:left;font:400 15px/1.4 var(--sans)}
body[data-page=do] .do-principle-options button:is(:hover,:focus-visible) {background:#36372f;outline:2px solid #f0a18e;outline-offset:-2px}
body[data-page=do] .do-principle-options button[aria-selected=true] {color:#f0a18e;background:#2b2c25;box-shadow:inset 3px 0 #d94423}
.do-principle-options .principle-suit,.do-all-mark {width:28px;height:28px;min-width:28px;color:inherit}
body[data-page=do] .do-picker-trigger:focus-visible {outline:2px solid #f0a18e;outline-offset:3px}
/* WebP's near-white (254) margin must resolve to white before multiplying:
   otherwise even a correctly blended print can leave a faint rectangular edge. */
.principle-mark.principle-print,.action-print,.identity-deck-card img {mix-blend-mode:multiply;filter:contrast(1.01);background:transparent}
.daily-card #daily-challenge {background:var(--paper);color:var(--ink);border:1px solid var(--paper)}
.daily-card #daily-challenge:hover {background:#e7e1d5;color:var(--ink);border-color:#e7e1d5}
