/* =========================================================
   HJJL.-FT — Stanisław Ziętek — style strony portfolio
   Kolory, typografia i odstępy zebrane w zmiennych na górze —
   to najłatwiejsze miejsce, żeby dopasować markę do siebie.
========================================================= */

:root{
  --paper:#f2f0ea;        /* tło jasnych sekcji */
  --paper-deep:#e9e6dd;   /* lekko ciemniejsze tło (O mnie) */
  --ink:#15130f;          /* podstawowy kolor tekstu */
  --ink-soft:#4a463d;     /* tekst pomocniczy / opisy */
  --line: rgba(21,19,15,0.14); /* linie / separatory */
  --amber:#b8862f;        /* jedyny akcent — hover, linki */
  --white:#ffffff;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Plus Jakarta Sans', sans-serif;
  font-weight:400;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}
h1,h2,h3,.serif{ font-family:'Playfair Display', serif; font-weight:700; letter-spacing:-0.01em; line-height:1.05; }
a{color:inherit; text-decoration:none;}
img{display:block; max-width:100%;}
button{font-family:inherit;}
.wrap{max-width:1360px; margin:0 auto; padding:0 5vw;}
a:focus-visible, button:focus-visible{outline:2px solid var(--amber); outline-offset:3px;}

/* ---------- NAV ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:22px 5vw;
  display:flex; align-items:center; justify-content:space-between;
  transition:background .4s ease, padding .4s ease, color .4s ease, border-color .4s ease;
  color:var(--white);
  border-bottom:1px solid transparent;
}
header.solid{
  background:rgba(242,240,234,0.94);
  backdrop-filter:blur(6px);
  padding:14px 5vw;
  border-color:var(--line);
  color:var(--ink);
}
.logo{ font-family:'Playfair Display', serif; font-weight:600; font-size:1.25rem; letter-spacing:0.02em; }
nav ul{list-style:none; display:flex; gap:28px;}
nav a{ font-size:0.86rem; letter-spacing:0.02em; position:relative; padding:10px 0; display:inline-block; opacity:0.85; }
nav a:hover{opacity:1;}
nav a::after{ content:''; position:absolute; left:0; right:100%; bottom:6px; height:1px; background:var(--amber); transition:right .25s ease; }
nav a:hover::after{right:0;}
.nav-toggle{ display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:0; padding:12px; margin:-12px; }
.nav-toggle span{width:22px; height:2px; background:currentColor; display:block;}

/* ---------- HERO ---------- */
.hero{ position:relative; height:100svh; min-height:560px; overflow:hidden; background:#0d0d0c; color:var(--paper); display:flex; flex-direction:column; justify-content:space-between; }
.hero-media{position:absolute; inset:0;}
.hero-media img, .hero-media svg{width:100%; height:100%; object-fit:cover;}
.hero-fade{ position:absolute; inset:0; background:linear-gradient(0deg, rgba(10,10,9,0.96) 0%, rgba(10,10,9,0.35) 48%, rgba(10,10,9,0.15) 75%); }
.hero-top{ position:relative; z-index:2; padding:100px 5vw 0; display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.hero-kicker{ list-style:none; font-size:0.86rem; letter-spacing:0.04em; }
.hero-kicker li{ margin-bottom:4px; opacity:0.85; }
.hero-brand{ font-size:0.86rem; letter-spacing:0.06em; opacity:0.8; }
.hero-bottom{ position:relative; z-index:2; padding:0 5vw 56px; display:flex; justify-content:space-between; align-items:flex-end; gap:20px; }
.hero-name{ font-size:clamp(2.6rem, 11vw, 7.2rem); -webkit-text-stroke:1.4px var(--paper); color:transparent; line-height:0.92; text-transform:uppercase; }
.hero-vertical{ writing-mode:vertical-rl; text-orientation:mixed; font-size:0.9rem; letter-spacing:0.08em; opacity:0.85; padding-bottom:6px; }
.scroll-cue{ position:absolute; left:5vw; bottom:22px; z-index:2; font-size:0.76rem; opacity:0.75; display:flex; align-items:center; gap:10px; }
.scroll-cue::after{ content:''; width:1px; height:28px; background:var(--paper); opacity:0.6; animation:cue 1.8s ease-in-out infinite; }
@keyframes cue{ 0%{transform:scaleY(0); transform-origin:top;} 50%{transform:scaleY(1); transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0); transform-origin:bottom;} }

/* ---------- SEKCJE KATEGORII ---------- */
.category{ padding:76px 0; border-bottom:1px solid var(--line); }
@media(min-width:700px){ .category{padding:104px 0;} }
.category-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:36px; gap:20px; flex-wrap:wrap; }
.category-head h2{ font-size:clamp(1.9rem,5.5vw,3.1rem); text-transform:uppercase; }
.category-head .credit{ font-size:0.85rem; color:var(--ink-soft); letter-spacing:0.03em; }
.category-head p{ max-width:340px; color:var(--ink-soft); font-size:0.94rem; }

.masonry{ column-count:1; column-gap:14px; }
@media(min-width:640px){ .masonry{column-count:2;} }
@media(min-width:1000px){ .masonry{column-count:3;} }
.g-item{ break-inside:avoid; margin-bottom:14px; position:relative; overflow:hidden; background:var(--paper-deep); border-radius:14px; }
.g-item img{ width:100%; height:auto; display:block; transition:transform .6s ease; }
.g-item:hover img{transform:scale(1.035);}

/* ---------- O MNIE ---------- */
#o-mnie{ background:var(--paper-deep); }

.about{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  align-items:center;
  padding:40px 24px;
  box-sizing:border-box;
  width:100%;
}

@media(min-width:900px){
  .about{
    grid-template-columns:0.85fr 1.15fr;
    gap:70px;
    padding:76px 0;
  }
}

.about-portrait{
  position:relative;
  aspect-ratio:4/5;
  background:#dedad0;
  overflow:hidden;
  width:clamp(140px, 45vw, 220px);
  max-width:100%;
  margin:0 auto;
  border-radius:12px;
  box-sizing:border-box;
}

@media(min-width:900px){
  .about-portrait{ width:100%; max-width:400px; margin:0; border-radius:14px; }
}

.about-portrait img{ width:100%; height:100%; object-fit:cover; display:block; }

.about-copy{
  text-align:center;
  width:100%;
  box-sizing:border-box;
}

@media(min-width:900px){
  .about-copy{ text-align:left; }
}

.about-copy .kicker{
  color:var(--amber);
  font-size:0.8rem;
  margin-bottom:10px;
  letter-spacing:0.03em;
}

.about-copy .quote{
  font-size:clamp(1.1rem,5vw,1.9rem);
  font-family:'Playfair Display',serif;
  font-weight:600;
  line-height:1.35;
  margin:0 auto 16px;
  max-width:26ch;
}

@media(min-width:900px){
  .about-copy .quote{ margin-left:0; margin-right:0; }
}

.about-copy p{
  color:var(--ink-soft);
  max-width:56ch;
  margin:0 auto 14px;
  font-size:0.92rem;
  line-height:1.6;
}

@media(min-width:900px){
  .about-copy p{ margin-left:0; margin-right:0; }
}

/* ---------- PUBLIKACJE ---------- */
.publication{ display:flex; flex-direction:column; gap:24px; background:var(--white); border:1px solid var(--line); border-radius:18px; padding:28px; max-width:640px; }
@media(min-width:600px){ .publication{flex-direction:row; align-items:center;} }
.pub-cover{ width:100%; max-width:220px; aspect-ratio:1; border-radius:12px; overflow:hidden; flex-shrink:0; background:var(--paper-deep); }
.pub-cover img{width:100%; height:100%; object-fit:cover;}
.pub-info .pub-label{ font-size:0.8rem; letter-spacing:0.06em; color:var(--amber); margin-bottom:10px; text-transform:uppercase; }
.pub-info h3{ font-size:1.7rem; margin-bottom:4px; }
.pub-info p{ color:var(--ink-soft); font-size:0.95rem; }

/* ---------- KONTAKT ---------- */
.contact{ background:var(--white); position:relative; overflow:hidden; padding:90px 0; }
@media(min-width:700px){ .contact{padding:130px 0;} }
.contact h2{ font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:clamp(2.4rem,9vw,4.6rem); margin-bottom:34px; letter-spacing:-0.02em; }
.contact-list{ border-top:1px solid var(--line); max-width:560px; }
.contact-row{ display:flex; align-items:center; gap:18px; padding:20px 0; border-bottom:1px solid var(--line); font-size:1.05rem; }
.contact-row .ic{ width:38px; height:38px; border:1.4px solid var(--ink); border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-row a:hover{color:var(--amber);}
.doodle{ position:absolute; opacity:0.5; pointer-events:none; }
.doodle.tr{ top:20px; right:5vw; width:130px; }
.doodle.bl{ bottom:10px; left:5vw; width:130px; transform:scaleX(-1) rotate(8deg); }

footer{ display:flex; justify-content:space-between; align-items:center; padding:24px 5vw; font-size:0.8rem; color:var(--ink-soft); border-top:1px solid var(--line); gap:12px; flex-wrap:wrap; background:var(--white); }

/* ---------- MOBILE NAV ---------- */
@media (max-width:880px){
  nav{ position:fixed; top:0; right:0; height:100vh; height:100svh; width:min(80vw,320px); background:var(--paper); color:var(--ink); transform:translateX(100%); transition:transform .35s ease; display:flex; align-items:center; padding:0 40px; z-index:99; }
  nav.open{transform:translateX(0);}
  nav ul{flex-direction:column; gap:22px;}
  nav a{font-size:1.15rem;}
  .nav-toggle{display:flex;}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .scroll-cue::after{animation:none;}
  *{transition:none !important;}
}
