/* The look of scene.html: type, colour and the first screen. Loaded after
   scene.css and, like it, once more inside the copies of the first screen on
   the photographed sheet, so the page and its print stay one layout.
   Three voices: the exam speaks in its printed serif (--serif, PT Serif, the
   German task text; the film's print is matched to it), the trainer in a
   condensed display serif and a grotesque (--display, --sans), the student
   writes in blue ballpoint (--pen). Fonts and licences: ../assets/SOURCES.txt. */
@font-face{font-family:"Uslovie Display";src:url(../assets/fonts/notoserifdisplay.woff2) format("woff2");font-weight:100 900;font-stretch:62.5% 100%;font-display:swap}
@font-face{font-family:"Uslovie Display";src:url(../assets/fonts/notoserifdisplay-italic.woff2) format("woff2");font-weight:100 900;font-stretch:62.5% 100%;font-style:italic;font-display:swap}
@font-face{font-family:"Uslovie Sans";src:url(../assets/fonts/onest.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Uslovie Mono";src:url(../assets/fonts/ibmplexmono.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Uslovie Mono";src:url(../assets/fonts/ibmplexmono-medium.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Uslovie Pen";src:url(../assets/fonts/badscript.woff2) format("woff2");font-weight:400;font-display:swap}

/* Paper is a cool, sunlit white, the same from the first sheet to the last.
   Blue is the only strong colour: the pen cap, the ink, then the sky. The
   marker is calm. */
:root {
  --paper:#f3f4f1; --ink:#14171c; --muted:#555b65; --rule:#dcdedb;
  --blue:#1f43a6; --blue-deep:#17337f; --marker:#f8e7a0; --ink-soft:#2b3038;
  --display:"Uslovie Display","Uslovie Book",Georgia,serif;
  --sans:"Uslovie Sans",system-ui,sans-serif;
  --mono:"Uslovie Mono",ui-monospace,monospace;
  --pen:"Uslovie Pen",cursive;
  --mast:56px;
}
body {font:400 17px/1.55 var(--sans);font-feature-settings:"ss01" 0}
::selection {background:var(--marker);color:var(--ink)}
:focus-visible {outline:2px solid var(--blue);outline-offset:4px}

/* The trainer's headings: the display serif, condensed and light. */
/* Weight and width are set so the hairlines hold at 1x, and every heading's
   line-height leaves room for Cyrillic descenders (д, ц, щ, у) above the next
   line's ascenders (б, ф): checked heading by heading at 390 and 1440. */
h2,.dg-rtitle {font-family:var(--display);font-stretch:82%;font-weight:380;letter-spacing:-.012em}
h2 em {color:inherit;font-style:italic;font-weight:350}

/* The masthead: low and quiet, a frost of the paper the page scrolls under. A
   wordmark set in type, nothing else. Over the sky band it turns sky (sections.css). */
.mast {border-bottom:0}
.mast.on-paper {background:#f3f4f1db;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px 0 #14171c0f}
/* (Wave I, item 8) Without JavaScript nothing turns the masthead to paper or names the sheet: it is the paper's
   frost over the whole page (not paper.css's dark bar), and the running head, which would stay on its first
   sheet, is left out. */
html:not(.js) .mast {color:var(--ink);background:#f3f4f1eb;border-bottom:0;box-shadow:0 1px 0 #14171c0f}
html:not(.js) .mast .blatt {display:none}
.mast-inner {min-height:var(--mast)}
.mast .wordmark {font:italic 380 27px/1 var(--display);font-stretch:80%;letter-spacing:-.01em}
.folio {display:none}
.nav-cta,.runner .nav-cta {min-height:44px;border:0;padding:8px 0;gap:10px;font:500 16px/1.2 var(--sans)}
.nav-cta span {font-size:17px}
.blatt {font:400 12px/1 var(--mono);letter-spacing:.14em;color:var(--muted);transition:opacity .3s}
.blatt.off {opacity:0}
/* "К задаче" steps aside while the task itself is on screen (sections.js). */
.nav-cta {transition:opacity .3s,visibility 0s}
.nav-cta.here {opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}
/* On a larger window than 1440 by 900 the masthead's type grows a little with the page. */
@media (min-width:821px) {
  .mast {--k:calc(1 + (var(--fit,1) - 1) * .6)}
  .mast .wordmark {font-size:calc(27px * var(--k))}
  .nav-cta,.runner .nav-cta {font-size:calc(16px * var(--k))}
  .blatt {font-size:calc(12px * var(--k))}
}
@media (max-width:820px) {.blatt {display:none}}
/* On a wide screen the masthead keeps to the task's column, the page's one rail
   (--col-w and --fit from scene.js; 80 % of the window without JavaScript). */
@media (min-width:821px) {.mast-inner {width:calc(var(--col-w,80vw) * var(--fit,1));margin-inline:auto}}

/* The first screen. The exam card keeps its printed serif and its rules; the
   trainer's words around it are the new pair, and nothing to read is small. */
.practice-intro .eyebrow {display:none}
.practice-intro h2 {font-weight:380}
/* "Task 1 of 8" is said once, by the card's own head ("Aufgabe 01 / 08"); the
   counter stays in the page for screen readers. */
.practice-intro .practice-index {position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.practice-intro>p:not(.eyebrow),.body-copy {color:var(--muted);font-family:var(--sans)}
.practice-index {font:400 14px/1.4 var(--mono);letter-spacing:.02em}
.dg-head {font:400 14px/1.4 var(--mono);letter-spacing:.02em}
.dg-timer::before {content:""}
/* Which of the three hints are open: three dots of the marker right beside
   "I don’t understand it", part of its target (a tap on them opens the next
   hint). The level's name is there for screen readers only. */
.dg-actions .dg-ladder {gap:4px;min-height:44px;margin:0 0 0 -10px;cursor:pointer;font:400 16px var(--sans)}
.dg-ladder i {width:32px;height:32px;border:0;border-radius:50%;background:#e4e6ea;color:var(--muted);font:400 15px/32px var(--sans)}
.dg-ladder .on {background:var(--marker);color:var(--ink)}
/* The next hint to open wears a quiet ring of the pen's blue, so the dots read as a control;
   hovering the row fills it with the marker it will get. */
.dg-ladder i {transition:background-color .2s,box-shadow .2s,color .2s}
.dg-ladder i:first-of-type:not(.on),.dg-ladder .on+i:not(.on) {box-shadow:inset 0 0 0 1px #1f43a659;background:#eef1f8;color:var(--blue)}
.dg-ladder:hover i:first-of-type:not(.on),.dg-ladder:hover .on+i:not(.on) {box-shadow:inset 0 0 0 1px var(--blue);background:var(--marker);color:var(--ink)}
.dg-ladder span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dg-actions {column-gap:24px}
/* On a narrow screen the check button keeps its own line, so the dots never
   wrap away from the hint they belong to. */
@media (max-width:520px) {
  .dg-actions {row-gap:4px}
  .dg-actions::after {content:"";order:1;flex-basis:100%}
  .dg-actions>:not(.dg-check) {order:2}
}
.dg-unit {font:400 16px var(--sans)}
.dg-ans input {font:400 22px var(--sans)}
.dg-op {background-image:linear-gradient(to top,transparent 5%,var(--marker) 5%,var(--marker) 58%,transparent 58%)}
/* (Wave J, owner) Without JavaScript the marker covers the whole height of the letters too (mid-task.css does it with). */
html:not(.js) .dg-op {background-image:linear-gradient(to top,#0000 0,var(--marker) 4%,var(--marker) 93%,#0000 100%)}
/* The three hints. "а", the words: the German as printed on the exam, its
   meaning written beside it in the student's blue pen, as on the plan's task.
   "б" and "в" are typed, each marked by its letter in the margin, no side rule. */
.dg-gloss {row-gap:6px}
.dg-gloss li {column-gap:14px}
.dg-gloss li b {font:400 19px/1.4 var(--serif);color:var(--ink)}
.dg-gloss li span {font:400 21px/1.3 var(--pen);color:var(--blue);transform:rotate(-1.5deg);transform-origin:0 60%}
.dg-given,.dg-ru {font:400 18px/1.5 var(--sans)}
.l2 .dg-given,.l3 .dg-ru,.dg-help .dg-given,.dg-help .dg-ru {position:relative;border-left:0;padding-left:28px}
.dg-given::before,.dg-ru::before {position:absolute;left:0;top:.3em;font:400 12px/1.5 var(--mono);color:var(--muted)}
.dg-given::before {content:"b"}
.dg-ru::before {content:"c"}
/* Buttons: slim (44 px), one ultramarine, the sans at a book weight with a
   little air in it; the arrow drawn at the text's size, not larger. */
.btn,.dg-check,.dg-next,.cta {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border:0;border-radius:999px;font:480 16px/1.2 var(--sans);letter-spacing:.012em;gap:10px;text-decoration:none;transition:background-color .2s}
.btn span,.cta span {font:400 15px/1 var(--sans)}
.btn.ink,.dg-check,.dg-next,.cta {color:#fff;background:var(--blue)}
.btn.ink:hover,.dg-check:not(:disabled):hover,.dg-next:hover,.cta:hover {background:var(--blue-deep)}
.dg-check:disabled {opacity:.45}
.dg-hint,.dg-show,.dg-inline,.text-link,.dg-help summary {font:500 16px/1.4 var(--sans);text-decoration-thickness:1px;text-underline-offset:6px}
.dg-fb.show {background:#e8ecf6;border-left-color:var(--blue)}
.dg-fb.bad {background:#f6efe8;border-left-color:#a4603a;border-radius:0 6px 6px 0}
.dg-fb.show {border-radius:0 6px 6px 0}
.dg-sol {font:400 16px/1.6 var(--mono)}
.dg-rsub,.dg-rwhy,.dg-weak {font-size:17px}
.dg-rcount,.cost-plot {font:400 15px/1.5 var(--mono)}
.cost-plot {max-width:440px}
.cost-track::before {background:var(--blue)}
.cost-track.over::before {background:#a4603a}
.dg-rbar i {background:var(--blue)}
.dg-nojs {font-size:16px}
@media (min-width:821px) {
  /* One line of heading, the short description beside it, both on one baseline. */
  .practice-intro {align-items:last baseline}
  .practice-intro h2 {grid-row:1;font-size:clamp(40px,min(5.1vw,calc(var(--u-svh,1svh) * 8.8)),80px);line-height:1.02}
  .practice-intro>p:not(.eyebrow) {font-size:clamp(15px,min(1.22vw,calc(var(--u-svh,1svh) * 2.1)),18px);line-height:1.55}
}
@media (max-width:820px) {
  .practice-intro h2 {font-size:clamp(44px,min(13.4vw,calc(var(--u-svh,1svh) * 8)),76px);line-height:1.06}
  .practice-intro>p:not(.eyebrow) {font-size:16px}
  .dg-head {font-size:13px}
  .mast .wordmark {font-size:25px}
}

/* On a phone the photograph is drawn small and the film's grain layer, added
   by CSS over it, read as noise on the sheet. The render has its own. */
@media (max-width:820px) {.grain {display:none}}
