/* Editorial Nocturna V2 — structural art direction.
   This layer reshapes the public presentation without changing content or tools. */

body{background:#070708}
main{max-width:1600px;background:#09090a}

/* Hero: full photographic editorial cover */
.hero{
  min-height:760px;
  isolation:isolate;
  grid-template-columns:minmax(0,1.22fr) minmax(330px,.68fr);
  align-items:center;
  gap:6%;
  padding:82px 5% 74px;
  background-image:
    linear-gradient(90deg,rgba(6,6,7,.98) 0%,rgba(6,6,7,.90) 37%,rgba(6,6,7,.36) 69%,rgba(6,6,7,.57) 100%),
    linear-gradient(180deg,rgba(5,5,6,.18),rgba(5,5,6,.72)),
    url('/hero-editorial-nocturna.png');
  background-size:cover;
  background-position:center;
}
.hero:before{inset:32px 2.5%;border-color:rgba(236,215,211,.18);z-index:-1}
.hero:after{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,transparent 65%,#080809)}
.hero-main{max-width:790px;padding:30px 0}
.hero .eyebrow{margin-bottom:34px}
.hero h1{font-size:clamp(76px,7.2vw,118px);line-height:.9;max-width:780px;text-wrap:balance;text-shadow:0 8px 32px #000}
.hero .intro{max-width:540px;padding-left:22px;border-left:2px solid var(--red);font-size:20px;color:#d1c6c2;text-shadow:0 2px 16px #000}
.hero .text-link{margin-top:10px;padding:13px 18px;background:rgba(85,20,31,.72);border:1px solid #7d3844}
.hero .hero-foot{max-width:690px;margin-top:48px;background:rgba(5,5,6,.34);padding:18px 0 0}
.hero .insta{align-self:center;margin-top:0;background:rgba(9,8,10,.88);backdrop-filter:blur(12px);border:1px solid rgba(208,125,139,.45);box-shadow:0 35px 90px #000c;transform:translateY(20px)}
.hero .insta-art{min-height:330px;aspect-ratio:1.02}
.hero .quote{min-height:330px;padding:34px 30px}
.hero .quote blockquote{font-size:clamp(29px,2.8vw,43px)}
.hero .insta-note{max-height:160px;overflow:auto}

/* Shared editorial section architecture */
.journal,.books,.projects,.author{padding:92px 5%}
.journal>.section-head,.projects>.section-head{display:grid;grid-template-columns:1fr minmax(240px,.45fr);align-items:end;padding-bottom:28px}
.section-head h2{margin-bottom:0}
.section-head>p{margin:0;text-align:right}
.section-head .eyebrow{margin-bottom:18px}

/* Bitácora: magazine covers rather than the original flat columns */
.journal{background:linear-gradient(180deg,#0b0b0c,#0e0d0f)}
.filters{margin:24px 0 26px}
.posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:22px}
.post,.post+.post{min-height:420px;padding:0 0 24px;border:1px solid #382d31;background:#111012;overflow:hidden}
.post>img{width:100%;height:250px;margin:0 0 22px;object-fit:cover;filter:grayscale(.35) sepia(.08) brightness(.76) contrast(1.1);transition:transform .45s ease,filter .3s ease}
.post:hover>img{transform:scale(1.025);filter:grayscale(.12) brightness(.84) contrast(1.08)}
.post>span,.post>h3,.post>p,.post>button{margin-left:22px;margin-right:22px}
.post h3{font-size:clamp(28px,2.3vw,38px);margin-top:8px;margin-bottom:13px}
.post>p{font-family:var(--serif);font-size:16px;line-height:1.65}
.post>button{margin-top:auto}

/* Works: an actual cover gallery as in the selected concept */
.books{display:block;background:linear-gradient(135deg,#1b1216 0%,#0d0c0e 48%,#09090a 100%)}
.books>div:first-child{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.55fr);align-items:end;column-gap:8%;padding-bottom:32px;border-bottom:1px solid var(--line-strong)}
.books>div:first-child .eyebrow{grid-column:1/-1;margin-bottom:18px}
.books>div:first-child h2{margin:0}
.books>div>p:not(.eyebrow){max-width:540px;margin:0 0 5px;justify-self:end}
.book-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:54px 28px;margin-top:44px}
.book-list article{
  display:flex;
  align-items:stretch;
  min-width:0;
  padding:0 0 24px;
  border:0;
  border-bottom:1px solid #4b3339;
  background:transparent;
  overflow:visible;
}
.book-list article:before{display:none}
.book-list article:hover{transform:translateY(-7px);border-color:var(--red-bright);box-shadow:none}
.book-list article>img{width:100%;max-width:none;aspect-ratio:2/3;object-fit:cover;margin:0 0 22px;border:1px solid #66414a;box-shadow:0 28px 45px #000a}
.book-list h3{font-size:clamp(25px,2.1vw,34px);line-height:1.05;margin:0 0 10px}
.book-list p{font-size:13px;margin-bottom:12px}
.book-list .work-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:normal;overflow:hidden}
.book-list .work-actions{margin-top:auto;padding-top:14px;gap:14px;border-top:1px solid rgba(105,70,79,.35)}

/* Projects: wide visual features */
.projects{background:#0b0b0c}
.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:36px}
.project-card,.project-card:nth-child(even){display:grid;grid-template-columns:minmax(190px,.78fr) minmax(0,1fr);align-items:stretch;gap:0;padding:0;border:1px solid #3c3034;background:#111012;overflow:hidden}
.project-card img,.project-card .project-placeholder{width:100%;height:100%;min-height:260px;aspect-ratio:auto;object-fit:cover;padding:0;background:#e7dfda;filter:grayscale(.2) saturate(.72) contrast(1.05)}
.project-card>div:last-child{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:30px}
.project-card h3{font-size:clamp(30px,2.7vw,42px)}
.project-card p{font-family:var(--serif);font-size:17px;line-height:1.65}
.project-card .text-link{margin-top:auto}

/* Author: portrait + literary manifesto */
.author{grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:7%;align-items:stretch;padding-top:96px;padding-bottom:96px}
.author-photo{min-height:520px;position:relative;overflow:hidden}
.author-photo:after{content:"SIR VOLKA";position:absolute;left:24px;bottom:20px;font-family:var(--serif);font-size:13px;letter-spacing:.28em;color:#efe5df;text-shadow:0 2px 10px #000}
.author-photo img{min-height:520px;max-height:680px;filter:grayscale(1) contrast(1.12)}
.author>div:last-child{display:flex;flex-direction:column;justify-content:center;max-width:760px;padding:48px 0}
.author>div:last-child .eyebrow{margin-bottom:18px}
.author>div:last-child h2{font-size:clamp(54px,6vw,92px);margin-bottom:26px}
.author>div:last-child>p:not(.eyebrow){padding:26px 0;border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);font-size:22px;line-height:1.8}
.author .text-link{align-self:flex-start;margin-top:12px}

/* Closing: cinematic editorial footer band */
.closing{min-height:330px;position:relative;overflow:hidden;background:linear-gradient(90deg,#09090a 0%,rgba(26,12,17,.93) 55%,rgba(77,21,31,.72) 100%)}
.closing:after{content:"";position:absolute;inset:0 0 0 55%;background:url('/hero-editorial-nocturna.png') right center/cover no-repeat;opacity:.18;mix-blend-mode:luminosity;pointer-events:none}
.closing>*{position:relative;z-index:1}
.closing h2{font-size:clamp(54px,6vw,90px)}

@media(max-width:1180px){
  .book-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .project-card,.project-card:nth-child(even){grid-template-columns:150px 1fr}
}

@media(max-width:850px){
  .hero{display:grid!important;grid-template-columns:1fr;min-height:0;background-position:64% center;padding:58px 6%}
  .hero:before{inset:20px 3%}
  .hero h1{font-size:clamp(58px,13vw,90px);max-width:720px}
  .hero .insta{transform:none;margin-top:44px;max-width:620px;width:100%}
  .journal,.books,.projects,.author{padding:68px 6%}
  .journal>.section-head,.projects>.section-head,.books>div:first-child{display:block}
  .section-head>p,.books>div>p:not(.eyebrow){justify-self:auto;text-align:left;margin-top:18px}
  .posts{grid-template-columns:1fr}
  .post,.post+.post{min-height:0}
  #obras>.book-list,.book-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:38px 22px!important;margin-top:38px!important}
  #obras .book-list article{display:flex!important;padding:0 0 22px}
  #obras .work-description{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;white-space:normal!important;overflow:hidden!important}
  .project-list{grid-template-columns:1fr}
  .project-card,.project-card:nth-child(even){grid-template-columns:minmax(140px,.55fr) 1fr}
  .author{grid-template-columns:1fr}
  .author-photo,.author-photo img{min-height:430px;max-height:620px}
  .author>div:last-child{padding:20px 0 0}
}

@media(max-width:600px){
  .hero{padding-top:48px;background-position:69% center}
  .hero-main{padding:10px 0}
  .hero h1{font-size:clamp(51px,15vw,72px);line-height:.92}
  .hero .intro{font-size:18px}
  .hero .insta-art,.hero .quote{min-height:280px}
  .journal,.books,.projects,.author{padding:58px 6%}
  .post>img{height:220px}
  #obras>.book-list,.book-list{grid-template-columns:1fr!important;gap:34px!important}
  .book-list article>img{width:min(78%,240px);align-self:center}
  .book-list h3{font-size:32px}
  .project-card,.project-card:nth-child(even){display:block}
  .project-card img,.project-card .project-placeholder{height:230px;min-height:230px}
  .author-photo,.author-photo img{min-height:360px;max-height:520px}
  .author>div:last-child h2{font-size:clamp(48px,14vw,68px)}
  .author>div:last-child>p:not(.eyebrow){font-size:19px}
  .closing{min-height:360px;display:block}
  .closing:after{inset:45% 0 0 0}
}
