/* Rankvector cedule. Tokeny převzaté z rankvector-web (globals.css .rv-web, 01-tokens-from-disk.md). */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --rv-bg: #070809;
  --rv-panel: #0f1115;
  --rv-accent: #ff6a00;
  --rv-accent-hi: #ff8c4d;
  --rv-accent-soft: #ffb184;
  --rv-txt: #f4f5f7;
  --rv-muted: #a7b1c0;
  --rv-faint: #838c99;
  --rv-line: rgba(255, 255, 255, 0.08);
  --rv-line-strong: rgba(255, 255, 255, 0.14);
  --rv-font-sans: "Geist", "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--rv-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--rv-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rv-txt);
  background:
    radial-gradient(1100px 700px at 78% -6%, rgba(255, 106, 0, 0.1), transparent 60%),
    radial-gradient(900px 600px at 4% 34%, rgba(255, 90, 0, 0.045), transparent 55%),
    var(--rv-bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(255, 106, 0, 0.35);
  color: #fff;
}

a {
  color: var(--rv-txt);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--rv-accent-hi);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--rv-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--rv-txt);
  color: var(--rv-bg);
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Hlavička */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: inline-flex;
  color: var(--rv-txt);
  line-height: 0;
}

.brand svg {
  height: 22px;
  width: auto;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--rv-line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rv-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.lang:hover {
  color: var(--rv-txt);
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.06);
}

main {
  flex: 1;
}

/* Úvodní stránka */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255, 106, 0, 0.28);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.07);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rv-accent-soft);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rv-accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.18);
}

.hero h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin: 28px 0 0;
  max-width: 36em;
  font-size: 18px;
  line-height: 1.65;
  color: var(--rv-muted);
}

.lede strong {
  color: var(--rv-txt);
  font-weight: 500;
}

.note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  max-width: 36em;
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--rv-line);
}

.note > div {
  padding: 18px 20px;
  background: rgba(15, 17, 21, 0.92);
}

.note dt {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-faint);
}

.note dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--rv-muted);
}

.mark {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.mark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Právní stránky */
.doc {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.doc h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.meta {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--rv-faint);
}

.doc h2 {
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--rv-line);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.doc h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.doc p,
.doc li,
.doc td,
.doc th {
  color: var(--rv-muted);
}

.doc p {
  margin: 0 0 14px;
}

.doc strong {
  color: var(--rv-txt);
  font-weight: 600;
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc li {
  margin: 0 0 8px;
}

.doc li::marker {
  color: var(--rv-accent);
}

.table {
  margin: 8px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--rv-line);
  border-radius: 12px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}

.doc th,
.doc td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rv-line);
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rv-faint);
  background: rgba(255, 255, 255, 0.02);
}

.doc td:first-child {
  color: var(--rv-txt);
}

.scope {
  overflow-wrap: anywhere;
}

blockquote {
  margin: 8px 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--rv-accent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.03);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Chybová stránka */
.lost {
  padding-top: 96px;
  padding-bottom: 120px;
  max-width: 640px;
}

.lost h1 {
  margin: 0 0 16px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
}

.lost p {
  margin: 0 0 12px;
  color: var(--rv-muted);
}

/* Patička */
.foot {
  border-top: 1px solid var(--rv-line);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13.5px;
  color: var(--rv-faint);
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a {
  color: var(--rv-muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--rv-accent-hi);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .mark {
    order: -1;
    justify-self: start;
    max-width: 200px;
    margin: 0 0 16px -12px;
  }

  .hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .top {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .brand svg {
    height: 19px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .lede {
    font-size: 16.5px;
  }

  .note {
    grid-template-columns: 1fr;
  }

  .mark {
    max-width: 150px;
  }

  .doc {
    padding-top: 24px;
  }

  .doc h1,
  .lost h1 {
    font-size: 32px;
  }

  .doc h2 {
    font-size: 20px;
  }

  .doc thead {
    display: none;
  }

  .doc tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--rv-line);
  }

  .doc tr:last-child {
    border-bottom: 0;
  }

  .doc td {
    display: block;
    padding: 3px 14px;
    border: 0;
  }

  .doc td:first-child {
    font-weight: 600;
    padding-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
