/*
Theme Name: kub_ai_z
Theme URI: https://kubaiz.cz/
Author: Jakub Jurášek
Description: Jednostránková WordPress šablona pro projekt kub_ai_z. Praktická AI bez omáčky, knihovna promptů a skillů.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kubaiz
*/

:root {
  --bg: #0c090b;
  --text: #e0dbd7;
  --card: #171215;
  --red: #c64c56;
  --red-dark: #a5384d;
  --lavender: #6b6590;
  --warm: #e4a873;
  --muted: #aaa1a3;
  --border: #3a2d32;
  --paper: #e0dbd7;
  --ink: #0c090b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.site-shell { overflow: hidden; background: var(--bg); }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.brand {
  font-family: "Anton", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand span { color: var(--red); }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(224, 219, 215, .14);
}
.site-header nav { display: flex; gap: 34px; color: var(--muted); font-size: 14px; }
.site-header nav a, .header-social { transition: color .2s ease; }
.site-header nav a:hover, .header-social:hover { color: var(--text); }
.header-social { justify-self: end; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; }
.header-social span { font-size: 20px; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 78px;
  padding: 78px 0 96px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1, h2 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.hero h1 { max-width: 700px; font-size: clamp(58px, 7.2vw, 104px); line-height: .94; }
.hero h1 em { display: block; color: var(--red); font-style: normal; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: #c5bec0; font-size: 18px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #49363d;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: var(--ink); border-color: var(--red); }
.button-primary:hover { background: #dd6973; border-color: #dd6973; }
.button-quiet { background: transparent; color: var(--text); }
.button-quiet:hover { border-color: var(--text); }
.scroll-cue { display: inline-flex; align-items: center; gap: 9px; margin-top: 52px; color: #8f8588; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.hero-visual { position: relative; min-height: 590px; display: grid; place-items: center; }
.spotlight {
  position: absolute;
  inset: -12% -20% 8% -28%;
  background: radial-gradient(circle at 70% 25%, rgba(228,168,115,.30), transparent 28%), radial-gradient(circle at 50% 60%, rgba(198,76,86,.10), transparent 50%);
  filter: blur(8px);
}
.poster { width: min(390px, 88%); margin: 0; position: relative; transform: rotate(2.5deg); }
.poster::before { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(228,168,115,.34); transform: rotate(-4deg); }
.poster img { width: 100%; height: 560px; display: block; object-fit: cover; object-position: 55% center; filter: saturate(.86) contrast(1.08); }
.poster-note { position: absolute; right: -4px; bottom: 58px; width: 260px; margin: 0; padding: 15px 18px; background: var(--paper); color: var(--ink); font-family: "Anton", Impact, sans-serif; font-size: 20px; line-height: 1.05; text-transform: uppercase; transform: rotate(-2deg); }

.what, .library { padding: 110px max(24px, calc((100% - 1180px) / 2)); }
.what { background: var(--paper); color: var(--ink); }
.section-heading { max-width: 780px; }
.section-heading .eyebrow { color: var(--red-dark); }
h2 { font-size: clamp(46px, 5.4vw, 78px); line-height: .98; }
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-top: 54px; }
.what-intro { font-size: 18px; line-height: 1.75; }
.what-intro p { margin: 0 0 22px; }
.workflow-list { margin: 0; padding: 0; list-style: none; display: grid; align-content: start; }
.workflow-list li { min-height: 58px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid rgba(12,9,11,.2); font-weight: 700; }
.workflow-list li > span { color: var(--red-dark); font-size: 18px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 72px; background: rgba(12,9,11,.18); border: 1px solid rgba(12,9,11,.18); }
.principles article { position: relative; min-height: 270px; padding: 34px; background: var(--paper); }
.principles article > span { position: absolute; right: 25px; top: 25px; color: var(--red-dark); font-family: "Anton", Impact, sans-serif; font-size: 28px; }
.principle-symbol { margin-bottom: 70px; color: var(--lavender); font-family: "Anton", Impact, sans-serif; font-size: 31px; line-height: 1; }
.principles h3 { margin: 0 0 10px; font-size: 19px; text-transform: uppercase; }
.principles p { margin: 0; color: #4d4548; line-height: 1.55; }

.why { position: relative; min-height: 650px; padding: 120px max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--card); }
.why::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.why-index { font-family: "Anton", Impact, sans-serif; font-size: clamp(120px, 21vw, 330px); color: rgba(198,76,86,.08); line-height: .75; transform: rotate(-90deg); }
.why-copy { max-width: 590px; }
.why-copy h2 { margin-bottom: 34px; }
.why-copy > p:not(.eyebrow) { color: #c5bec0; line-height: 1.72; font-size: 17px; }

.library { background: var(--bg); }
.library-heading { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 70px; }
.library-heading > p { margin: 0; color: var(--muted); line-height: 1.7; }
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 58px; }
.material-card { min-height: 340px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--card); transition: transform .2s ease, border-color .2s ease; }
.material-card:hover { transform: translateY(-5px); border-color: var(--red); }
.material-topline { display: flex; justify-content: space-between; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.material-card h3 { margin: 52px 0 14px; font-family: "Anton", Impact, sans-serif; font-size: 31px; line-height: 1; text-transform: uppercase; font-weight: 400; }
.material-card > p { margin: 0; color: var(--muted); line-height: 1.6; }
.material-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--border); }
.material-footer small { color: var(--warm); }
.soon, .download-link { color: #8f8588; font-size: 12px; }
.download-link { color: var(--text); font-weight: 700; }
.library-how { margin-top: 86px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }
.library-how h3 { margin: 0; font-family: "Anton", Impact, sans-serif; font-size: 42px; text-transform: uppercase; font-weight: 400; }
.library-how ol { margin: 0; padding: 0; list-style: none; }
.library-how li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.library-how li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: var(--ink); font-weight: 800; }
.library-how strong { display: block; margin-bottom: 5px; }
.library-how p { margin: 0; color: var(--muted); line-height: 1.55; }

.final-cta { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 80px 0; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border-top: 1px solid var(--border); }
.final-cta h2 { max-width: 800px; font-size: clamp(42px, 5vw, 68px); }
.site-footer { min-height: 120px; padding: 34px max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; background: var(--card); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }
.site-footer > div { display: flex; gap: 24px; }
.site-footer .brand { color: var(--text); }

.content-page { width: min(900px, calc(100% - 48px)); min-height: 65vh; margin: 0 auto; padding: 80px 0 110px; }
.content-page h1 { font-family: "Anton", Impact, sans-serif; font-size: clamp(48px, 7vw, 84px); font-weight: 400; line-height: 1; text-transform: uppercase; }
.content-page article { padding: 30px 0; border-bottom: 1px solid var(--border); }
.content-page .entry-content { color: #c5bec0; line-height: 1.75; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .hero-visual { min-height: 520px; }
  .poster img { height: 500px; }
  .what-grid, .library-heading, .library-how, .why { grid-template-columns: 1fr; gap: 42px; }
  .principles, .material-grid { grid-template-columns: 1fr; }
  .principles article { min-height: 230px; }
  .principle-symbol { margin-bottom: 48px; }
  .why-index { position: absolute; left: -20px; top: 120px; transform: none; }
  .why-copy { position: relative; justify-self: end; width: min(100%, 620px); }
}

@media (max-width: 600px) {
  .site-header, .hero, .final-cta { width: min(100% - 32px, 1180px); }
  .header-social { font-size: 0; }
  .hero { min-height: auto; padding: 48px 0 72px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 465px; }
  .poster { width: 82%; }
  .poster img { height: 430px; }
  .poster-note { right: -8px; bottom: 26px; width: 220px; font-size: 17px; }
  .what, .why, .library { padding-top: 78px; padding-bottom: 78px; }
  .what-grid { margin-top: 38px; }
  .principles { margin-top: 48px; }
  .material-grid { margin-top: 38px; }
  .library-how { margin-top: 58px; }
  .final-cta { grid-template-columns: 1fr; padding: 64px 0; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > div { flex-wrap: wrap; }
}

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