/* Web fieldsketch.cz (docs/NAVRH-WEB.md). Barvy a písmo aplikace, vzhled Noc:
   tmavé pozadí, tyrkysová, žádná šedá. Jen tmavý vzhled. Nejdřív telefon,
   širší obrazovky níže. Bez skriptů a bez cizích zdrojů. */

/* Barlow (licence OFL: /fonts/OFL-Barlow.txt), vlastní kopie souborů. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-latin-ext-400-normal.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: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-latin-400-normal.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: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-latin-ext-600-normal.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: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-latin-600-normal.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: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-latin-ext-700-normal.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: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-latin-700-normal.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 {
  --bg: #0b1519;
  --bg-deep: #071014;
  --card: #10222a;
  --line: #1e3a44;
  --text: #eaf7f5;
  --muted: #9fc2be;
  --teal: #19e3c3;
  --teal-light: #6ff0da;
  --teal-ink: #0b1519;
  --wrap: 68rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-light);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Tlačítka */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1.25rem;
  border-radius: 12px;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--teal-light);
  color: var(--teal-ink);
}

.btn:focus-visible {
  outline-color: var(--text);
  border-radius: 12px;
}

.btn-header {
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  font-size: 1rem;
}

.btn-large {
  min-height: 3.75rem;
  padding: 0.85rem 2.25rem;
  border-radius: 14px;
  font-size: 1.3rem;
  box-shadow: 0 0 0 1px rgba(25, 227, 195, 0.35), 0 10px 36px rgba(25, 227, 195, 0.22);
}

/* Hlavička a menu */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin-right: auto;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0 -0.5rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

/* Úvod: hero */

.hero {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(to bottom, rgba(7, 16, 20, 0) 55%, var(--bg-deep) 100%),
    radial-gradient(42rem 24rem at 85% 0%, rgba(25, 227, 195, 0.16), rgba(25, 227, 195, 0) 70%),
    linear-gradient(rgba(30, 58, 68, 0.5) 1px, rgba(30, 58, 68, 0) 1px),
    linear-gradient(90deg, rgba(30, 58, 68, 0.5) 1px, rgba(30, 58, 68, 0) 1px);
  background-size: auto, auto, 2.5rem 2.5rem, 2.5rem 2.5rem;
}

.hero-row {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem 3rem;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 6.4vw + 0.6rem, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-action {
  margin: 0;
}

.hero .btn-large {
  width: 100%;
}

.hero-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art .shot {
  margin: 0;
}

.hero-art .shot img {
  max-width: min(100%, 15rem);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

/* Oddíly */

.section {
  padding-block: 2.75rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2,
.prose h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3vw + 1rem, 2.4rem);
  font-weight: 700;
}

.section p {
  margin: 0 0 1rem;
}

.split {
  display: grid;
  gap: 0 2rem;
}

.muted {
  color: var(--muted);
}

.more-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

.more-link::after {
  content: "→";
  margin-left: 0.4em;
}

/* Karty funkcí */

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.card-icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Novinky */

.news-latest {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.news-latest li {
  display: flex;
  flex-direction: column;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.news-latest time,
.news-date {
  color: var(--muted);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.news-latest a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 600;
}

.news-latest a:hover {
  color: var(--teal);
}

.news-item {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.news-item:target h2 {
  color: var(--teal);
}

.news-item h2 {
  margin: 0.15rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.news-date {
  margin: 0;
}

/* Stránky s textem */

.page {
  padding-block: 2.5rem 3rem;
}

/* Sloupec textu drží délku řádku ke čtení a začíná pod logem v hlavičce. */
.prose > * {
  max-width: 44rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--teal);
}

.lead {
  color: var(--muted);
  font-size: 1.25rem;
}

.notice {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--teal);
  border-radius: 12px;
  background: var(--card);
  font-weight: 600;
}

/* Návody: rozcestník, kapitola, kroky, snímky */

.guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.prose > .guide-list {
  max-width: none;
}

.guide-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.prose .guide-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.guide-card h2 a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
}

.guide-card h2 a:hover {
  color: var(--teal);
}

.prose .guide-card p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.prose .guide-card ul,
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .guide-card li,
.toc li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.guide-card li a,
.toc li a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: 0.35rem;
}

.crumb {
  font-size: 1rem;
}

.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

.crumb a::before {
  content: "←";
  margin-right: 0.4em;
}

.toc {
  margin: 1.5rem 0 0;
  padding: 0.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.toc li:first-child {
  border-top: 0;
}

.guide h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 1.6rem;
}

.guide h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

/* Hláška aplikace, opsaná doslova */
q {
  quotes: "„" "“";
}

/* Název tlačítka nebo nabídky přesně podle aplikace */
b.ui {
  padding: 0.05em 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-weight: 600;
}

.prose ol.steps {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: krok;
}

.prose ol.steps > li {
  position: relative;
  margin: 0 0 0.75rem;
  padding-left: 2.75rem;
  counter-increment: krok;
}

.prose ol.steps > li::before {
  content: counter(krok);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 700;
  line-height: 1.9rem;
  text-align: center;
}

.note {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  background: var(--card);
}

.shot {
  margin: 1.25rem 0 1.5rem;
}

.shot img {
  display: block;
  max-width: min(100%, 18rem);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.shot-tablet img {
  max-width: 100%;
}

.shot a {
  display: block;
}

/* Snímek smí být širší než sloupec textu: na šířku celé stránky. */
.prose > .shot {
  max-width: none;
}

/* Spustit aplikaci dole a patička */

.launch {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  background-image: radial-gradient(34rem 12rem at 50% 100%, rgba(25, 227, 195, 0.14), rgba(25, 227, 195, 0) 70%);
  text-align: center;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* Nejužší telefony (320 px): logo a tlačítko se vejdou vedle sebe */

@media (max-width: 22rem) {
  .site-header-row {
    gap: 0 0.5rem;
  }

  .brand {
    gap: 0.4rem;
    font-size: 1.125rem;
  }

  .brand img {
    width: 2rem;
    height: 2rem;
  }

  .btn-header {
    padding: 0.4rem 0.6rem;
  }
}

/* Širší telefon na šířku a tablet */

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card:last-child {
    grid-column: span 2;
  }

  .hero .btn-large {
    width: auto;
  }

  .news-latest li {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .news-latest time {
    flex: none;
    width: 6.5rem;
  }

  /* Od této šířky značka <snimek> podává snímek z tabletu. */
  .shot img,
  .hero-art .shot img {
    max-width: 100%;
  }

  .shot-telefon img {
    max-width: 18rem;
  }

  .guide-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet na šířku a počítač */

@media (min-width: 60rem) {
  .site-header-row {
    gap: 0 1.5rem;
    padding-block: 0.75rem;
  }

  .site-nav {
    order: 0;
    flex-basis: auto;
  }

  .site-nav ul {
    margin: 0;
    gap: 0 0.5rem;
  }

  .site-nav a {
    padding: 0 0.75rem;
    font-size: 1.0625rem;
  }

  .hero-row {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 3rem;
    padding-block: 4rem 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 3vw + 0.6rem, 3.1rem);
  }

  .section {
    padding-block: 4rem;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 16rem 1fr;
  }

  /* Snímek z tabletu u kroku: od čísla kroku až k pravému okraji stránky, aby šlo ovládání přečíst. */
  .guide ol.steps > li > .shot:not(.shot-telefon) {
    width: 65.25rem;
    max-width: calc(100vw - 6rem);
  }

  .page {
    padding-block: 3.5rem 4rem;
  }
}

/* Tisk (návody na papír): tmavý text na bílé, bez menu a tlačítek */

@media print {
  :root {
    --bg: #fff;
    --bg-deep: #fff;
    --card: #fff;
    --line: #9aa;
    --text: #000;
    --muted: #333;
    --teal: #007a6b;
    color-scheme: light;
  }

  .site-nav,
  .btn-header,
  .launch,
  .skip-link,
  .crumb,
  .toc {
    display: none;
  }

  .guide h2,
  .shot {
    break-inside: avoid;
  }

  .guide h2 {
    break-after: avoid;
  }

  .hero,
  .launch {
    background-image: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
