/**
 * @file
 * Design tokens and base typography (reboot level).
 */

:root {
  /* Brand colors (from the previous vizikukac theme). */
  --vk-menu-blue: #65bdd1;
  --vk-deepblue: #002e58;
  --vk-title: #015b8f;
  --vk-title-blue: #a3f5ff;
  --vk-blue: #003f73;
  --vk-darkblue: #015b8f;
  --vk-news-title-bg: rgba(1, 91, 143, 0.7);
  --vk-menu-hover: #114575;
  --vk-submenu: #79868d;
  --vk-yellow: #ffe332;

  /* Neutrals. */
  --vk-text: #212529;
  --vk-link: #0d6efd;
  --vk-link-hover: #0a58ca;
  --vk-border: #dee2e6;
  --vk-white: #fff;

  /* Type. */
  --vk-font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --vk-font-display: "Yanone Kaffeesatz", "Arial Narrow", sans-serif;

  /* Layout. */
  --vk-gutter: 12px;
}

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

body {
  margin: 0;
  font-family: var(--vk-font);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--vk-text);
  background-color: var(--vk-white);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
}

h2 {
  font-size: calc(1.325rem + 0.9vw);
}

h3 {
  font-size: calc(1.3rem + 0.6vw);
}

h4 {
  font-size: calc(1.275rem + 0.3vw);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

@media (min-width: 1200px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }
}

/* Page and content level-1 headings, like the previous theme. */
h1 {
  padding: 2rem 0 0.2rem;
  color: var(--vk-blue);
  font-weight: 400;
  border-bottom: 1px solid var(--vk-submenu);
}

p,
ul,
ol,
dl,
address {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-bottom: 0;
}

b,
strong {
  font-weight: bolder;
}

a {
  color: var(--vk-link);
  text-decoration: underline;
}

a:hover {
  color: var(--vk-link-hover);
}

img,
svg {
  vertical-align: middle;
}

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

figure {
  margin: 0 0 1rem;
}

table {
  border-collapse: collapse;
  caption-side: bottom;
}

th {
  text-align: inherit;
}

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

/* Keyboard focus stays visible on every interactive element. */
:focus-visible {
  outline: 2px solid var(--vk-menu-blue);
  outline-offset: 2px;
}

.skip-link:focus {
  position: absolute;
  z-index: 1100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--vk-white);
  background: var(--vk-deepblue);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
