/* Jediný povolený zdroj barev pro web. */
@import url("novi-lidovci-vzornik-barev.css");

/* Jediné povolené písmo pro web: Inter z místních podkladů. */
@font-face {
  font-family: "Inter";
  src: url("Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: var(--color-cerna);
  background: var(--color-bila);
  font-family: "Inter";
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bila);
  color: var(--color-cerna);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.site-footer,
.section,
.hero {
  padding-left: max(1.25rem, calc((100vw - 76rem) / 2));
  padding-right: max(1.25rem, calc((100vw - 76rem) / 2));
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.5rem;
  border-bottom: 2px solid var(--color-cerna);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  width: 8.75rem;
  flex: 0 0 auto;
}

.logo {
  width: 100%;
}

.election-title {
  margin: 0;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.3;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: clamp(0.8rem, 3vw, 2.25rem);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28rem;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border: 2px solid var(--color-cerna);
  background: var(--color-zluta);
  color: var(--color-cerna);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle span + span {
  margin-top: 0.28rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.55fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  min-height: min(47rem, calc(100vh - 5.5rem));
  padding-top: 6rem;
  padding-bottom: 4.5rem;
  background: var(--color-zluta);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h1 {
  max-width: 49rem;
  margin-bottom: 1.8rem;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 850;
}

.lead {
  max-width: 38rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.button {
  display: inline-block;
  padding: 0.95rem 1.2rem;
  border: 2px solid var(--color-cerna);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.button-dark {
  background: var(--color-cerna);
  color: var(--color-bila);
}

.button-dark:hover,
.button-light:hover {
  background: var(--color-zluta);
  color: var(--color-cerna);
}

.hero-card {
  min-height: 18rem;
  padding: 1.4rem;
  background: var(--color-cerna);
  color: var(--color-bila);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card-number {
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-card p {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

h2 {
  max-width: 50rem;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 850;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--color-cerna);
  border-left: 2px solid var(--color-cerna);
}

.priority-card {
  min-height: 20rem;
  padding: 1.5rem;
  border-right: 2px solid var(--color-cerna);
  border-bottom: 2px solid var(--color-cerna);
  display: flex;
  flex-direction: column;
}

.priority-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.priority-number {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 800;
}

.priority-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.priority-icon {
  align-self: end;
  font-size: 2rem;
  font-weight: 400;
  line-height: 0.8;
}

.priority-toggle[aria-expanded="true"] .priority-icon {
  transform: rotate(45deg);
}

.priority-summary,
.priority-details p,
.priority-loading {
  margin: 1.2rem 0 0;
  line-height: 1.45;
}

.priority-details {
  margin-top: 0.4rem;
  border-top: 1px solid currentColor;
}

.priority-details p {
  margin-bottom: 0;
}

.priority-points-link {
  align-self: flex-start;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.priority-points {
  margin: 1.5rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.45;
}

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

.priority-dialog-copy {
  padding: clamp(2rem, 6vw, 4rem);
}

.priority-dialog-copy h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.priority-loading {
  grid-column: 1 / -1;
  padding: 1.5rem;
  border-right: 2px solid var(--color-cerna);
  border-bottom: 2px solid var(--color-cerna);
}

.priority-card-dark {
  background: var(--color-cerna);
  color: var(--color-bila);
}

.candidates {
  background: var(--color-zluta);
}

.candidates-heading {
  align-items: start;
}

.section-note {
  max-width: 22rem;
  margin: 0;
  line-height: 1.4;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.candidate-card {
  display: grid;
  grid-template-rows: auto minmax(2.5em, auto) auto minmax(4.05em, auto);
  align-content: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.candidate-card:hover .candidate-media {
  background: var(--color-cerna);
}

.candidate-card:hover .avatar {
  background: var(--color-zluta);
  color: var(--color-cerna);
}

.candidate-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.14;
  overflow: hidden;
  place-items: center;
  background: var(--color-bila);
  border: 2px solid var(--color-cerna);
}

.candidate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-bila);
}

.candidate-number {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.25rem 0.4rem;
  background: var(--color-zluta);
  font-size: 0.76rem;
  font-weight: 800;
}

.avatar {
  display: grid;
  width: 62%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--color-cerna);
  color: var(--color-bila);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.08em;
}

.candidate-card h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.candidate-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.candidate-card .candidate-meta {
  margin-bottom: 0.2rem;
  font-weight: 750;
}

.candidate-card .candidate-occupation {
  min-block-size: 4.05em;
}

.profile-dialog {
  width: min(54rem, calc(100% - 2rem));
  padding: 0;
  border: 2px solid var(--color-cerna);
  background: var(--color-bila);
  color: var(--color-cerna);
}

.profile-dialog::backdrop {
  background: var(--color-cerna);
  opacity: 0.8;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0;
  border: 2px solid var(--color-cerna);
  background: var(--color-zluta);
  color: var(--color-cerna);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

#profile-content {
  display: grid;
  grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.25fr);
}

.profile-media {
  display: grid;
  min-height: 24rem;
  place-items: center;
  background: var(--color-zluta);
}

.profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy {
  padding: clamp(2rem, 6vw, 4rem);
}

.profile-copy h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.profile-copy > p:last-child {
  margin: 1.8rem 0 0;
  line-height: 1.5;
}

.profile-copy > p:not(.eyebrow):not(.profile-facts):not(.profile-perex):not(.profile-motto) {
  margin: 1rem 0 0;
  line-height: 1.5;
}

.profile-copy h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.profile-perex {
  margin: 1.8rem 0 0;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.4;
}

.profile-topics {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.5;
}

.profile-motto {
  margin: 2rem 0 0;
  padding: 1rem;
  background: var(--color-zluta);
  font-weight: 800;
  line-height: 1.4;
}

.profile-facts {
  margin: 1.25rem 0 0;
  font-weight: 750;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 9rem;
}

.footer-logo {
  width: 9.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  padding: 0.7rem 1rem;
  border: 2px solid currentColor;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.footer-links a:hover {
  background: var(--color-zluta);
}

.footer-info {
  justify-self: end;
}

.site-footer p {
  max-width: 35rem;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: right;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-zluta);
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-card {
    min-height: 12rem;
  }

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

  .priority-card {
    min-height: 13rem;
  }

  .candidate-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #profile-content {
    grid-template-columns: 1fr;
  }

  .profile-media {
    min-height: 16rem;
  }
}

@media (max-width: 580px) {
  .site-header {
    min-height: 4.5rem;
  }

  .logo-link {
    width: 6rem;
  }

  .brand-lockup {
    gap: 0.6rem;
  }

  .election-title {
    font-size: 0.72rem;
  }

  nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(0.4rem) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-0.4rem) rotate(-45deg);
  }

  .site-header.menu-open nav {
    position: absolute;
    z-index: 10;
    top: calc(100% + 2px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    border-bottom: 2px solid var(--color-cerna);
    background: var(--color-zluta);
    font-size: 0.85rem;
  }

  .site-header.menu-open nav a {
    padding: 1rem max(1.25rem, calc((100vw - 76rem) / 2));
    border-top: 2px solid var(--color-cerna);
  }

  .section,
  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-heading,
  .site-footer {
    display: block;
  }

  .section-note {
    margin-top: 1.4rem;
  }

  .candidate-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .site-footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footer-links {
    margin-top: 1.5rem;
    justify-content: flex-start;
  }

  .footer-info {
    justify-self: auto;
  }

  .site-footer p {
    margin-top: 1rem;
    text-align: left;
  }
}
