/* 3D • Little Owl — simple, clean, mobile-first */
:root{
  --bg:#0b0c10;
  --card:#12141a;
  --muted:#a7b0c0;
  --text:#eef2ff;
  --line:#222633;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --r: 18px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color:var(--text);
}
.wrap{width:min(1000px, calc(100% - 2rem)); margin-inline:auto;}
.header{
  padding:1.25rem 0 1rem;
  display:flex; gap:1rem;
  align-items:flex-end; justify-content:space-between;
  flex-wrap:wrap;
}
.brand{display:flex; gap:.9rem; align-items:center;}
.logo-img{
  width: 96px;
  height: auto;
  max-height: 96px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
}
h1{margin:0;font-size:1.35rem;}
.sub{margin:.15rem 0 0;color:var(--muted);font-size:.95rem}
.nav{display:flex; gap:.6rem; flex-wrap:wrap;}
.nav a{
  color:var(--text); text-decoration:none;
  padding:.45rem .75rem;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background: rgba(255,255,255,.04);
}
.nav a:hover{border-color: rgba(255,255,255,.22);}
.card{
  background: rgba(18,20,26,.92);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  margin: 0 0 1rem;
}
.grid2{
  margin-top:.75rem;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:.8rem;
}
@media (max-width:640px){ .grid2{grid-template-columns:1fr;} }
.btn{
  display:flex; flex-direction:column; gap:.25rem;
  padding:.9rem 1rem;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  text-decoration:none; color:var(--text);
}
.btn:hover{border-color: rgba(255,255,255,.22);}
.hint{color:var(--muted); font-size:.9rem}
.note{margin:.9rem 0 0; color: var(--muted); font-size:.95rem; line-height:1.45;}
code{background: rgba(255,255,255,.06); padding:.12rem .32rem; border-radius:8px; border:1px solid rgba(255,255,255,.08);}

.sectionhead{display:flex; align-items:center; justify-content:space-between; gap:1rem;}

.gallery{
  margin-top:1rem;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:.8rem;
}
@media (max-width:900px){ .gallery{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (max-width:560px){ .gallery{grid-template-columns: 1fr;} }

.tile{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.tile:hover{transform: translateY(-2px); border-color: rgba(255,255,255,.22);}

.thumb{width:100%; aspect-ratio:4/3; object-fit:cover; display:block;}
.meta{padding:.65rem .75rem .75rem;}
.meta .t{margin:0;font-weight:650;font-size:1rem}
.meta .d{margin:.25rem 0 0;color:var(--muted);font-size:.92rem;line-height:1.35}

.ghost{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 999px;
  padding:.45rem .8rem;
  cursor:pointer;
}
.footer{padding: 0 0 2rem;}
.footrow{display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; align-items:center; padding-top:.25rem;}
.small{color: var(--muted); font-size:.92rem}
.small a{color: var(--muted); text-decoration:none}
.small a:hover{color: var(--text);}
.dot{margin:0 .4rem; opacity:.6}

/* Lightbox */
.lightbox{position:fixed; inset:0; background: rgba(0,0,0,.72); display:none; align-items:center; justify-content:center; padding: 1.2rem; z-index: 50;}
.lightbox[aria-hidden="false"]{display:flex;}
.lightbox-figure{margin:0; max-width:min(1000px, 100%); width: 100%; background: rgba(18,20,26,.96); border:1px solid rgba(255,255,255,.12); border-radius: 18px; overflow:hidden; box-shadow: var(--shadow);}
.lightbox-figure img{width:100%; height:auto; display:block; max-height: 75vh; object-fit:contain; background:#0b0c10;}
.lightbox-figure figcaption{padding:.75rem 1rem; color: var(--muted); font-size:.95rem;}
.lightbox-close{position:absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 14px; border:1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--text); font-size: 26px; cursor:pointer;}
