.hw-page,.hw-teaser{--hw-ink:var(--foreground);--hw-wine:var(--primary);--hw-brass:#866347;--hw-paper:var(--background);--hw-rule:var(--input);--hw-line:var(--folio-hairline,var(--border));--hw-type:var(--folio-ui,Arial, sans-serif);--hw-serif:var(--folio-serif,Georgia, serif)}.hw-teaser{border-block:1px solid var(--hw-line);grid-template-columns:minmax(0,1fr) minmax(220px,.58fr);align-items:stretch;margin-bottom:32px;display:grid}.hw-teaser-copy{align-self:center;padding:clamp(18px,3vw,40px) clamp(16px,3vw,40px) clamp(18px,3vw,40px) 0}.hw-teaser-copy h2{font:400 clamp(1.9rem, 3.4vw, 3.25rem)/1.07 var(--hw-serif);margin:8px 0 12px}.hw-teaser-copy>p:not(.kicker){max-width:530px;color:var(--muted-foreground);margin-bottom:18px;font-size:1.05rem;line-height:1.6}.hw-teaser-art{background:var(--secondary);align-items:center;display:grid}.hw-teaser-art .hw-board{height:100%;max-height:290px}.hw-page .back-link{margin-bottom:24px}.hw-heading{margin-bottom:26px}.hw-heading h1{max-width:20ch;font:400 clamp(2.35rem, 5.1vw, 4.2rem)/1.03 var(--hw-serif);letter-spacing:-.035em;overflow-wrap:anywhere;text-wrap:balance;margin:.65rem 0 1rem}.hw-heading .page-deck{max-width:62ch;font:400 clamp(1.06rem, 2.2vw, 1.32rem)/1.62 var(--hw-serif);margin:0}.hw-modes{border-block:1px solid var(--hw-line);grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px;display:grid}.hw-modes button{min-width:0;min-height:58px;color:var(--hw-wine);font:400 1.28rem/1.2 var(--hw-serif);overflow-wrap:anywhere;cursor:pointer;justify-content:center;align-items:center;gap:clamp(7px,1.35vw,18px);padding:9px;display:flex}.hw-modes button:hover,.hw-modes button[aria-pressed=true]{background:var(--secondary)}.hw-modes button[aria-pressed=true]{box-shadow:inset 0 -2px var(--hw-wine);color:var(--hw-ink)}.hw-modes svg{flex:none;width:27px;height:25px}.hw-mode-number{font:.72rem/1 var(--hw-type);color:var(--hw-brass);letter-spacing:.08em}.hw-workbench{grid-template-columns:minmax(0,1.45fr) minmax(330px,.86fr);align-items:start;gap:clamp(15px,2.35vw,32px);display:grid}.hw-stage{border-block:1px solid var(--hw-line);background:var(--hw-paper);min-width:0;position:sticky;top:16px}.hw-stage-caption{font:700 .72rem/1.4 var(--hw-type);letter-spacing:.06em;text-transform:uppercase;color:var(--hw-wine);justify-content:space-between;align-items:baseline;gap:10px;padding:10px 16px;display:flex}.hw-stage-caption>span+span{color:var(--muted-foreground);text-align:right}.hw-board{width:100%;height:auto;display:block}.hw-board-editable{touch-action:pan-y;-webkit-user-select:none;user-select:none}.hw-draggable{touch-action:none;cursor:grab}.hw-draggable:active{cursor:grabbing}.hw-downloads{flex-wrap:wrap;gap:8px;padding:12px 14px 5px;display:flex}.hw-button{border:1px solid var(--hw-rule);background:var(--card);min-height:44px;color:var(--hw-wine);text-align:center;font:700 .82rem/1.3 var(--hw-type);cursor:pointer;border-radius:2px;justify-content:center;align-items:center;gap:7px;padding:7px 12px;text-decoration:none;display:inline-flex}.hw-button svg{flex:none;width:17px;height:17px}.hw-button-primary{background:var(--hw-wine);color:var(--primary-foreground);border-color:var(--hw-wine)}.hw-button:hover:not(:disabled){border-color:var(--hw-wine)}.hw-button-primary:hover:not(:disabled){background:#63312d}:is(.hw-page :is(button,input,select):focus-visible,.hw-teaser a:focus-visible){outline:2px solid var(--hw-wine);outline-offset:2px}.hw-button:disabled,.hw-motifs button:disabled{cursor:default;opacity:.52}.hw-export-note{min-height:2rem;color:var(--muted-foreground);font:.76rem/1.35 var(--hw-type);padding:2px 14px 9px}.hw-controls{gap:14px;min-width:0;display:grid}.hw-control-panel{border-block-start:1px solid var(--hw-line);min-width:0;padding-block:clamp(12px,1.55vw,20px);container-type:inline-size}.hw-control-panel h2{font:400 1.65rem/1.15 var(--hw-serif);align-items:baseline;gap:9px;margin-bottom:12px;display:flex}.hw-control-panel h2>span{color:var(--hw-wine);font:700 .71rem/1.3 var(--hw-type);letter-spacing:.12em}.hw-field-controls,.hw-sliders{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.hw-field-controls label,.hw-slider{min-width:0;font:700 .78rem/1.35 var(--hw-type);gap:6px;display:grid}.hw-field-controls select{border:1px solid var(--hw-rule);width:100%;min-width:0;min-height:44px;color:var(--hw-ink);background:var(--card);font:1rem/1.2 var(--hw-type);border-radius:2px;padding:6px 5px}.hw-colors,.hw-orientation{border:0;min-width:0;margin:12px 0 0;padding:0}.hw-colors legend,.hw-orientation legend{font:700 .78rem/1.4 var(--hw-type);margin:0 0 4px}.hw-swatches{grid-template-columns:repeat(8,minmax(0,40px));gap:clamp(3px,.65vw,8px);display:grid}.hw-swatch,.hw-custom-color{border:1px solid var(--hw-rule);background:var(--card);cursor:pointer;border-radius:2px;width:100%;min-height:35px;padding:3px}.hw-swatch[aria-pressed=true],.hw-swatch:hover{border-color:var(--hw-wine)}.hw-swatch[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--hw-wine)}.hw-swatch span{border:1px solid #0002;border-radius:1px;width:100%;height:25px;display:block}.hw-custom-color{height:35px}.hw-help{color:var(--muted-foreground);font:.79rem/1.5 var(--hw-type)}.hw-motif-groups{margin-top:8px}.hw-motif-groups .hw-button{min-height:35px;padding:4px 7px;font-size:.76rem}.hw-motif-groups .hw-button[aria-pressed=true]{border-color:var(--hw-wine);background:var(--secondary);color:var(--hw-ink)}.hw-motifs{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0 12px;display:grid}.hw-motifs button{border:1px solid var(--hw-rule);background:var(--card);min-height:61px;color:var(--hw-wine);text-align:center;overflow-wrap:anywhere;font:.7rem/1.15 var(--hw-type);cursor:pointer;border-radius:2px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:5px 2px;display:flex}.hw-motifs button:hover:not(:disabled){background:var(--secondary);border-color:var(--hw-wine)}.hw-motifs svg{flex:none;width:24px;height:24px}.hw-motif-groups,.hw-layer-list,.hw-layer-actions,.hw-reset{flex-wrap:wrap;gap:6px;display:flex}.hw-layer-list{margin:0 0 6px}.hw-layer-list button{border:1px solid var(--hw-rule);min-height:35px;font:.76rem/1.25 var(--hw-type);color:var(--hw-ink);text-align:left;cursor:pointer;border-radius:2px;align-items:center;gap:5px;padding:4px 7px;display:flex}.hw-layer-list button[aria-pressed=true],.hw-layer-list button:hover{border-color:var(--hw-wine);background:var(--secondary)}.hw-layer-list svg{flex:none;width:15px;height:15px}.hw-figure-editor{border-top:1px solid var(--hw-line);margin-top:12px;padding-top:1px}.hw-sliders{margin:13px 0}.hw-slider span:first-child{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:5px;display:flex}.hw-slider-value{color:var(--hw-wine);white-space:nowrap;font-weight:400}.hw-slider input{width:100%;height:22px;accent-color:var(--hw-wine);margin:0}.hw-reset{justify-content:flex-end}.hw-reading{border-top:1px solid var(--hw-line);grid-template-columns:minmax(180px,.5fr) minmax(0,1fr);gap:20px;margin-top:38px;padding:23px 0 0;display:grid}.hw-reading h2{font:400 1.5rem/1.2 var(--hw-serif)}.hw-reading p{font:.88rem/1.65 var(--hw-type);color:var(--muted-foreground);margin-bottom:8px}.hw-reading p:not(:first-child){margin-top:18px}@media (max-width:780px){.hw-workbench{grid-template-columns:minmax(0,1fr)}.hw-stage{position:static}.hw-board-editable{background:var(--secondary);max-height:290px}}@media (max-width:560px){.hw-teaser,.hw-reading{grid-template-columns:minmax(0,1fr)}.hw-teaser-art{display:none}.hw-modes button{gap:6px;font-size:1.06rem}.hw-mode-number{display:none}.hw-modes svg{width:19px;height:19px}.hw-stage-caption{padding-inline:9px;font-size:.62rem}.hw-downloads{padding-inline:9px}.hw-downloads .hw-button{flex:120px}.hw-export-note{padding-inline:9px}.hw-swatches{grid-template-columns:repeat(4,minmax(0,3.25rem));gap:6px}.hw-swatch,.hw-custom-color,.hw-motif-groups .hw-button,.hw-layer-list button{min-height:44px}.hw-motifs{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width<=390px){.hw-field-controls{grid-template-columns:minmax(0,1fr)}}@media (max-width:780px) and (min-height:620px){.hw-stage{z-index:2;position:sticky;top:0}.hw-board-editable{max-height:min(29dvh,228px)}.hw-controls :is(button,input,select){scroll-margin-top:min(50dvh,345px)}}.hw-page~.article-back-to-top{background:var(--background)}@media (max-width:45rem){.hw-page~.article-back-to-top{right:max(4px, env(safe-area-inset-right,0px));bottom:calc(6px + env(safe-area-inset-bottom,0px));border:1px solid var(--border);border-radius:50%;gap:0;width:44px;min-height:44px;padding:4px;font-size:0}}.hw-teaser-actions{flex-wrap:wrap;align-items:center;gap:9px 16px;display:flex}.hw-teaser-art{margin:0}.hw-teaser-art figcaption{color:var(--muted-foreground);text-align:center;font:.76rem/1.4 var(--hw-type);padding:6px 10px 9px}.hw-motifs.hw-georgian-motifs{grid-template-columns:minmax(0,1fr)}.hw-georgian-motif{border-bottom:1px solid var(--hw-line);grid-template-columns:minmax(94px,1fr) minmax(0,1.65fr);align-items:center;gap:8px;padding-block:6px;display:grid}.hw-georgian-motif p,.hw-georgian-motif a{font:.79rem/1.4 var(--hw-type);overflow-wrap:anywhere}.hw-georgian-motif p{color:var(--muted-foreground);margin:0 0 3px}.hw-motif-reading{margin-bottom:12px;display:inline-flex}.hw-tincture p{border-inline-start:2px solid var(--hw-brass);background:var(--secondary);margin:6px 0 0;padding:6px 8px}
