/* Visual language borrowed from SVOJ TICKET (svoj.space): white paper, Montserrat,
   heavy headings, 14px corners, thin grey rules, clean cards. Orange is replaced by
   two loud colours with strict jobs:
   - toxic green: never text on white (contrast 1.4). Lines, highlighter, and
     button fills with black text on top (13.9).
   - bright purple: text and links on white (5.6), white text on purple (5.6).
   Light only, on purpose — the page is white paper, like the ticket. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format("woff2");
}

:root {
  --green: #39ff14;
  --purple: #8b1eff;
  --purple-dark: #6d00e0;
  --purple-pale: #f3eaff;
  --ink: #111;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --bg: #fff;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--purple); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* ── the lines layer ─────────────────────────────────────────────────── */
.page { position: relative; }
svg.lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
svg.lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ln-g { stroke: var(--green); }
.ln-p { stroke: var(--purple); }
.page > *:not(svg) { position: relative; z-index: 1; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* ── header ──────────────────────────────────────────────────────────── */
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
}
.brand {
  font-weight: 900; font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--ink); text-decoration: none; background: var(--bg); padding: 2px 6px; margin-left: -6px;
  border-radius: 8px;
}
.brand b { color: var(--purple); font-weight: 900; }
nav.top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav.top a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 6px 10px; border-radius: 999px; background: var(--bg);
}
nav.top a:hover { background: var(--purple-pale); color: var(--purple-dark); }
nav.top a.lang { border: 1.5px solid var(--ink); }
@media (max-width: 640px) { nav.top a:not(.lang) { display: none; } }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 72px; }
.place {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 2px 0;
}
h1 {
  font-size: clamp(44px, 10.5vw, 92px); font-weight: 900; line-height: 0.98;
  letter-spacing: -0.02em; margin: 14px 0 24px;
}
h1 .hl { position: relative; white-space: nowrap; }
h1 .hl::before {   /* highlighter swipe behind the surname */
  content: ""; position: absolute; z-index: -1; left: -0.08em; right: -0.1em; bottom: 0.04em; height: 0.46em;
  background: var(--green); border-radius: 0.2em 0.35em 0.25em 0.4em; transform: rotate(-1.2deg);
}
.lead { font-size: clamp(20px, 3.2vw, 26px); font-weight: 700; line-height: 1.35; max-width: 30ch; margin: 0; }
.lead span { color: var(--purple); display: block; }

.langs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.langs li {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--bg); font-size: 15px;
}
.langs b { font-weight: 900; letter-spacing: 0.5px; }
.langs span { color: var(--muted); font-weight: 600; }

.available { margin: 22px 0 0; font-weight: 600; color: var(--ink); }
.available::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px var(--ink); margin-right: 10px; vertical-align: 1px;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-size: 16px; padding: 14px 22px; border-radius: var(--radius);
  border: 2px solid var(--ink); transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-main { background: var(--green); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-main:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost { background: var(--bg); color: var(--ink); }
.btn-ghost:hover { background: var(--purple-pale); color: var(--ink); }

/* ── sections ────────────────────────────────────────────────────────── */
section { padding: 56px 0; }
h2 {
  display: inline-block; position: relative; font-size: clamp(30px, 5.5vw, 44px); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 8px; background: var(--bg); padding-right: 8px;
}
h2 svg { position: absolute; left: 0; bottom: -14px; width: 100%; height: 18px; overflow: visible; }
h2 svg path { fill: none; stroke-width: 5; stroke-linecap: round; }
.section-lead { color: var(--muted); font-weight: 600; margin: 18px 0 30px; max-width: 60ch; }
.section-lead span { background: var(--bg); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ── project cards ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: 1 / -1; }
}
.card {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px; display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--purple); }
.card .num { font-size: 13px; font-weight: 800; color: var(--purple); letter-spacing: 1px; }
.card h3 { font-size: 23px; font-weight: 900; line-height: 1.15; margin: 6px 0 2px; }
.card .sub { font-weight: 700; margin: 0; }
.card .kind { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin: 8px 0 0; }
.card p.text { margin: 14px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; }
.tags li { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f4f4f4; }
.card .go { margin-top: 16px; font-weight: 800; }
.card .go::after { content: " ↗"; }
.card .spacer { flex: 1; }

/* ── services ────────────────────────────────────────────────────────── */
.services { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px;
  counter-increment: s;
}
.service::before {
  content: counter(s, decimal-leading-zero); display: inline-block; font-weight: 900; font-size: 14px;
  background: var(--green); padding: 2px 8px; border-radius: 6px; margin-bottom: 12px;
}
.service h3 { font-size: 20px; font-weight: 900; line-height: 1.2; margin: 0 0 8px; }
.service p { margin: 0; }

/* ── about ───────────────────────────────────────────────────────────── */
.about { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .about { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.about-text p { margin: 0 0 16px; background: var(--bg); }
.about-text p:last-child { border-left: 4px solid var(--purple); padding: 4px 0 4px 16px; }
dl.facts { margin: 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
dl.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.facts div:last-child { border-bottom: 0; }
dl.facts dt { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--purple); }
dl.facts dd { margin: 2px 0 0; font-weight: 600; }

/* ── contact ─────────────────────────────────────────────────────────── */
.contact { padding: 72px 0 40px; }
.contact-box {
  background: var(--bg); border: 2px solid var(--ink); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 5vw, 44px); box-shadow: 8px 8px 0 var(--green);
}
.contact-box h2 { margin-bottom: 14px; }
.contact-box p { margin: 18px 0 24px; font-weight: 600; color: var(--muted); }
.mail { font-size: clamp(18px, 4.4vw, 30px); font-weight: 900; word-break: break-all; }

footer.bot {
  font-size: 14px; color: var(--muted); padding: 28px 0 44px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px;
}
footer.bot span { background: var(--bg); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 48px; }
  section { padding: 44px 0; }
  .card { padding: 20px; }
  .btn { width: 100%; justify-content: center; }
}

/* minimal version: sections without a lead line keep the same rhythm */
.gap { height: 26px; }
.about:has(> dl.facts:only-child) { grid-template-columns: minmax(0, 560px); }
