/* IT2IT — runbook aesthetic. IBM Plex Sans/Mono, svetly technicky podklad,
   zelene stavove LED = veci ktere realne bezi. */

:root {
  --paper: #f3f6f4;
  --card: #ffffff;
  --ink: #17231c;
  --muted: #57675d;
  --line: #d8e1db;
  --ok: #189a55;
  --ok-soft: rgba(24, 154, 85, 0.14);
  --amber: #b87514;
  --amber-soft: rgba(184, 117, 20, 0.13);
  --gray-dot: #8b9a91;
  --gray-soft: rgba(139, 154, 145, 0.16);
  --panel: #0e1713;
  --panel-ink: #cfe0d5;
  --panel-muted: #7d9488;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101613;
    --card: #17201b;
    --ink: #e4ece7;
    --muted: #98a89e;
    --line: #26312b;
    --ok: #2fb56d;
    --ok-soft: rgba(47, 181, 109, 0.16);
    --amber: #d38f2c;
    --amber-soft: rgba(211, 143, 44, 0.15);
    --gray-dot: #78877e;
    --gray-soft: rgba(120, 135, 126, 0.2);
    --panel: #0b110e;
    --panel-ink: #cfe0d5;
    --panel-muted: #74897d;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.brand {
  font-family: var(--mono); font-weight: 500; font-size: 1.15rem;
  text-decoration: none; letter-spacing: 0.02em;
}
.brand b { color: var(--ok); font-weight: 500; }
.site-nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--mono); font-size: 0.8rem; text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover { color: var(--ink); }
.lang-switch {
  font-family: var(--mono); font-size: 0.8rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.15rem 0.7rem; color: var(--muted); white-space: nowrap;
}
.lang-switch:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- hero ---------- */

.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.08;
  max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--ok); }
.hero .lede {
  margin-top: 1.4rem; max-width: 46rem; font-size: 1.15rem; color: var(--muted);
}
.hero .lede strong { color: var(--ink); font-weight: 600; }

.status-panel {
  margin-top: 2.5rem;
  background: var(--panel); color: var(--panel-ink);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.75;
  overflow-x: auto;
  box-shadow: 0 12px 32px -18px rgba(10, 25, 17, 0.55);
}
.status-panel .row { white-space: pre; }
.status-panel .key { color: var(--panel-muted); }
.status-panel .green { color: #3ecf7e; }
.status-panel .title { color: #ffffff; font-weight: 500; }

.dot {
  display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%;
  background: var(--ok); vertical-align: baseline;
}
.dot.live { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--ok-soft); }
  50% { box-shadow: 0 0 0 6px var(--ok-soft); }
}
.dot.gray { background: var(--gray-dot); }
.dot.amber { background: var(--amber); }

/* ---------- sections ---------- */

.section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ok); margin-bottom: 0.6rem;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.8rem;
}
.section > .wrap > p.intro { max-width: 46rem; color: var(--muted); margin-bottom: 2rem; }

/* co delam */
.skills {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.skill {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.4rem 1.5rem;
}
.skill h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.skill p { font-size: 0.95rem; color: var(--muted); }
.skill .tech {
  margin-top: 0.9rem; font-family: var(--mono); font-size: 0.76rem;
  color: var(--ink); line-height: 1.9;
}

/* projekty */
.projects {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.project {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.project .status {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.74rem; color: var(--muted);
}
.project .status a { color: var(--ok); text-decoration: none; }
.project .status a:hover { text-decoration: underline; }
.project h3 { font-size: 1.08rem; font-weight: 600; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { color: var(--ok); }
.project p { font-size: 0.94rem; color: var(--muted); flex-grow: 1; }
.project .tech { font-family: var(--mono); font-size: 0.74rem; color: var(--ink); }

/* klientska prace */
.client-list { margin-top: 2rem; display: flex; flex-direction: column; }
.client-item {
  display: grid; grid-template-columns: 16rem 1fr; gap: 1.5rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.client-item:last-child { border-bottom: 1px solid var(--line); }
.client-item h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.client-item p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 40rem) {
  .client-item { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* infrastruktura */
.infra-facts {
  margin-top: 1.8rem; list-style: none;
  font-family: var(--mono); font-size: 0.86rem; line-height: 2.1;
}
.infra-facts li { padding-left: 1.4rem; position: relative; }
.infra-facts li::before {
  content: ''; position: absolute; left: 0; top: 0.85em;
  width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ok);
}

/* kontakt */
.contact { text-align: left; }
.contact .mail {
  display: inline-block; margin-top: 1.2rem;
  font-family: var(--mono); font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--ok); padding-bottom: 0.15rem;
}
.contact .mail:hover { color: var(--ok); }

/* footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 3.5rem;
  padding: 1.6rem 0 2.2rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }

@media (max-width: 40rem) {
  .hero { padding-top: 3rem; }
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .status-panel { font-size: 0.8rem; padding: 1.1rem 1.2rem; }
  .status-panel .row { white-space: pre-wrap; }
}
