/* Frenemo. Farby a písma sú premenné značky. Písma sú lokálne, licencie sú v public/fonts/ a v licenses/. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fm-ink: #09112b;
  --fm-ink-muted: #4b5162;
  --fm-paper: #f6f5f1;
  --fm-white: #ffffff;
  --fm-yellow: #fec702;
  --fm-orange: #fd6c12;
  --fm-cream: #f9efcc;
  --fm-font-serif: "Source Serif 4", Georgia, serif;
  --fm-font-sans: "Source Sans 3", system-ui, sans-serif;
  --fm-space-1: 4px;
  --fm-space-2: 8px;
  --fm-space-3: 16px;
  --fm-space-4: 32px;
  --fm-radius-sm: 6px;
  --fm-radius-md: 12px;
  --fm-radius-full: 9999px;
  --measure: 40rem;
  --page: 72rem;
}

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

html {
  height: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--fm-paper);
  color: var(--fm-ink);
  font-family: var(--fm-font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  overflow-wrap: break-word;
}

header,
main,
footer {
  min-width: 0;
  max-width: 100%;
}

body::before {
  content: "";
  display: block;
  height: 0.4rem;
  background: var(--fm-yellow);
}

main {
  flex: 1;
}

h1,
h2 {
  font-family: var(--fm-font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

#prevadzkovatel,
#operator {
  scroll-margin-top: 1rem;
}

h1,
h2,
p {
  margin-top: 0;
}

a,
a:visited {
  color: inherit;
}

a:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--fm-ink);
  outline-offset: 3px;
}

.site-footer a:focus-visible {
  outline-color: var(--fm-yellow);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  background: var(--fm-yellow);
  color: var(--fm-ink);
  padding: 0.55rem 0.8rem;
  z-index: 2;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  transform: none;
}

.inner {
  width: min(100% - 2.5rem, var(--page));
  max-width: 100%;
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--fm-ink) 14%, var(--fm-paper));
}

.site-header .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo lang";
  align-items: center;
  column-gap: 1rem;
  padding-block: 0.85rem;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--fm-space-2);
  text-decoration: none;
}

.logo img {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
}

.site-header .logo {
  grid-area: logo;
  justify-self: start;
  min-width: 0;
}

.lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
}

.site-header .lang {
  grid-area: lang;
  justify-self: end;
  max-width: 100%;
}

.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 0.18em;
}

.lang a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
}

.hero {
  padding-block: 2.6rem 0.5rem;
}

.hero h1 {
  max-width: min(11em, 100%);
  margin-bottom: 0;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.tagline {
  display: block;
  max-width: 16em;
  margin-top: 0.45em;
  font-family: var(--fm-font-serif);
  font-weight: 600;
  font-size: 0.46em;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.hl {
  background-color: var(--fm-yellow);
  padding: 0 0.14em 0.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  max-width: var(--measure);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0.65rem 1.05rem;
  border-radius: var(--fm-radius-md);
  background: var(--fm-orange);
  color: var(--fm-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
}

.button:visited {
  color: var(--fm-ink);
}

.button:hover {
  background: var(--fm-ink);
  color: var(--fm-paper);
}

.demo {
  max-width: 40rem;
  margin-top: var(--fm-space-4);
  margin-bottom: var(--fm-space-4);
  padding: var(--fm-space-4);
  border: 1px solid color-mix(in srgb, var(--fm-ink) 16%, var(--fm-cream));
  border-radius: var(--fm-radius-md);
  background: var(--fm-cream);
}

.demo h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.demo p {
  margin-bottom: 1rem;
}

.agency-link {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

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

.page h1 {
  max-width: min(16em, 100%);
  margin-bottom: 0.8rem;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.policy {
  max-width: 42rem;
}

.policy h2 {
  margin-top: 2.1rem;
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.policy p,
.policy li {
  overflow-wrap: break-word;
}

.policy ul,
.policy ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.2rem;
}

.policy li + li {
  margin-top: 0.45rem;
}

.policy a {
  text-underline-offset: 0.15em;
}

.missing {
  padding-block: 3rem 2rem;
}

.missing h1 {
  max-width: min(12em, 100%);
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 3.5rem;
  background: var(--fm-ink);
  color: var(--fm-paper);
}

.site-footer .inner {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding-block: 1.5rem 1.7rem;
}

.company {
  margin-bottom: 0;
}

.site-footer a {
  text-underline-offset: 0.16em;
}

.site-footer .lang a[aria-current="page"] {
  text-decoration: none;
}

::selection {
  background: var(--fm-yellow);
  color: var(--fm-ink);
}

@media (min-width: 860px) {
  .site-footer .inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: 1.75rem;
  }

  .site-footer .company {
    margin: 0;
  }

  .site-footer .policy-link {
    margin: 0;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body::before,
  .skip,
  .lang,
  .button {
    display: none;
  }

  body,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .site-footer {
    margin-top: 2rem;
  }

  a {
    text-decoration: underline;
  }
}
