/* ============================================================
   Jakub Eminger — osobní stránka
   Design: neo-brutalismus — tlusté černé rámy, tvrdé stíny,
   ostré barvy (žlutá / cyan / růžová), hravé náklony.
   Fonty: Archivo Black (display) + Space Grotesk (text).
   Žádné gradienty, žádné rozmazané stíny.
   ============================================================ */

/* ------------------------------ Proměnné ------------------- */
:root {
  --ink:    #000000;
  --paper:  #FFFFFF;
  --yellow: #FFE600;
  --cyan:   #7DF0FF;
  --pink:   #FF8AD8;
  --gray:   #EFEFEF;
  --focus:  #2B6EF2;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --text:    "Space Grotesk", "Segoe UI", sans-serif;
}

/* ------------------------------ Základ --------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
}

strong { font-weight: 700; }

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

main:focus { outline: none; }

.container {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* Odkazy v textu */
a:not(.btn):not(.logo) {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

a:not(.btn):not(.logo):hover {
  background: var(--yellow);
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: var(--gray);
  border: 2px solid var(--ink);
  padding: 0 0.3em;
}

mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0.05em 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mark--cyan { background: var(--cyan); }

/* Přeskočit na obsah */
.skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--ink);
  transform: translateY(-300%);
}

.skip:focus { transform: none; }

/* ------------------------------ Stavební prvky ------------- */
.btn {
  display: inline-block;
  font-family: var(--text);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--yellow { background: var(--yellow); }

.btn--sm {
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--sm:hover { box-shadow: 1px 1px 0 var(--ink); }

.btn--big {
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  padding: 0.9rem 1.5rem;
}

.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.card--yellow { background: var(--yellow); }

.sticker {
  display: inline-block;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.28em 0.7em;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sticker--yellow { background: var(--yellow); }

.h-box {
  display: inline-block;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 0.3em 0.65em;
}

.h-box--cyan { background: var(--cyan); }
.h-box--pink { background: var(--pink); }
.h-box--yellow { background: var(--yellow); }

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: clamp(2.2rem, 5vw, 3rem);
}

.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }
.tilt-l-min { transform: rotate(-0.7deg); }
.tilt-r-min { transform: rotate(0.7deg); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pills li {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.22em 0.65em;
  font-weight: 700;
  font-size: 0.85rem;
}

.points li {
  position: relative;
  padding-left: 1.6rem;
  margin-block: 0.35rem;
}

.points li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ------------------------------ Nav ------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-block: 0.75rem;
}

.logo {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.1em 0.45em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 1.4rem;
}

.nav__links a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.nav__links a:hover {
  background: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.nav__cta { margin-left: auto; }

.burger {
  display: none;
  margin-left: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
}

.burger span + span { margin-top: 4px; }

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  padding: 6.5rem 1.5rem 2rem;
}

.mmenu nav {
  display: flex;
  flex-direction: column;
}

.mmenu a:not(.btn) {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
  padding: 1rem 0.2rem;
}

.mmenu a:not(.btn):hover { background: var(--yellow); }

.mmenu__cta {
  background: var(--yellow);
  margin-top: 1.5rem;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
}

.no-scroll { overflow: hidden; }

/* ------------------------------ Hero ----------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__sticker { margin-bottom: 1.6rem; }

.hero__title {
  /* dost vysoké řádkování, aby zvýrazňovač dalšího řádku nepřekryl
     dolní tahy písmen (y, j, p) z řádku nad ním */
  font-size: clamp(2.05rem, 5.4vw, 3.8rem);
  line-height: 1.32;
  max-width: 20ch;
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero__star {
  position: absolute;
  top: clamp(3rem, 8vw, 5rem);
  right: clamp(1rem, 6vw, 5rem);
  width: clamp(64px, 10vw, 120px);
  transform: rotate(10deg);
}

.hero__bolt {
  position: absolute;
  bottom: clamp(2rem, 6vw, 4rem);
  right: clamp(6rem, 20vw, 16rem);
  width: clamp(36px, 5vw, 56px);
  transform: rotate(-8deg);
}

/* ------------------------------ Marquee -------------------- */
.marquee {
  border-block: 3px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  padding-block: 0.6rem;
  font-family: var(--display);
  font-size: 1.02rem;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee var(--marq-dur, 26s) linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------------ Sekce ---------------------- */
.section {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

/* ------------------------------ Pro klienty ---------------- */
.services__lead {
  max-width: 52ch;
  font-size: 1.08rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.4rem);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1.6rem, 4vw, 2.2rem);
}

.service {
  padding: 1.5rem 1.4rem;
}

.service__icon {
  width: 52px;
  height: 52px;
  display: block;
  margin-bottom: 1rem;
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.service .points { margin-top: 0.9rem; }

.service--yellow { background: var(--yellow); }
.service--cyan { background: var(--cyan); }
.service--pink { background: var(--pink); }

.services__cta { margin-top: clamp(2rem, 5vw, 2.6rem); }

/* ------------------------------ Projekty (okna) ------------ */
.window {
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper);
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.window:last-child { margin-bottom: 0; }

.window__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 3px solid var(--ink);
}

.window__bar--cyan { background: var(--cyan); }
.window__bar--pink { background: var(--pink); }
.window__bar--yellow { background: var(--yellow); }
.window__bar--ink { background: var(--ink); }

.window__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
}

.window__url {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 0.08em 0.55em;
}

.window__body {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.window__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.window__body h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.9rem;
}

.window__body .points { margin-block: 1rem; }
.window__body .pills { margin-top: 1.2rem; }

.window__note {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.window__cta { margin-top: 1.4rem; }

.window-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(2rem, 5vw, 2.6rem);
}

.window-grid .window { margin-bottom: 0; }

.window__note::before { content: "✶ "; }

/* ------------------------------ O mně ---------------------- */
.about {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.about__text {
  padding: clamp(1.4rem, 4vw, 2rem);
}

.about__text p + p { margin-top: 1em; }

.about__facts {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.fact {
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fact__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact__value { font-weight: 500; }

/* ------------------------------ Dovednosti ----------------- */
.section--skills {
  background: var(--cyan);
  border-block: 3px solid var(--ink);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.4rem, 3.5vw, 2rem);
}

.skill { padding: 1.4rem; }

.skill__title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* ------------------------------ Cesta ---------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: clamp(1.6rem, 4vw, 2.2rem);
}

.step {
  position: relative;
  padding: 2.3rem 1.4rem 1.4rem;
}

.step__num {
  position: absolute;
  top: -1.1rem;
  left: 1.1rem;
  font-family: var(--display);
  font-size: 1rem;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.12em 0.5em;
  background: var(--paper);
}

.step__num--yellow { background: var(--yellow); }
.step__num--cyan { background: var(--cyan); }
.step__num--pink { background: var(--pink); }

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.step__year {
  font-family: var(--text);
  font-weight: 700;
  font-size: 0.78rem;
  background: var(--gray);
  border: 2px solid var(--ink);
  padding: 0.05em 0.45em;
  vertical-align: 0.15em;
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* ------------------------------ Kontakt -------------------- */
.section--contact { padding-bottom: clamp(4.5rem, 9vw, 6.5rem); }

.contact {
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  box-shadow: 10px 10px 0 var(--ink);
}

.contact h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* ------------------------------ Footer (konec hry) --------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 4.5rem) 1.6rem;
}

.footer__title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow);
}

.footer__q {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.footer__choices {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.footer .btn-game {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  border: 3px solid var(--yellow);
  color: var(--yellow);
  transition: transform 0.2s ease, background 0.08s ease,
    color 0.08s ease, border-color 0.08s ease, opacity 0.2s ease;
}

.footer a.btn-game { text-decoration: none; }

.footer .btn-game:hover {
  background: var(--yellow);
  color: var(--ink);
}

.footer .btn-game:active { transform: translate(2px, 2px); }

.footer .btn-game--no {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.6);
}

.footer .btn-game--no:hover { border-color: var(--yellow); }

.footer .btn-game--dodge {
  position: relative;
  z-index: 5;
  background: var(--ink);
}

.footer__score {
  margin-top: 1.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer__score span {
  color: var(--yellow);
  letter-spacing: 0.22em;
}

.footer__credits {
  margin-top: 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer a:hover { color: var(--ink); }

/* ------------------------------ Cheat mód (Konami) --------- */
.tilt-l, .tilt-r, .tilt-l-min, .tilt-r-min {
  transition: transform 0.25s ease;
}

.cheat-badge {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  transform: rotate(-3deg);
}

body.cheat .tilt-l { transform: rotate(-4deg); }
body.cheat .tilt-r { transform: rotate(4deg); }
body.cheat .tilt-l-min { transform: rotate(-2.2deg); }
body.cheat .tilt-r-min { transform: rotate(2.2deg); }
body.cheat .marquee__track { animation-duration: calc(var(--marq-dur, 26s) / 4); }
body.cheat .hero__star { transform: rotate(35deg); }

/* ------------------------------ Mobil ---------------------- */
@media (max-width: 880px) {
  .nav__links,
  .nav__cta { display: none; }

  .nav__lang { margin-left: auto; }

  .burger {
    display: block;
    margin-left: 0;
  }
}

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

  .hero__star {
    top: auto;
    bottom: 1.5rem;
    right: 1rem;
    width: 58px;
  }

  .hero__bolt { display: none; }

  .contact { box-shadow: 6px 6px 0 var(--ink); }

  .window { box-shadow: 6px 6px 0 var(--ink); }
}

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

  .marquee__track { animation: none; }

  .btn { transition: none; }
}

/* ------------------------------ Tisk ----------------------- */
@media print {
  .skip,
  .nav,
  .mmenu,
  .marquee,
  .hero__star,
  .hero__bolt,
  .footer {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  /* rozlučka na papíře */
  main::after {
    content: "Vytištěno z jakubeminger.cz — šetři lesy, radši mi napiš: emin.jakub@gmail.com";
    display: block;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 3px solid #000;
    font-weight: 700;
  }

  html[lang="en"] main::after {
    content: "Printed from jakubeminger.cz — save the trees, just write me: emin.jakub@gmail.com";
  }
}
