:root{
  --bg:#070707;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.14);
  --text:#f5f5f5;
  --muted: rgba(245,245,245,0.68);
  --shadow: 0 24px 80px rgba(0,0,0,0.55);
  --radius: 22px;
  --max: 1200px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 0%, #111 0%, var(--bg) 55%);
  letter-spacing: 0.01em;
}

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

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(7,7,7,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav{
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}
.brand{
  display:flex;
  flex-direction:column;
  gap:0.2rem;
}
.brand h1{
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin:0;
  font-weight: 300;
}
.brand span{
  font-size: 0.85rem;
  color: var(--muted);
}
.navlinks{
  display:flex;
  gap:1.2rem;
  align-items:center;
}
.navlinks a{
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
  padding: 0.2rem 0.1rem;
  border-bottom: 1px solid transparent;
}
.navlinks a.active{
  border-bottom-color: rgba(255,255,255,0.8);
}

/* Layout */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: stretch;
}
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-left{
  padding: 2.5rem 2.5rem 2.2rem;
  position: relative;
  overflow:hidden;
}
.kicker{
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.hero-title{
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  margin: 0.8rem 0 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.hero-text{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}
.cta-row{
  margin-top: 1.8rem;
  display:flex;
  flex-wrap:wrap;
  gap: 0.9rem;
  align-items:center;
}
.btn{
  display:inline-flex;
  gap: 0.6rem;
  align-items:center;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  text-decoration:none;
  font-size: 0.92rem;
}
.btn:hover{ background: rgba(255,255,255,0.09); text-decoration:none; }

.hero-right{
  overflow:hidden;
  position:relative;
}
.hero-right img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.02);
}
.hero-right::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(800px 500px at 70% 20%, rgba(255,255,255,0.12), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}

/* Sections */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.section-head h2{
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: rgba(245,245,245,0.9);
}
.section-head .meta{
  color: var(--muted);
  font-size: 0.9rem;
}

.searchbar{
  margin-top: 1.2rem;
  display:grid;
  grid-template-columns: 1fr 190px 140px;
  gap: 0.8rem;
}
@media (max-width: 780px){
  .searchbar{ grid-template-columns: 1fr; }
}
.input{
  width:100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline:none;
}
.input::placeholder{ color: rgba(245,245,245,0.45); }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.theme-card{
  grid-column: span 4;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,0.04);
  transition: transform 200ms ease, background 200ms ease;
}
.theme-card:hover{ transform: translateY(-4px); background: rgba(255,255,255,0.06); }
@media (max-width: 980px){ .theme-card{ grid-column: span 6; } }
@media (max-width: 640px){ .theme-card{ grid-column: span 12; } }

.theme-thumb{
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  display:block;
}
.theme-body{
  padding: 1rem 1rem 1.1rem;
}
.theme-title{
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.08em;
}
.theme-sub{
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  display:flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.pill{
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  color: rgba(245,245,245,0.78);
}

/* Theme page gallery */
.theme-hero{
  padding: 2.3rem 2.4rem 2.2rem;
}
.theme-hero h2{
  margin: 0.35rem 0 0.35rem;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: none;
}
.theme-hero p{ color: var(--muted); margin: 0.2rem 0 0; }

.gallery{
  margin-top: 1.2rem;
  columns: 4 260px;
  column-gap: 1rem;
}
@media (max-width: 900px){ .gallery{ columns: 3 240px; } }
@media (max-width: 600px){ .gallery{ columns: 2 180px; } }

.photo{
  width:100%;
  border-radius: 16px;
  margin: 0 0 1rem;
  display:block;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  overflow:hidden;
  break-inside: avoid;
}
.photo img{
  width:100%;
  height:auto;
  display:block;
  filter: grayscale(100%) contrast(1.04);
  transition: transform 240ms ease, filter 240ms ease;
}
.photo:hover img{
  transform: scale(1.02);
  filter: grayscale(0%) contrast(1.03);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 50;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width: min(92vw, 1500px);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
}
.lb-ui{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lb-top{
  position:absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  color: rgba(245,245,245,0.85);
  font-size: 0.9rem;
}
.lb-btns{
  pointer-events: auto;
  display:flex;
  gap: 0.6rem;
}
.iconbtn{
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  cursor:pointer;
}
.iconbtn:hover{ background: rgba(255,255,255,0.12); }

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2.2rem 1.5rem;
  text-align:center;
}
