/* The Mislisha product page (site/mislisha.html), chosen from three drafts on
 * 17.10.2026 (docs/skice/sajt/). Fonts, colours, header and footer are in
 * mislisha-base.css, which the page loads first; this file is the page's own.
 * The board is a picture, /img/tutorial-frame.svg.
 */

:root {
  /* The frame is the video's own frame, dark in either scheme. */
  --frame: #1B1E22;
  --frame-edge: transparent;
}

@media (prefers-color-scheme: dark) {
  :root {
    --frame: #0C0E10;
    --frame-edge: #2B3136;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 64px;
  align-items: center;
  padding: 40px 0 88px;
}

h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 13ch;
}

.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 32px; max-width: 34em; }

.status { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.status span { color: var(--ink-soft); font-size: 15px; }

.button {
  display: inline-block;
  background: var(--button);
  color: var(--button-ink);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
}

/* The page's one bold thing: a frame of a tutorial video as a student sees it
 * — the board with the trainer's arrows, the sentence the voice reads, and
 * the line with the move it is about. */
.frame-figure { margin: 0; }
.frame { background: var(--frame); border: 1px solid var(--frame-edge); border-radius: 10px; padding: 18px 18px 0; color: #EEF0F2; }
.frame img { display: block; width: 100%; height: auto; }
.said { font: italic 21px/1.45 var(--serif); padding: 18px 6px 14px; margin: 0; }
.line { border-top: 1px solid #343A41; padding: 12px 6px 16px; font-size: 15px; color: #B9C0C6; }
/* The move is marked by a box, not by a colour. */
.line b { color: #FFFFFF; font-weight: 600; outline: 2px solid #FFFFFF; outline-offset: 2px; border-radius: 2px; padding: 0 2px; }
.frame-figure figcaption { font-size: 14px; color: var(--ink-soft); margin: 12px 2px 0; }

section { border-top: 1px solid var(--rule); padding: 56px 0 64px; }
h2 { font-size: 28px; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 8px; }
.sub { color: var(--ink-soft); margin: 0 0 40px; max-width: 40em; }

/* A trainer's week is a sequence, so its steps carry numbers. */
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.week li { counter-increment: step; }
.week li::before { content: counter(step); display: block; font-size: 44px; font-weight: 300; line-height: 1; color: var(--ink-soft); margin-bottom: 14px; }
.week h3 { font-size: 19px; margin: 0 0 8px; }
.week p { margin: 0 0 12px; font-size: 16px; }

/* „In the app" paths. A label is set as the app shows it; the manual's test
 * (chess_app/test/manual_labels_test.dart) holds every one to the app. */
.where { font-size: 14px; color: var(--ink-soft); }
.ui { font-weight: 600; color: var(--ink); }

.pairs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.pairs li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pairs strong { display: block; }
.pairs span { color: var(--ink-soft); font-size: 16px; }

.facts p { max-width: 40em; }

.docs { columns: 2; column-gap: 48px; padding-left: 1.1em; margin: 0; }
.docs li { margin-bottom: 8px; break-inside: avoid; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 16px 0 64px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .week, .pairs { grid-template-columns: minmax(0, 1fr); }
  .docs { columns: 1; }
  .frame { padding: 12px 12px 0; }
  .said { font-size: 18px; }
}
