/* Bricolage Grotesque (SIL OFL 1.1): variable, subset to Latin + Czech, opsz 12–96, wght 400–800, wdth 100 */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* JetBrains Mono (SIL OFL 1.1): variable, subset to Latin + Czech, wght 400–600 */
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E0E0E;
  --paper: #FBFBF7;
  --paper-on-dark: #F3F3EE;
  --accent: #FF5A2C;
  --hl: #D6FF3D;
  --hover: #C2340A;
  --muted: #4A4A45;
  --dark-text: #D8D8D1;
  --dark-muted: #A9A9A2;
  --dark-rule: #55554F;

  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --max: 1360px;
  --pad-x: clamp(16px, 4vw, 56px);
}

/* Base */

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

body {
  margin: 0;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: var(--ink);
}

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

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

[hidden] {
  display: none !important;
}

.nowrap {
  white-space: nowrap;
}

.page {
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

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

.term :focus-visible,
.course--dark :focus-visible,
.contact :focus-visible,
.footer :focus-visible {
  outline-color: var(--hl);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.skip:hover {
  color: var(--paper);
}

/* Motion (all of it is switched off for prefers-reduced-motion at the end) */

@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-2deg); } }

.mq { animation: mq 34s linear infinite; }
.spin { animation: spin 22s linear infinite; }
.cur { animation: blink 1s steps(1) infinite; }
.ln { animation: rise 0.35s ease-out both; }
.wob { animation: wob 4s ease-in-out infinite; }

.tilt {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tilt:hover {
  transform: rotate(-1.2deg) translateY(-4px);
  box-shadow: 10px 10px 0 var(--ink);
}

/* Shared type */

.kicker {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 14px;
}

.kicker--hl {
  color: var(--hl);
}

.h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn--hl {
  background: var(--hl);
  color: var(--ink);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
}

.btn--dark,
.btn--dark:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark {
  gap: 10px;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--nav {
  padding: 10px 18px;
  font-size: 16px;
  white-space: nowrap;
}

.btn--lg {
  padding: 16px 26px;
  font-size: 18px;
}

.btn--card {
  align-self: flex-start;
  margin-top: auto;
  padding: 14px 22px;
  font-size: 17px;
}

.btn--mono {
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 15px;
}

.btn--hl.btn--mono {
  border-color: var(--hl);
}

.btn--outline-light,
.btn--outline-light:hover {
  background: transparent;
  color: var(--paper-on-dark);
  border-color: var(--paper-on-dark);
}

/* Header */

.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.logo__tag {
  padding: 4px 8px;
  background: var(--ink);
  color: var(--hl);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 14px;
}

.nav__links a {
  text-decoration: none;
}

/* Hero */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--pad-x) clamp(48px, 7vw, 96px);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 14px;
}

.hero__tags span {
  padding: 6px 12px;
  border: 2px solid var(--ink);
}

.hero__title {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(46px, 8.4vw, 136px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.strike {
  position: relative;
  display: inline-block;
}

.strike__bar {
  position: absolute;
  left: -3%;
  right: -3%;
  top: 50%;
  height: 0.11em;
  background: var(--accent);
  transform: rotate(-5deg);
}

.hero__build {
  display: inline-block;
  padding: 0 0.12em;
  background: var(--hl);
  transform: rotate(-1.5deg);
}

.badge {
  position: absolute;
  right: var(--pad-x);
  top: 72px;
  width: 168px;
  height: 168px;
}

.badge svg {
  display: block;
}

.badge__text {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3.2px;
  fill: var(--ink);
}

.badge__core {
  position: absolute;
  inset: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(32px, 5vw, 56px);
}

.hero__intro {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__lead {
  max-width: 560px;
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__hint {
  max-width: 460px;
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* Terminal demo */

.term {
  flex: 1 1 460px;
  min-width: 0;
  background: var(--ink);
  color: var(--paper-on-dark);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
  font-family: var(--mono);
}

.term__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #2E2E2B;
  font-size: 12px;
  color: var(--dark-muted);
}

.term__live {
  color: var(--hl);
}

.term__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 18px 6px;
}

.chip {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--dark-rule);
  background: transparent;
  color: #E6E6DF;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.chip:hover {
  transform: translateY(-2px);
}

.chip[aria-pressed="true"] {
  border-color: var(--hl);
  background: var(--hl);
  color: var(--ink);
}

.term__body {
  min-height: 300px;
  padding: 14px 18px 22px;
  font-size: 14px;
  line-height: 1.65;
}

.term__caret {
  color: var(--hl);
}

.term__cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--hl);
}

.term__out {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.term__line {
  color: #C9C9C2;
}

.term__line > span {
  color: #FF7A52;
}

.term__wait {
  color: #85857E;
}

.term__done {
  align-self: flex-start;
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--hl);
  color: var(--ink);
}

/* Marquee */

.marquee {
  margin: 8px -20px;
  overflow: hidden;
  white-space: nowrap;
  background: var(--accent);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-1.2deg);
}

.marquee__track {
  display: inline-flex;
  padding: 16px 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.marquee__track > span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding: 0 22px;
}

.marquee__star {
  font-family: var(--mono);
  font-weight: 400;
}

/* Sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
}

.section--trainings {
  padding: clamp(72px, 9vw, 128px) var(--pad-x) clamp(48px, 6vw, 80px);
}

.section--about {
  padding: clamp(72px, 9vw, 128px) var(--pad-x);
}

/* Školení */

.trainings__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.trainings__intro {
  max-width: 380px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.trainings {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 36px);
}

.course {
  position: relative;
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 3vw, 44px);
  background: var(--paper);
  border: 2px solid var(--ink);
}

.course--dark {
  background: var(--ink);
  color: var(--paper-on-dark);
}

.course__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.course__num {
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.course__num--ai {
  color: var(--accent);
  -webkit-text-stroke: 2px var(--ink);
}

.course__num--vibe {
  color: var(--hl);
}

.course__tag {
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.course--dark .course__tag {
  background: var(--hl);
  color: var(--ink);
}

.course__title {
  margin: 0 0 10px;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.course__text {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.course--dark .course__text {
  color: var(--dark-text);
}

.course__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.course__list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 17px;
}

.course__mark {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 13px;
}

.course--dark .course__list {
  border-top-color: var(--paper-on-dark);
}

.course--dark .course__list li {
  border-bottom-color: var(--dark-rule);
}

.course--dark .course__mark {
  color: var(--hl);
}

.consult {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(20px, 3vw, 36px);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 40px);
  border: 2px dashed var(--ink);
}

/* Add-on services stack as one group under the training cards. */
.consult + .consult {
  margin-top: clamp(16px, 2vw, 24px);
}

.consult__body {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 20px;
}

.consult__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Too long to stay on one line on phones; the &nbsp;s keep its word pairs together. */
.consult__title--long {
  line-height: 1.05;
  white-space: normal;
}

.consult__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.consult__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

/* Specializace */

.spec {
  background: var(--hl);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.spec__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--pad-x);
}

.spec__title {
  max-width: 1000px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.spec__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.spec-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  padding: 28px;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.spec-card--dark {
  background: var(--ink);
  color: var(--paper-on-dark);
}

.spec-card__code {
  font-family: var(--mono);
  font-size: 13px;
}

.spec-card--dark .spec-card__code {
  color: var(--hl);
}

.spec-card__title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.spec-card__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.spec-card--dark .spec-card__text {
  color: var(--dark-text);
}

/* O mně */

.about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 72px);
}

.about__photo-wrap {
  flex: 0 1 380px;
  width: 100%;
  min-width: 0;
}

.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 30%;
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  background: repeating-linear-gradient(135deg, #EDEDE6 0 14px, var(--paper) 14px 28px);
}

.about__body {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__title {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 100px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.about__lead {
  max-width: 720px;
  margin: 0;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.5;
}

.about__lead a {
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin-top: 8px;
  border: 2px solid var(--ink);
}

.stat {
  padding: 22px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stat--hl {
  background: var(--hl);
}

.stat--last {
  border-right: 0;
}

.stat__num {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat__label {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
}

/* Kontakt */

.contact {
  background: var(--ink);
  color: var(--paper-on-dark);
}

.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) var(--pad-x) 0;
}

.contact__title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: clamp(44px, 7vw, 116px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.contact__title span {
  color: var(--hl);
}

.biglink {
  display: block;
  color: var(--paper-on-dark);
  font-size: clamp(22px, 5.2vw, 80px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.14em;
  transition: color 0.2s;
}

.biglink:hover {
  color: var(--hover);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 2px solid var(--paper-on-dark);
}

.contact__item {
  padding: 22px 22px 22px 0;
}

.contact__key {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark-muted);
}

.contact__val {
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}

a.contact__val,
a.contact__val:hover {
  color: var(--paper-on-dark);
  line-height: normal;
}

a.contact__val:not(.contact__val--link) {
  text-decoration: none;
}

/* Footer */

.footer {
  background: var(--ink);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--pad-x) 40px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid #3A3A36;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dark-muted);
}

.footer__cursor {
  color: var(--hl);
}

/* Phones: the design drops the rotating badge here. */
@media (max-width: 760px) {
  .badge {
    display: none;
  }
}

/* While the badge shows, keep headline lines that sit beside it from running under it.
   The spacer only reaches down to the badge's bottom edge (72px + 168px from the section top). */
@media (min-width: 761px) {
  .hero__title::before {
    content: "";
    float: right;
    width: 188px;
    height: calc(240px - clamp(40px, 7vw, 96px) - 62px);
  }
}

/* The section links need about 755px next to the logo and button; below that they wrapped. */
@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
}

.nav__links a {
  white-space: nowrap;
}

/* "Branislav" + "blaskovic.cz" + the button need about 400px at full size; tighten on phones. */
@media (max-width: 480px) {
  .nav {
    gap: 12px;
  }

  .logo {
    gap: 6px;
    font-size: 13px;
  }

  .logo__tag {
    padding: 4px 6px;
  }

  .btn--nav {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .logo span + span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mq,
  .spin,
  .cur,
  .ln,
  .wob {
    animation: none;
  }

  .tilt,
  .chip,
  .btn,
  .biglink {
    transition: none;
  }
}
