/* diktantas.com pristatymo puslapis.
   Spalvos, tarpai, kampai ir teksto stiliai paimti iš design/tokens.json,
   lapo ir linijų taisyklės iš design/components/bundle.css.
   Šriftas laikomas čia pat (fonts/), todėl puslapis nieko nesiunčia trečiosioms šalims. */

@font-face {
  font-family: Andika; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/andika-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Andika; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/andika-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Andika; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/andika-latin-ext-700.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Andika; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/andika-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ground: #f5f7fb;
  --surface: #ffffff;
  --text: #17203b;
  --text-muted: #4f5b78;
  --rule: #d3dbe8;
  --margin: #e79a9a;
  --action: #2748c7;
  --error: #b4470a;
  --highlight: #ffe894;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --line-pitch: 48px;
  --radius-lg: 24px;
  --font-sans: Andika, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1322;
    --surface: #171d30;
    --text: #edf0f7;
    --text-muted: #a5afc6;
    --rule: #283048;
    --margin: #8a4040;
    --action: #9bb0ff;
    --error: #ffa070;
    --highlight: #504410;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ground);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }

.page { max-width: calc(960px + 2 * var(--space-5)); margin: 0 auto; padding: var(--space-7) var(--space-5); }

/* Teksto stiliai */
.title { font-size: 24px; line-height: 32px; font-weight: 700; margin: var(--space-7) 0 var(--space-4); }
.dictation { font-size: 26px; line-height: var(--line-pitch); font-weight: 400; }
.note { font-size: 15px; line-height: 22px; color: var(--text-muted); margin-top: var(--space-5); }

/* Lapas: plokščias, su plonu rėmeliu, be šešėlio. */
.sheet {
  position: relative; overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
}
/* Linijuotas lapas: viena teksto eilutė ant vienos linijos. -9px yra Andika bazinės linijos poslinkis. */
.sheet--ruled {
  padding: var(--space-2) var(--space-5) var(--space-5) calc(var(--space-7) + var(--space-4));
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--rule) calc(100% - 1px));
  background-size: 100% var(--line-pitch);
  background-origin: content-box;
  background-position: 0 -9px;
}
.sheet--ruled::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--space-7);
  width: 1.5px; background: var(--margin);
}

/* Viršelis: pavadinimas kairėje apačioje, kompozicija dešinėje ir išeina už lapo krašto. */
.cover { height: 288px; }
.art { position: absolute; top: 0; right: 0; width: 480px; height: 288px; }
.art svg { display: block; width: 480px; height: 288px; overflow: visible; }
.c-action { fill: var(--action); }
.c-ink { fill: var(--text); }
.c-marker { fill: var(--highlight); }
.c-pencil { fill: var(--error); }
.c-rule { stroke: var(--rule); stroke-width: 1px; }
.c-margin { stroke: var(--margin); stroke-width: 1.5px; }
.words { position: absolute; left: var(--space-6); bottom: var(--space-6); max-width: 440px; }
.name { font-size: 90px; line-height: .95; font-weight: 700; letter-spacing: -.01em; }
.tag { margin-top: var(--space-3); font-size: 18px; line-height: 28px; color: var(--text-muted); }

/* Siauresniame lange kompozicija lipa virš pavadinimo. */
@media (max-width: 900px) {
  .cover { height: auto; }
  .art { position: static; width: auto; height: 240px; overflow: hidden; }
  .words { position: static; max-width: none; padding: var(--space-5); }
  .name { font-size: clamp(56px, 16vw, 90px); }
}

/* Telefone lapai eina per visą plotį, paraštės linija arčiau krašto. */
@media (max-width: 600px) {
  .page { padding: 0 0 var(--space-7); }
  .sheet { border-left: 0; border-right: 0; border-radius: 0; }
  .cover { border-top: 0; }
  .sheet--ruled { padding-left: calc(var(--space-5) + var(--space-4)); }
  .sheet--ruled::before { left: var(--space-5); }
  .title, .note { padding: 0 var(--space-5); }
  .title { margin-top: var(--space-6); }
}
