/* Propisi Cyr Lat by sherbackoffalex: https://fonts-online.ru/fonts/propisi-cyr-lat */
@font-face {
    font-family: "Urokino Propisi Cyr Lat";
    src: url("../fonts/propisi-cyr-lat/PropisiCyrLat.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
/* Original OpenType from https://mihafont.seesaa.net/article/194464604.html.
   X11 license and copyright notices are in assets/fonts/russkopis/LICENSE.txt. */
@font-face {
    font-family: "Russkopis";
    src: url("../fonts/russkopis/Russkopis-Normalny.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Urokino Bad Script";
    src: url("../fonts/bad-script/BadScript-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
.hw-workspace .workspace__result { min-width: 0; }
.hw-pages { display: grid; gap: 16px; }
.hw-pages[data-style="propisi"] { --hw-guide-height: .328em; }
/* Cyrillic о and а in Russkopis rise 347 units above the baseline in a 1000-unit em. */
.hw-pages[data-style="russkopis"] { --hw-guide-height: .347em; }
.hw-sheet {
    container-type: inline-size;
    min-width: 0;
    aspect-ratio: 186 / 273;
    background: white;
    color: #182f37;
    box-shadow: 0 2px 12px #343c3b1c;
    border: 1px solid #d5dcd8;
}
.hw-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid #536863;
    padding: 5cqw 6cqw 3cqw;
}
.hw-header h3 { font: 600 6cqw/1.2 Georgia, serif; margin: 0; }
.hw-header span { font-size: 2.6cqw; }
.hw-lesson { padding: 3cqw 6cqw 5cqw; }
.hw-instruction { margin: 0 0 3cqw; font-size: 3cqw; line-height: 1.45; }
.hw-block { position: relative; }
.hw-block + .hw-block { margin-top: 4cqw; }
.hw-slant-guides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    fill: none;
    stroke: #b9c4c8;
    stroke-width: .18;
    stroke-dasharray: 1 .85;
}
.hw-row {
    position: relative;
    display: flex;
    align-items: baseline;
    height: calc(var(--hw-size) * 1.72);
    font: 400 var(--hw-size)/1.5 var(--hw-font);
}
.hw-row::before {
    content: "";
    flex: none;
    width: 0;
    height: 75%;
}
.hw-row::after {
    content: "";
    position: absolute;
    inset: auto 0 25%;
    height: var(--hw-guide-height, 1ex);
    border-top: 1px dashed #ced4d7;
    border-bottom: 1px solid #a4afb1;
    pointer-events: none;
}
.hw-letters { position: relative; z-index: 1; white-space: pre; }
.hw-row--trace { color: #a6a6a6; }
@media print {
    @page { size: A4 portrait; margin: 12mm; }
    .hw-pages { display: block; }
    .hw-sheet {
        width: 100%;
        aspect-ratio: auto;
        border: 0;
        box-shadow: none;
        color: black;
        break-inside: avoid;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .hw-sheet + .hw-sheet { break-before: page; }
    .hw-row::after { border-bottom-color: #888; border-top-color: #aaa; }
}
