/* ====== Tokens (barvy, fonty) ====== */
:root{
    /* Fonty: velmi jednoduché. Special Elite je volitelný pro nadpisy. */
    --font-display: "Special Elite", Georgia, "Times New Roman", serif;
    --font-card-title: 'Montserrat', Arial, sans-serif;
  
    --bg: #0b0d10;
    --surface: #11151b;
    --text: #e6e9ef;
    --muted: #a7b0c2;
    --border: #222a36;
    --accent: #a78bfa;
  }
  
  /* ====== Base ====== */
  *{ box-sizing: border-box; }
  html, body{ margin: 0; padding: 0; }
  html{ color-scheme: dark; }
  body{
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-card-title);
    line-height: 1.6;
  }
  .container{
    width: min(1080px, 92vw);
    margin: 0 auto;
  }
  
  /* ====== Header / Footer ====== */
  .site-head{
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  }
  .brand{
    margin: 20px 0 4px;
    font-family: var(--font-display);    
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: .3px;
  }
  .subtitle{
    margin: 0 0 20px;
    color: var(--muted);
    font-family: var(--font-display);
  }
  .site-foot{
    border-top: 1px solid var(--border);
    margin-top: 28px;
    padding: 18px 0;
    color: var(--muted);
    font-family: var(--font-display);
    text-align: center;
  }
  
  /* ====== Grid & Cards ====== */
  .grid{
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
    gap: 16px;
  }
  .card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: clip;
  }
  .card > a{
    display: block;
    padding: 14px 14px 16px;
    color: inherit;
    text-decoration: none;
  }
  .card h3{
    margin: 0 0 6px;
    font-size: 18px;
    font-family: var(--font-display);
  }
  .card p{
    margin: 0;
    color: var(--muted);
    font-size: 14px;
  }
  .card:hover{ border-color: rgba(167,139,250,.45); }
  
  /* Obrázek projektu (volitelný) */
  .card img{
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 12px;
    /* border-bottom: 1px solid var(--border);*/
  }
  
  .img-placeholder {
    width: 100%;
    height: 140px;
    background: var(--surface);
    margin-bottom: 12px;
    /* border-bottom: 1px solid var(--border);*/
  }
  
  /* Chyba načtení */
  .error{
    margin: 8px 0 32px;
    color: #ffb4b4;
    background: rgba(255, 99, 99, .08);
    border: 1px solid rgba(255, 99, 99, .25);
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
  }
  
  /* Špetka spacingu kolem mainu */
  main.container{ padding: 18px 0 24px; }
  
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left {
  flex: 1;
}
.home-link {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  margin-left: 16px;
  text-decoration: none;
}
.home-link:hover {
  color: var(--accent);
}
  