/* patrikwagner.cz — osobní web. Vanilla CSS, bez buildu, bez externích závislostí. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --fg: #14171f;
  --fg-muted: #5a6472;
  --border: #e4e7ec;
  --accent: #2f6df6;
  --accent-fg: #ffffff;
  --ring: rgba(47, 109, 246, .35);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
  --radius: 14px;
  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #161b22;
    --fg: #e8ecf3;
    --fg-muted: #9aa4b2;
    --border: #232a35;
    --accent: #5b8cff;
    --accent-fg: #0b1220;
    --ring: rgba(91, 140, 255, .40);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fallback pro prohlížeče bez color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
  body { background: var(--bg); }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 28px) 0;
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 15px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-btn:hover { color: var(--fg); }
.lang-btn.is-active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow);
}
.lang-sep { color: var(--border); font-size: 12px; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(40px, 9vh, 96px) clamp(20px, 5vw, 28px);
}
.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.name {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tagline {
  margin: 18px auto 0;
  max-width: 30ch;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  font-weight: 600;
  color: var(--fg);
}

.lead {
  margin: 20px auto 0;
  max-width: 52ch;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  color: var(--fg-muted);
}

/* ---------- Actions ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 10px 26px var(--ring); }

.btn-ghost {
  background: var(--bg-soft);
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--fg-muted); }

.ico { width: 20px; height: 20px; flex: none; }

.email-plain {
  margin: 26px 0 0;
  font-size: .95rem;
  color: var(--fg-muted);
}
.email-plain a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.email-plain a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 28px) 30px;
  text-align: center;
  color: var(--fg-muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
}
.footer a { color: inherit; }
.footer a:hover { color: var(--accent); }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
