/* ============================================================
   Victor Eliot — personal site · v3 "calm, committed"
   One sans family (Inter Tight display / Inter body) + mono labels.
   Monochrome warm-dark canvas + ONE flat amber accent.
   8px spacing scale. No ambient motion.
   ============================================================ */

:root {
  /* dark (default) — warm near-black */
  --bg:        #0c0b09;
  --bg-2:      #100f0d;
  --surface:   #141310;
  --surface-2: #191713;
  --border:    #ffffff12;
  --border-2:  #ffffff24;
  --text:      #f2f0ea;
  --muted:     #a8a49a;
  --faint:     #8b8a96;
  --accent:    #e8a33d;
  --accent-ink:#0c0b09;
  --live:      #37d67a;
  --radius:    16px;
  --maxw:      1120px;
  --shadow:    0 24px 60px -28px #000000b3;
  /* 8px spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px; --s7: 128px;
  --f-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-theme="light"] {
  --bg:        #f4f2ec;
  --bg-2:      #efece4;
  --surface:   #ffffff;
  --surface-2: #fbfaf7;
  --border:    #1a171114;
  --border-2:  #1a171128;
  --text:      #17150f;
  --muted:     #52504a;
  --faint:     #6f6c62;
  --accent:    #9a6a15;
  --accent-ink:#ffffff;
  --shadow:    0 24px 56px -30px #17150f26;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* ---------- grain: barely there ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .grain { opacity: .04; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.brand__mark { width: 26px; height: 26px; color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: var(--s2); }
.nav__links { display: flex; align-items: center; gap: var(--s3); margin-right: var(--s1); }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }

.lang { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; padding: 2px; }
.lang__btn {
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.lang__btn.is-active { background: var(--text); color: var(--bg); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border-2);
  background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s ease;
}
.icon-btn:hover { border-color: var(--accent); }
.theme-toggle__icon { width: 15px; height: 15px; border-radius: 999px; position: relative; background: var(--text); }
.theme-toggle__icon::after { content:""; position:absolute; inset:0; border-radius:999px; background: var(--bg); transform: translate(4px,-4px) scale(.92); transition: transform .3s ease; }
:root[data-theme="light"] .theme-toggle__icon::after { transform: translate(6px,6px) scale(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-family: var(--f-display); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, border-color .2s ease, background .2s ease;
}
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--ghost { border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: var(--s6); overflow: hidden; }
.hero__glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 880px; height: 560px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 13%, transparent), transparent 65%);
  filter: blur(30px);
}
:root[data-theme="light"] .hero__glow { opacity: .35; }
.hero__inner { position: relative; z-index: 2; max-width: 860px; padding-bottom: var(--s5); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono);
  font-size: 13px; color: var(--muted); margin-bottom: var(--s3);
}
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--live); flex: none; }

.hero__title {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(2.5rem, 6.4vw, 4.2rem); margin-bottom: var(--s3);
}
.hl { color: var(--accent); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 680px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s5); }
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.hero__meta span { font-size: 14px; color: var(--faint); }

/* ---------- employer strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--s3) 0; position: relative; z-index: 2; background: var(--bg-2); }
.strip__inner { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.strip__label { font-family: var(--f-mono); font-size: 12px; color: var(--faint); white-space: nowrap; }
.strip__logos { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.strip__logos img {
  height: 24px; width: auto; opacity: .55;
  filter: grayscale(1) invert(.88) brightness(1.4);
  transition: opacity .25s ease, filter .25s ease;
}
.strip__logos img[alt="Alza.cz"] { height: 27px; }
.strip__logos img[alt="TECHNISERV IT"] { height: 30px; }
.strip__logos img:hover { opacity: 1; filter: none; }
:root[data-theme="light"] .strip__logos img { filter: grayscale(1); opacity: .55; }
:root[data-theme="light"] .strip__logos img:hover { filter: none; opacity: 1; }
.strip__gov { font-family: var(--f-mono); font-size: 12.5px; color: var(--faint); border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }

/* ---------- sections ---------- */
.section { padding: var(--s6) 0; position: relative; }
.section__head { margin-bottom: var(--s5); display: flex; align-items: baseline; gap: var(--s2); }
.section__num { font-family: var(--f-mono); font-size: 13px; color: var(--accent); flex: none; }
.section__title { font-family: var(--f-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.025em; font-weight: 600; line-height: 1.1; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s4) var(--s3) var(--s3);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card__icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: var(--s3); }
.card h3 { font-family: var(--f-display); font-size: 1.18rem; margin-bottom: var(--s1); letter-spacing: -.01em; font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- productized offer ---------- */
.offer {
  margin-top: var(--s2); display: grid; grid-template-columns: 1fr 260px; gap: var(--s4);
  align-items: center; background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: var(--s4);
}
.offer__kicker { font-family: var(--f-mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: var(--s1); }
.offer__main h3 { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: var(--s1); }
.offer__main p { color: var(--muted); font-size: 15px; max-width: 560px; }
.offer__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.offer__price { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.offer__rate { font-family: var(--f-mono); font-size: 12px; color: var(--faint); }

/* ---------- about refusal ---------- */
.about__refuse {
  margin-top: var(--s4); padding: var(--s2) var(--s3); border: 1px dashed var(--border-2);
  border-radius: 12px; color: var(--muted); font-size: 14.5px; max-width: 620px;
}

/* ---------- work grid ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.work__card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease, box-shadow .3s ease;
}
a.work__card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.work__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
a.work__card:hover .work__thumb img { transform: scale(1.025); }
.work__body { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); }
.work__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.work__top h3 { font-family: var(--f-display); font-size: 1.22rem; letter-spacing: -.01em; font-weight: 600; }
.work__arrow { color: var(--faint); font-size: 1.05rem; transition: color .2s ease, transform .2s ease; }
a.work__card:hover .work__arrow { color: var(--accent); transform: translate(2px, -2px); }
.work__body p { color: var(--muted); font-size: 14.5px; }
.work__tags { display: flex; gap: var(--s1); margin-top: var(--s1); flex-wrap: wrap; }
.tag {
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--border-2); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.tag--live { color: var(--live); border-color: color-mix(in srgb, var(--live) 40%, transparent); }
.tag--live::before { content: "●"; font-size: 8px; margin-right: 6px; vertical-align: 1px; }

/* CTA card */
.work__card--cta { border-style: dashed; background: transparent; }
.work__card--cta:hover { border-color: var(--accent); background: var(--surface); }
.work__body--cta { justify-content: center; min-height: 100%; padding: var(--s4) var(--s3); gap: var(--s2); }
.work__cta-num { font-family: var(--f-mono); font-size: 13px; color: var(--faint); }
.work__body--cta h3 { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.work__cta-link { color: var(--accent); font-weight: 600; font-family: var(--f-display); font-size: 15px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 280px 1fr; gap: var(--s5); align-items: start; }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__mark { width: 64px; height: 64px; color: var(--border-2); }
.about__lead { font-size: 1.18rem; line-height: 1.55; color: var(--text); max-width: 620px; margin-bottom: var(--s4); }
.about__points { display: flex; flex-direction: column; gap: var(--s3); }
.about__points li { padding-left: var(--s3); border-left: 2px solid var(--accent); }
.about__points h3 { font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.about__points p { color: var(--muted); font-size: 15px; margin-top: 2px; max-width: 560px; }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 800px; }
.timeline::before { content:""; position:absolute; left:6px; top:8px; bottom:8px; width:2px; background: linear-gradient(var(--border-2), transparent); }
.timeline__item { position: relative; padding: 0 0 var(--s4) var(--s5); }
.timeline__item::before { content:""; position:absolute; left:0; top:6px; width:14px; height:14px; border-radius:999px; background: var(--bg); border:2px solid var(--accent); }
.timeline__item:first-child::before { background: var(--accent); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__when { font-family: var(--f-mono); font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.timeline__head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: 2px; }
.timeline__logos { display: inline-flex; gap: var(--s1); flex: none; }
.logo-chip {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: #ffffff; border: 1px solid var(--border-2); padding: 6px; flex: none;
}
.logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.timeline__body h3 { font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.timeline__org { color: var(--muted); font-weight: 400; }
.timeline__body p { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 640px; }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.skills__group h3 { font-family: var(--f-mono); font-size: 13.5px; color: var(--faint); margin-bottom: var(--s2); font-weight: 500; }
.skills__group ul { display: flex; flex-wrap: wrap; gap: var(--s1); }
.skills__group li { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.skills__lang { margin-top: var(--s4); color: var(--muted); font-size: 15px; }
.skills__lang strong { color: var(--text); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.contact__title { font-family: var(--f-display); font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.025em; font-weight: 600; line-height: 1.05; }
.contact__lead { color: var(--muted); font-size: 1.1rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-top: var(--s2); }
.contact__note { font-family: var(--f-mono); font-size: 13px; color: var(--faint); margin-top: var(--s3); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--s4) 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: 14px; flex-wrap: wrap; gap: var(--s2); }
.footer__links { display: inline-flex; gap: var(--s3); flex-wrap: wrap; }
.footer__links a { color: var(--muted); transition: color .2s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__loc { font-family: var(--f-mono); }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .cards { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: var(--s4); }
  .about__photo { max-width: 280px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .hero { padding-top: var(--s5); }
  .hero__meta { gap: var(--s4); }
  .section { padding: var(--s5) 0; }
  .work { grid-template-columns: 1fr; }
  .strip__inner, .strip__logos { gap: var(--s3); }
  .offer { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ---------- blog / article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: var(--s5) var(--s3) var(--s6); }
.article__back { font-family: var(--f-mono); font-size: 13px; color: var(--faint); display: inline-block; margin-bottom: var(--s4); }
.article__back:hover { color: var(--accent); }
.article__date { font-family: var(--f-mono); font-size: 13px; color: var(--faint); display: block; margin-bottom: var(--s2); }
.article h1 { font-family: var(--f-display); font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin-bottom: var(--s3); }
.article h2 { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.015em; margin: var(--s5) 0 var(--s2); }
.article p, .article li { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.article p { margin-bottom: var(--s2); }
.article strong { color: var(--text); }
.article a:not(.btn) { color: var(--accent); }
.article ul, .article ol { padding-left: var(--s3); margin-bottom: var(--s2); }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article blockquote { border-left: 2px solid var(--accent); padding-left: var(--s3); margin: var(--s3) 0; font-style: italic; }
.article code { font-family: var(--f-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
.article__lead { font-size: 1.18rem !important; color: var(--text) !important; }
.article__cta { margin-top: var(--s5); padding: var(--s3); background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); }
.article__cta p { margin-bottom: var(--s2); color: var(--text); }

/* blog index */
.postlist { display: flex; flex-direction: column; gap: var(--s2); max-width: 720px; }
.postlist__item { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); transition: border-color .25s ease, transform .25s ease; }
.postlist__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.postlist__item h2 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.postlist__item p { color: var(--muted); font-size: 15px; }
.postlist__meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--faint); display: block; margin-bottom: var(--s1); }
@media (max-width: 480px) {
  .skills { grid-template-columns: 1fr; }
  .brand__name { display: none; }
  .nav__right { gap: var(--s1); }
}
