/* beil.cz home: Metro tiles, same family as /app/ and /hry/ */
:root{
  --bg:#ffffff; --ink:#1d2733; --dim:#5b6b7c; --faint:#8a99a8; --line:#e3e8ee;
  --graphite:#373435; --bar:#373435; --xEdge:transparent;
  --pomuckar:#6841AB; --zpevnik:#2E7D32;
  --linkedin:#0A66C2; --facebook:#1877F2; --x:#000000; --email:#455A64;
  --ui:"Segoe UI","Segoe UI Variable",system-ui,-apple-system,Roboto,sans-serif;
  color-scheme:light;
}
/* dark: follows the system setting, live */
@media (prefers-color-scheme:dark){
  :root{ --bg:#14181d; --ink:#e8edf2; --dim:#a3b1bf; --faint:#7a8896; --line:#2a323b;
    --x:#0b0d10; --bar:#3a4650; --xEdge:#3a4650; color-scheme:dark; }
}

html{background:var(--bg);}
body{margin:0 auto; max-width:980px; padding:0 16px 48px; font-family:var(--ui);
  color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased;}
body::before{content:""; position:fixed; inset:0 0 auto 0; height:6px; background:var(--bar); z-index:1;}

/* header */
.head{display:flex; align-items:center; gap:20px; padding:48px 0 34px;}
.head .logo{width:72px; height:72px; flex:none; color:var(--ink);}

.head h1{margin:0; font-weight:300; font-size:clamp(34px,7vw,52px); letter-spacing:-.01em; line-height:1;}

/* groups: separated by space only, no headings (language-neutral page) */
.grid{display:grid; gap:10px; margin:0 0 28px; padding:0; list-style:none;}
.projects{grid-template-columns:2fr 1fr;}
.social{grid-template-columns:repeat(4,1fr);}

/* tile */
.tile{position:relative; display:flex; flex-direction:column; min-height:170px; padding:18px 20px;
  box-sizing:border-box; color:#fff; outline:2px solid transparent; outline-offset:-2px;
  transition:filter .12s, outline-color .12s, transform .12s;}
.tile:hover{filter:brightness(1.08); outline-color:#fff;}
.tile:active{transform:scale(.98);}
.tile:has(.main:focus-visible){outline-color:#fff; box-shadow:0 0 0 3px var(--ink);}
.tile .main{color:inherit; text-decoration:none; display:flex; flex-direction:column; flex:1;}
.tile .main::after{content:""; position:absolute; inset:0;}       /* whole tile clickable */
.tile .main:focus-visible{outline:none;}
.tile .ico{width:44px; height:44px; fill:currentColor;}
.tile .name{margin-top:auto; padding-top:18px; font-weight:300; font-size:28px; line-height:1.1;}
.tile .desc{margin-top:4px; font-size:14px; opacity:.9;}
.tile .name.mail{font-size:21px;}

.t-pomuckar{background:var(--pomuckar); min-height:220px;}
.t-zpevnik {background:var(--zpevnik);  min-height:220px;}
.t-linkedin{background:var(--linkedin);}
.t-facebook{background:var(--facebook);}
.t-x       {background:var(--x);}
.t-email   {background:var(--email);}
.t-x{outline-color:var(--xEdge);} .t-x:hover{outline-color:#fff;}

/* Pomuckar: colored logo in a white badge + its own networks, small */
.t-pomuckar .badge{width:64px; height:64px; background:#fff; border-radius:12px; display:grid; place-items:center;}
.t-pomuckar .badge svg{width:46px; height:46px;}
.t-pomuckar .name{font-size:36px;}
.t-pomuckar .sub{position:absolute; right:16px; bottom:16px; display:flex; gap:6px; z-index:1;}
.t-pomuckar .sub a{display:grid; place-items:center; width:34px; height:34px; color:#fff; border-radius:50%;
  background:rgba(255,255,255,.14); transition:background .12s;}
.t-pomuckar .sub a:hover, .t-pomuckar .sub a:focus-visible{background:rgba(255,255,255,.32); outline:none;}
.t-pomuckar .sub svg{width:17px; height:17px; fill:currentColor;}

/* "Najdete mě také" */
.also{display:flex; flex-wrap:wrap; gap:8px 22px; margin:0; padding:0; list-style:none;}
.also a{display:inline-flex; align-items:center; gap:8px; color:var(--dim); text-decoration:none; font-size:15px; padding:4px 0;}
.also a:hover{color:var(--ink);}
.also svg{width:18px; height:18px; fill:currentColor;}

footer{margin-top:44px; padding-top:16px; border-top:1px solid var(--line); color:var(--faint); font-size:13px;}

@media (max-width:760px){
  .projects{grid-template-columns:1fr;}
  .social{grid-template-columns:repeat(2,1fr);}
  .t-pomuckar .sub{position:static; margin-top:14px;}
}
@media (max-width:420px){
  .tile{min-height:140px;}
  .tile .name{font-size:24px;}
  .tile .name.mail{font-size:18px;}
  .t-pomuckar .name{font-size:30px;}
  .head{padding-top:36px;}
}
